Condensed problem:
Netbeans gives error:
[cRIO] Digital Module 6 is not present.
We have a working Digital Module NI 9403 with a working DB-37 cable connected to a working Digital Sidecar, and in the code I call a jaguar using “jaguar(6,1)”. The code loads ONLY with aforementioned error, and runs - but I get no response from the jaguar. All other features of code work, but nothing associated with the digital sidecar/module.
Full, in-depth problem:
We uploaded the new firmware to the cRIO and our 2011 classmate (via provided Key) and to our developer laptop. We then proceeded to upload the SAME EXACT CODE that was on the robot before the update - when it was working. That’s when we first got an error, something to the lines of
[cRIO] Digital Module 1 is not present.
[cRIO] Digital Module 4 is not present.
That error was repeated several times each, with probably ten lines of module 1 and five lines of module 4 errors right after it, and the code would NOT run. After doing some research, we discovered that we are using the old cRIO with 8 slots, and slots 4 and 8 have become obsolete this year. By the time we realized this, we had already changed the code so it only had essentially one line of code, that called a jaguar in slot 2 (where we moved the digital module). It continued to give us the error “Digital Module 2 is not present” (no longer complained about slot 1, which has an analog module in it BTW). So, we switched our old cable (idk what it’s called) for the new DB-37 ribbon cable we had to fix the cable, as instructed by FIRST. No change. Changed our Older Digital Module for one we got Brand New this year. No change. Then switched the older Digital Sidecar for the new one we got, removing every cable except the essential cables, and the jaguar in channel 1. No change. (At this point, I think I was going to throw the laptop at the robot eyeroll) We decided to simplify the code even more. We changed to a digital VEX button, added a System.out.println(<status of button, true or false>) and then ran again. We got the same error as usual, “Digital Module 2 is not present” (only got this error printed twice, irrelevant though) and ran the robot. The System.out kept printing false, regardless of whether or not I held the button down.
Extra Info:
Somewhere along the lines, I had the code call the jaguar from a slot where the digital module ACTUALLY was not present. We did NOT get an error from the cRIO, when it physically was not present, but got the error when it physically was present. Ironic, right? We’ve searched for hours on this, and couldn’t find anything related to this problem… kinda annoying. After 4 days of working on this, trying to debug the problem, we need some help.
Soo… any ideas?
Just please don’t tell us to plug in the module