![]() |
Accelerometer Example on New Crio
Does anyone know if the ADXL345 SPI example works on the new Crio? I tried to run it and it gave me an error along the lines of 'I can't find DIO module 2' Any ideas?
|
Re: Accelerometer Example of New Crio
The obvious question is: do you actually have a second DIO module installed in your cRIO? It would go in slot 4 of a 4-slot cRIO-II, or slot 6 of an 8-slot cRIO.
The first DIO module is number 1, even though it's actually installed in slot 2. That's a different way of numbering things from previous years, and I expect it'll trip up a few teams. |
Re: Accelerometer Example of New Crio
That is what i suspected as well, so I added a control to select crio slot (which defaulted to DIO2 BTW) and changed it to 1 but i received the same error. I know thats not a lot to go on, I will do some more investigative work tomorrow afternoon (how does school always seem to get in the way).
|
Re: Accelerometer Example of New Crio
Quote:
-Joe |
Re: Accelerometer Example of New Crio
Quote:
|
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.
|
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? |
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
|
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! :( |
Re: Accelerometer Example of New Crio
There's updated files for the SPI ADXL345 example attached to the firstforge bug report. http://firstforge.wpi.edu/sf/go/artf1432
|
Re: Accelerometer Example of New Crio
The fixed SPI example still doesn't work for me. I've finally gotten I2C working though, apparently it only works with the flat cable.
|
Re: Accelerometer Example of New Crio
Quote:
|
Re: Accelerometer Example of New Crio
Quote:
|
Re: Accelerometer Example of New Crio
Quote:
-Joe |
Re: Accelerometer Example of New Crio
Quote:
Quote:
Quote:
Sure, these are Java, but I'm still seeing a recurring pattern.... |
| All times are GMT -5. The time now is 09:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi