Controls individual relays of the switch module. When controlling individual relays, the protection offered by setting the usage of source channels and configurations channels is void.

Refer to Devices to determine if the switch module supports individual relay control.

Related Topics


icon

Inputs/Outputs

  • civrn.png instrument handle

    instrument handle identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI.

  • cstr.png relay names

    relay names is the 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.

    Refer to Devices for a list of valid relay names for the switch module.

    Note Use the niSwitch Wait For Debounce VI, the niSwitch Switch Is Debounced VI, and the Is Debounced property to determine if the relay has settled.
  • ci32.png relay action (Close Relay)

    relay action specifies whether to open or close the relay. The default value is Close Relay (21).

    Open Relay (20)

    Opens the relay.

    Close Relay (21)

    Closes the relay.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iivrn.png instrument handle out

    instrument handle out identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI and used for all subsequent NI-SWITCH calls.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.