Returns the relay position for the relay specified in the relayName parameter.

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public SwitchRelayPosition GetRelayPosition(string relayName)

Parameters

NameTypeDescription
relayNamestring

Name of the relay.

Returns

Returns a SwitchRelayPosition object that indicates the relay position for the relay specified in the relayName parameter.

Exceptions

TypeDescription
System.ObjectDisposedException

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