Get Relay Position

Returns the relay position for the relay specified in relay name.

Inputs/Outputs

datatype_icon

session in

Control that identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology node, the niSwitch Initialize With Options node, or the niSwitch Initialize node.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

relay name

Name of the relay or set of relays to control.

You can supply a single relay name or comma-delimited list of relay names to control these relays. Examples of valid relay names are ch0, ab0, 1wire, and hlselect.

Note Use the niSwitch Wait For Debounce node, the niSwitch Switch Is Debounced node, and the Is Debounced property to determine if the relay has settled.
datatype_icon

session out

Indicator that identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology node, the niSwitch Initialize With Options node, or the niSwitch Initialize node and used for all subsequent NI-SWITCH calls.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

datatype_icon

position

Relay postition.

Open

Indicates that the relay is open.

Closed

Indicates that the relay is closed.