RelayControl Method
- Updated2023-02-21
- 2 minute(s) read
Controls individual relays of the switch.
Namespace:
NationalInstruments.ModularInstruments.NISwitch
Assembly:
NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Syntax
Visual Basic (Declaration) |
---|
Public Sub RelayControl ( _ relayNames As String, _ relayAction As SwitchRelayAction _ ) |
C# |
---|
public void RelayControl( string relayNames, SwitchRelayAction relayAction ) |
Parameters
- relayNames
- Type: System..::.StringName of the relay or set of relays to control.
- relayAction
- Specifies whether to open or close a given relay.
Defined values
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The RelayControl method was accessed after the associated NISwitch.NISwitch object was disposed. |