|Download Help (Windows Only)|
ViStatus niSwitch_RelayControl (ViSession vi, ViConstString relayNames, ViInt32 relayAction);
Controls individual relays of the switch. When controlling individual relays, the protection offered by setting the usage of source channels and configuration channels, and by enabling or disabling analog bus sharing on the NI SwitchBlock, does not apply.
Refer to Devices to determine if the switch supports individual relay control.
|vi||ViSession||A particular NI-SWITCH session established with niSwitch_InitWithTopology, niSwitch_InitWithOptions, or niSwitch_init and used for all subsequent NI-SWITCH calls.
|relayNames||ViConstString||Name of the relay or set of relays to control. You can supply a single relay name or a comma-delimited list of relay names to control these relays. Refer to Devices for a list of valid relay names for the switch module.
Examples of valid relay names:
ch0, ab0, 1wire, hlselect
|relayAction||ViInt32||Specifies whether to open or close a given relay.