AIStreamStart/Read/Clear. Following is a brief description of each function. For more details
on each function see the
LabJack U12 User’s Guide
.
•
EAnalogIn:
Reads the voltage from one analog input.
•
EAnalogOut:
Sets the voltage on both analog outputs.
•
ECount:
Reads and resets the counter.
•
EDigitalIn:
Reads the state of one digital input.
•
EDigitalOut:
Sets the state of one digital output.
•
AISample:
Reads the voltages from 1,2, or 4 analog inputs. Also controls/reads the 4 IO ports.
•
AIBurst:
Reads a specified number of scans (up to 4096) at a specified scan rate (up to 8192
Hz) from 1,2, or 4 analog inputs. First, data is acquired and stored in the LabJack’s 4096 sample
RAM buffer. Then, the data is transferred to the PC.
•
AIStreamStart:
Starts a hardware timed continuous acquisition where data is sampled and
stored in the LabJack RAM buffer, and can be simultaneously transferred out of the RAM buffer
to the PC application. A call to this function should be followed by periodic calls to
AIStreamRead, and eventually a call to AIStreamClear.
•
AIStreamRead:
Waits for a specified number of scans to be available and reads them.
AIStreamStart should be called before this function and AIStreamClear should be called when
finished with the stream.
•
AIStreamClear:
This function stops the continuous acquisition. It should be called once when
finished with the stream.
•
AOUpdate:
Sets the voltages of the analog outputs. Also controls/reads all 20 digital I/O and the
counter.
•
AsynchConfig:
Configures the LabJack U12 D lines for asynchronous communication.
•
Asynch:
Writes then read half-duplex asynchronous data on 1 of two pairs of D lines. Basically
RS232 communication.
•
BitsToVolts:
Converts a 12-bit (0-4095) binary value into a LabJack voltage.
Volts=((2*Bits*Vmax/4096)-Vmax)/Gain where Vmax=10 for SE, 20 for Diff.
•
VoltsToBits:
Converts a voltage to it's 12-bit (0-4095) binary representation.
Bits=(4096*((Volts*Gain)+Vmax))/(2*Vmax)
•
Counter:
Controls and reads the counter. The counter is disabled if the watchdog timer is
enabled.
•
DigitalIO:
Reads and writes to all 20 digital I/O.
•
GetDriverVersion:
Returns the version number of ljackuw.dll.
•
GetErrorString:
Converts a LabJack errorcode, returned by another function, into a string
describing the error.
•
GetFirmwareVersion:
Retrieves the firmware version from the LabJack.
•
GetWinVersion:
Uses a Windows API function to get the OS version.
•
ListAll:
Searches the USB for all LabJacks, and returns the serial number and local ID for each.
•
LocalID:
Changes the local ID of a specified LabJack. Changes will not take effect until the
LabJack is re-enumerated or reset, either manually by disconnecting and reconnecting the USB
cable or by calling ReEnum or Reset.
•
NoThread:
Disables thread creation. Use with TestPoint on Windows 98/ME.
•
PulseOut:
Creates pulses on any/all of D0-D7.
•
PulseOutStart:
Starts a pulse output similar to PulseOut, but does not wait for it to finish.
•
PulseOutFinish:
Waits for the finish of a pulse output started with PulseOutStart.
•
PulseOutCalc:
Used to calculate cycle times for the pulse output functions.
•
ReEnum:
Causes the LabJack to electrically detach from and re-attach to the USB so it will re-
enumerate. The local ID and calibration constants are updated at this time.
•
Reset or ResetLJ:
Causes the LabJack to reset after about 2 seconds. After resetting the
LabJack will re-enumerate.
•
SHT1X:
Retrieves temperature and/or humidity readings from an SHT1X sensor.
•
SHTComm:
Generic low-level function to send and receive up to 4 bytes to/from an SHT1X
sensor.
•
SHTCRC:
Checks the CRC on an SHT1X communication.
•
Synch:
Performs SPI communication with a slave device.