IODir: 0 is input, and 1 is output.
IOState: As a write parameter, only has an effect if a line is set to output. For each bit, 0 is output-low, and 1 is output-high.
As a read parameter, it returns the current input state of each line where 0 is low and 1 is high.
DAC#: The UE9 has 12-bit analog outputs, so pass an output value between 0 and 4095, plus set bits 6 and 7 of the high
byte accordingly. Bit 6 specifies whether the given DAC will be updated with the new value. If Bit7 is set on either DAC, then
both are enabled. To disable the DACs (set to high-impedance), bit 7 must be 0 for both DACs.
AINMask: If a bit is 0, the corresponding channel will not be acquired (saving time), and will return 0 as a reading.
AIN14/15ChannelNumber: Generally used to choose one of the internal channels, but any channel can be used.
Resolution: Determines the resolution setting for all analog inputs (12-17). See Sections 2.7, 3.1, and 3.2. This function
does not support the high-resolution converter on the UE9-Pro.
SettlingTime: Adds extra settling time before acquiring each channel. The extra delay is this value multiplied by about 5
microseconds.
BipGain: Contains the bipolar setting and gain options for two analog input channels. The high nibble controls the higher
channel number. The high bit of each nibble is the bipolar option and the lower 3 bits of each nibble are the gain index.
Following are the nibble values for various gains:
AIN#: Returns raw analog input conversions. Regardless of Resolution, the value returned is 0-65520, where 0 is the
minimum (unsigned, not 2’s complement).
Counter#: Returns the current count from the counters if enabled. Use the function TimerCounter to enable and configure the
counters.
Timer#: Returns the values from the first 3 enabled timer modules. Use the function TimerCounter to enable and configure
the timer modules.
The LabJackUD driver for Windows uses a modified version of the Feedback function called FeedbackAlt. This modified function
has additional parameters added to specify channel numbers for all 16 analog input reads, making it useful when using extended
channels or more than 2 internal channels.
The command for FeedbackAlt is the same as Feedback, except that AINxChannelNumber parameters are added for channels 0-
13 (new bytes 34-47). The command number (byte 3) changes to 0x01 and the number of data words (byte 2) changes to 0x15.
The response for FeedbackAlt is the same as Feedback, except that the counter/timer reads are removed, and thus the response
is 44 bytes long. The command number (byte 3) changes to 0x01 and the number of data words (byte 2) changes to 0x13.
The order of execution in hardware for either function is:
1. Write digital I/O.
2. Read digital I/O.
3. Write analog outputs.
4. Read analog inputs.
5. Read timers and counters (skipped in FeedbackAlt).
5.3.4 - SingleIO
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.
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.
60