You can not directly read the Network Module Power or Status LED from a host program. Likewise, you can not directly read the Power and Ready LED of an IO module.
However, even though you can not directly ready the LED status, there are ways of finding out most of the information that the LEDs convey.
For the Network Module Power LED, you can infer the status of the Power LED by looking at the channel status for any/all items that are on the bank. If the items have errors indicating that a communication timeout has occured or an addressed item does not exist, then it is probable that the unit is offline (either because of no power or a fault). The Status LED indicates the current operating status of the Network module and in most cases, if it is flashing
, then a fault has occured that shutdown the processor. In most cases, you will not be able to determine that the Status LED is flashing, as the Status LED indicates a fault condition which will put the unit into a non-standard operating mode (e.g. firmware corruption, unassigned IP Address, or an OS fault).
For the IO modules, each channel on a module can report status, and based upon the status you can infer the state of the LEDs. If the module does not have the Power LED lit, the most likely status will be "Addressed item does not exist". If the module has the Power LED but no Ready LED, then the status will indicate that the "item is unconfigured". If the module has both a Power and Ready LED, than the channel should report either a good status, or a channel specific error (if applicable).
Regards,
Aaron
LabVIEW Champion, CLA, CPI