- In C programming
You can use the function called niSwitch_GetRelayCount. The C function prototype is as follows:
ViStatus niSwitch_GetRelayCount (Vi Session vi, ViConstString relayName, ViInt32* relayCount);
Additional Information
Not all switch modules support this function. See
Relay Count in NI Switches Help file located on the system under
Start»
All Programs»
National Instruments»
NI-SWITCH»
Documentation»
NI Switches Help. If you do not have the driver installed, the help file can also be found in
Relay Count - Help File