Solution
You can use the DAQmx Read VI with a DAQmx Digital Output channel to read the status of a relay on the NI 948x module. A Boolean value of
True corresponds to a closed relay, and a Boolean value of
False corresponds to an open relay. The VI below shows an example of how this is done in LabVIEW: