NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

GetRelayPosition Method

  • Updated2023-02-21
  • 2 minute(s) read
GetRelayPosition Method
Returns the relay position for the relay specified in the relayName parameter.

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 Function GetRelayPosition ( _
	relayName As String _
) As SwitchRelayPosition
C#
public SwitchRelayPosition GetRelayPosition(
	string relayName
)

Parameters

relayName
Name of the relay.

Return Value

Type: NationalInstruments.ModularInstruments.NISwitch..::.SwitchRelayPosition
Returns a SwitchRelayPosition object that indicates the relay position for the relay specified in the relayName parameter.

Exceptions

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

See Also

Log in to get a better experience