Quote:
Originally Posted by gerberduffy
Code:
i2c = DigitalModule.getInstance(2).getI2C(slot);
|
What is "slot"? If you're trying to specify a digital module, don't refer to it by its cRIO slot number. The
first installed module (in slot 2) is module
1.
Quote:
Every time we try to read the ADXL345, we get this output:
[frcrun] [cRIO] Digital module 2 is not present.
|
That's a pretty specific error message. Do you indeed have a second digital module installed?
Quote:
I was looking through SensorBase, and this javadoc on SensorBase.checkDigitalModule() looked interesting:
Module numbers are 1 or 2 (they are no longer real cRIO slots).
I'm not sure how to deal with this, and any help would be greatly appreciated.
|
I know what it means, so I can't be sure it's as self-explanatory as it looks, but you deal with it by addressing the digital module as either number 1 or number 2, depending on whether it's the first module (in slot 2) or the second (in slot 4 of a 4-slot or slot 6 of an 8-slot cRIO).