07-09-2015 02:20 AM
How can I access the Status LED value in a VI's front panel? I am using sbRIO-9636 and want to read the value of Status LED. I am able to read the value of User1 LED and UserFPGA1 LED but i am interested in reading the value of Status LED. How can I do it?
07-09-2015 03:45 PM
Hello Akhtar_hanif,
You cannot programmatically access the value of the status light for RIO's. This is because it is there to warn about possible errors and problems occuring with the device and is reserved. Also if you were to read the value programmatically, it would only ever give you OFF because if your code was running and you were connected then the status light would return no errors and thus be off.
07-09-2015 06:26 PM
07-09-2015 08:23 PM
If you know it'll always be off, put any boolean LED on your Front Panel and wire in a false constant. It'll have the same functionality.
07-09-2015 11:03 PM
I want to see the actual status. I have multiple devices connected to my host and I want to check if all the devices are working fine or not. That can only be done by reading the status LED of each device. Wiring a FALSE to an LED Indicator will fail if the device is not working properly and its Status LED is ON.
07-09-2015 11:20 PM
What you're looking for doesn't really make sense. You need to take some time to think about what you're asking.
The behavior of the status LED is found on page 47 of the manual here: http://www.ni.com/pdf/manuals/373378d.pdf
During normal operation, the light is off.
2 flashes - software installation required
3 flashes - safe mode (code isn't running. this is a diagnostic setup state)
4 flashes - device is crashing
continuous flash/solid - unrecoverable error
In none of these states is code actually running on the device. You're asking for a way to read values from code that isn't running. It's like asking a car that isn't on to accelerate when you hit the gas pedal. It simply doesn't make sense.
You're looking for a way to see when the devices are running and when they're not. THAT is what you need. That is not equivalent to needing to see the status light. Stop focusing on something that won't help your solution and start looking towards something productive. If you continue to focus on this status light, you'll never be successful.
You'll have a better chance to achieve your goal by looking through the System Config VIs: http://zone.ni.com/reference/en-XX/help/373107E-01/nisyscfg/find/ I'd have to play around with them myself to figure out where the status of a device would be. It might be as easy as using "Find Systems" twice. Run it once with "detect online systems" false and it should omit the devices that are in safe mode. If you go through that returned array, you can parse the data to turn your LEDs off/on. It doesn't sound like you care which of the status flashes you're seeing as long as you know it's offline. That should be sufficient to turn the LED on or off.