Log in

View Full Version : How to change module slots in code


manderson5192
03-02-2009, 22:34
Hey guys,

Whenever the electrical team moves the modules around in the cRIO and doesn't put them back where they go, our software runs into a problem. Basically, the console output talks about mis-allocated ports for each of the modules in the cRIO (this makes sense). It also seems to shut down all the outputs from the system (PWMs, digital, etc).

I tried calling the SetDefaultDigitalModule function from SensorBase.cpp, but that didn't seem to do the trick.

I'm clearly missing something. Has anyone gotten this to work?

Thanks,
-Matt

gokul
03-02-2009, 23:05
This year the modules MUST stay in their original slots :
Analogs in 1 and 2
Digitals in 4 and 6
Solenoid in 8.
They should not be moved around :)
Analog Module 1 (Slot 1) must be installed to enable battery voltage monitoring.
Digital Module 1 (Slot 4) must be installed and connected to Digital Sidecar for the Robot Status Light to be attached.
Rest of the modules are optional if a team is not using them.

manderson5192
03-02-2009, 23:10
Thanks!

-Matt