Analog Read

Read the value(s) from the specified analog input pin(s).

LabVIEW

Developer Note

Command Packet

  • Analog Read Command
  • Analog Read Response
  • Analog Read Command
    Description Reads the value (high or low) from the specified digital pin(s).
    Size Variable
    Format
    0
    1
    2
    3
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    SoF : 0xFF
    PACKET SIZE
    PACKET NUM
    4
    5
    6
    7
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    CMD : 0x0064
    PIN NUM(S)
    CHECKSUM
    SoF Start of Frame. Always 0xFF.
    PACKET SIZE Packet Size In Bytes
    PACKET NUM The Current Packet Number. This value increments with each new packet.
    CMD Analog Read Command.
    PIN NUM(S) Variable Length. The DIO pin numbers to read. Each byte represents one pin.
    CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

    LINX Target

    Developer Note

    Response Packet

    Analog Read Response
    Description LINX device's response to Analog Read command
    Size 6 Bytes
    Format
    0
    1
    2
    3
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    SoF : 0xFF
    PACKET SIZE
    PACKET NUM
    4
    5
    6
    7
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    7
    6
    5
    4
    3
    2
    1
    0
    STATUS
    RESOLUTION
    VALUES
    CHECKSUM
    SoF Start of Frame. Always 0xFF.
    PACKET SIZE Total packet size in bytes.
    PACKET NUM The packet number of the packet that generated the response.
    STATUS See Return Status section below.
    RESOLUTION Bits per AI channel.
    VALUES Analog Values. Values are bit packet with MSB pin number returned as LSB value.
    CHECKSUM Checksum. Computed by adding all of the bytes in the packet in U8 form ignoring rollover.

    Return Status

    No function specific statuses. See return_status for universal return statuses.