Controls individual relays of the switch.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public void RelayControl(string relayNames, SwitchRelayAction relayAction)

Remarks


Defined values

Parameters

NameTypeDescription
relayNamesstring

Name of the relay or set of relays to control.

relayActionSwitchRelayAction

Specifies whether to open or close a given relay.

Exceptions

TypeDescription
System.ObjectDisposedException

The RelayControl method was accessed after the associated NISwitch object was disposed.