GetRelayPosition Method
- Updated2023-02-21
- 2 minute(s) read
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
- Type: System..::.StringName 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
Exception | Condition |
---|---|
ObjectDisposedException | The GetRelayPosition method was accessed after the associated NISwitch.NISwitch object was disposed. |