Solution
In LabVIEW, this can be done by using the
niSwitch Get Relay Position VI. The output of this VI will be
Open or
Closed depending on the switch name you specify.
Note: The niSwitch Get Relay Position VI requires the name of the switch. You can take advantage of the
Number of Relays property and the
niSwitch Get Relay Name VI to find the names programmatically.