GetRelayPosition(string)
- Updated2026-01-20
- 1 minute(s) read
Returns the relay position for the relay specified in the relayName parameter.
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public SwitchRelayPosition GetRelayPosition(string relayName)
Parameters
| Name | Type | Description |
|---|---|---|
| relayName | string | Name of the relay. |
Returns
Returns a SwitchRelayPosition object that indicates the relay position for the relay specified in the relayName parameter.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The GetRelayPosition method was accessed after the associated NISwitch object was disposed. |