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 must be a reference to one of the following:

  • The Image data structure in cell A0, containing the InputPointCloud function.
  • A cell containing an Event function.
  • A cell containing a Button function.
Start Bit

Specifies the first bit of the set to be written. The value range is 0 – 15, and the default value is 0.

Number of Bits

Specifies the number of bits in the set to be written. The value range is 0 – 16, and the default value is 0.

Value Specifies the positive integer value to be written. The maximum value depends on the number of written bits.

WriteDiscrete Outputs

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