Skip to main content
Skip table of contents

SingleIO (UE9 Only)

An alternative to Feedback, is this function which writes or reads a single output or input.

Note: Do not use SingleIO with the AIN IOType while streaming.

Command:

 

Byte

 

0

Checksum8

1

0xA3

2

IOType

3

Channel

4

Dir/BipGain/DACL

5

State/Resolution/DACH

6

SettlingTime

7

Reserved

 

 

Response:

 

Byte

 

0

Checksum8

1

0xA3

2

IOType

3

Channel

4

Dir/AINL

5

State/AINM

6

AINH

7

Reserved

IOType: Specifies the I/O to write or read. The digital read types are used to read the state and direction of digital I/O. The digital write types are used to configure digital I/O to one of three states: input, output-low, or output-high.

IOType

 

0

Digital Bit Read

1

Digital Bit Write

2

Digital Port Read

3

Digital Port Write

4

Analog In

5

Analog Out

Channel: Specifies which channel of IOType to write or read. For the digital port IOTypes (2 & 3) use the following table.

Digital Port Channel

 

0

FIO

1

EIO

2

CIO

3

MIO

  • Dir/BipGain/DACL: For a digital bit write, this is 0 for input, and 1 for output. For a digital port write, this is multiple bits specifying input or output for each line. Ignored for digital reads. For an analog input this is the BipGain parameter (see Feedback). For an analog output this is the low byte of the binary output value.

  • State/Resolution/DACH: For a digital bit write, this is the output state. For a digital port write, this is multiple bits specifying the output state for each line. Ignored for digital reads. For an analog input this is the Resolution parameter (12-18). For an analog output this is the most significant 4 bits of the binary output value, and the upper 4 bits are ignored as the output is always updated and IOType=5 causes both DACs to be enabled.

  • SettlingTime: Only applies to analog inputs (see Feedback).

  • Dir/AINL: For a digital bit read, this reads 0 for input, and 1 for output. For a digital port read, this is multiple bits returning input or output for each line. For digital writes this is just an echo. For an analog input this is the lowest 8 bits of the 24-bit conversion value (generally ignored on the UE9).

  • State/AINM: For a digital bit read, this is a read of the input state. For a digital port read, this is multiple bits returning a read of the input state for each line. For digital writes this is just an echo. For an analog input this is the middle 8 bits of the 24-bit conversion value, or more typically considered the lowest 8 bits of the 16-bit conversion value.

  • AINH: For an analog input this is the high 8 bits of the 24-bit conversion value, or more typically considered the high 8 bits of the 16-bit conversion value. Binary readings are always unsigned integers.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.