WriteDiscrete

Writes a range of bits to a discrete output channel.

WriteDiscrete Inputs

Parameter Description
Event

Specifies the event that forces an update.

This parameter needs to be a reference to any event with a timestamp, for example, one of the following: 

  • A cell containing an Event function.
  • A cell containing a Button function.
Start Bit

Specifies the first bit of the set. The value of this parameter varies:

  • The maximum allowed value varies depending on hardware and the number of input lines:

    • In-Sight 2800: 3

    • In-Sight 3800: 3

Number of Bits

Specifies the number of bits in the set. The value of this parameter varies:

  • The default value is 1.

  • The minimum allowed value is 1.

  • The maximum allowed value varies depending on hardware and the number of input lines:

    • In-Sight 2800: 4

    • In-Sight 3800: 4

    Note: Number of Bits varies depending on hardware support and the number of input lines.
Value Specifies the positive integer value. The maximum value depends on the number of written bits.

WriteDiscrete Outputs

Returns The value written, #ERR for any invalid input parameter.