NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

RelayControl Method

  • Updated2023-02-21
  • 2 minute(s) read
RelayControl Method
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)
Visual Basic (Declaration)
Public Sub RelayControl ( _
	relayNames As String, _
	relayAction As SwitchRelayAction _
)
C#
public void RelayControl(
	string relayNames,
	SwitchRelayAction relayAction
)

Parameters

relayNames
Name of the relay or set of relays to control.
relayAction
Specifies whether to open or close a given relay.

Defined values

Exceptions

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

See Also

Log in to get a better experience