02-02-2012 02:41 PM
Is there a way for C++ code to read the status of the cRIO DIP switches? How can the code determine if NetConsole is enabled when the cRIO was last formated? It would be great to check the 'console out' DIP switch (or NetConsole enabled) before writing to 'cout/cerr'. Does VxWorks have access that info? If so, could the C++ program call VxWorks to get it?
02-03-2012 12:46 PM
The "Console Out" dip switch enables the console on the serial port. The NetConsole is enabled by loading NetConsole.out.
To tell if the NetConsole is loaded, you can call moduleFindByName("NetConsole.out"); and check for NULL (not found) return value. This is defined in <moduleLib.h>.