FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Change cRIO slot # for Digital Module 9403

I have run up against a problem for which I have not been able to find the soluiton.  In the 2011 cRIO the digital module was to be placed in slot 4.  The library code for digital module 1 and digital module 2 default to Slot 4.  But in the 2012 RIO imaging tool, the tool expects to see the 9403 in slot 2 or it gives an error and will not image.  When we moved the digital module to slot 2 the cRIO images perfectly but none of the digital examples work because they are addressing slot 4.  How do I tell the subVI for the digital ports to use Slot 2 instead of Slot 4? 

Kevin -  Check out the Servo example or the Camera with Servo example and you will see that the DigitalIO_Mod1.ctl file points to Slot 4 not Slot 2.  So apparently some examples were updated and others were not.

That presents a dilemma if one wants to use the example VI because LabView does not like moving files from one project to another.  Can you identify which examples and DIgital control files have the correct codes?

I wrote a small demo that read the status of the line-following sensors from last year's robot and I got that to work with the Digital Side car but neither of solenoid examples work and the default robot project does not seem to talk to the Digital system either.  I pulled up the Basic Robot Project with the line following sensor that I had working and there are no lights on the dashboard.  I did not have time to pull up the dependencies and track down where it thinks the Digital Module 1 is located but since we are not getting digital signals from sensors that gave them previously, one must assume a wrong slot address in that example too.

Danny Rich

Team 2180

0 Kudos
Message 1 of 2
(5,668 Views)

Hey Danny,

On the Open VI's for anything that uses the digital module you should be able to select whether it uses Digital Module 1 or 2 (as seen below). These VI's are set up correctly so that Digital Module 1 corresponds to slot 2.  Is there a specific example you are looking at where this is not what you are seeing?

digitalmoduleselect.png

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 2 of 2
(2,827 Views)