Defines properties and methods used to control individual relays and get relay charactereistics.

Derives from

Syntax

Namespace: NationalInstruments.ModularInstruments.NISwitch

public class SwitchRelayOperations : SwitchSubObject

Remarks

For more information, refer to NI Switches Help.

Thread Safety

All members of this type are safe for multithreaded operations.

Methods

NameDescription
GetRelayCount(string)

Returns the number of times the relay has changed from closed to open.

GetRelayName(int)

Returns the relay name string that is in the relay list at the specified index.

GetRelayPosition(string)

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

RelayControl(string, SwitchRelayAction)

Controls individual relays of the switch.