NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

RelayControl Method

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)

Syntax

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

Was this information helpful?