ReadDiscrete

Note: This function is currently not supported on 3D-L4000 Series Vision Systems.

Reads a range of bits from a discrete input channel.

ReadDiscrete Inputs

Parameter Description
Event

Specifies the update event on which to read.

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 read. The value range is 0 – 7, and the default value is 0.

Number of Bits

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

ReadDiscrete Outputs

Returns The positive integer value read, or #ERR for any invalid input parameter.