|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Accelerometer Example of New Crio
"DIO2" sounds like a pin number, not a module number. You might have wired the control up to the wrong terminal on the Open function.
|
|
#2
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
What Joe said to do should work - wire a control to the DIO Module terminal and set it to Digital Module 1. It looks to me like we have a "bug" in our example. By default the ADXL345 SPI Open.vi should have Digital Module 1 as default. We should probably also wire and show that on the example front panel. I will fix this.
|
|
#3
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
Sorry if this has been covered elsewhere, I could not find the info we are looking for and I am not versed enough in LabView to figure it out.....yet.
We can figure out how to run the I2C ADXL345 example, but where we are struggling is how to go about integrating the vi's into our robot project. As far as we can see, the vi's to add the ADXL345 I2C are not available anywhere in the Functions pallet. Can someone please point us in the right direction to help us figure out how to add support for the ADXL345 via I2C to our project? |
|
#4
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
In the project explorer in the example project, there is a folder called ADXL driver. Just copy these VI's to your robot project
|
|
#5
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
I've spent half of yesterday and all of today trying to get the ADXL345 working. I've tried both examples using two cRIOs, and nothing works. I did change the DIO module constant/control to 1 instead of 2. I did make sure the sensor is wired correctly. I see no reason why it wouldn't be working.
I posted my question here after somehow missing this thread. Please help! ![]() |
|
#6
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
Quote:
|
|
#7
|
||||
|
||||
|
Re: Accelerometer Example of New Crio
Quote:
I believe I have a handle on it now, but I want them to understand the process. So, between the tutorial and my experience, we should be if fine shape! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|