long updateDigital,
long resetCounter,
unsigned long *count,
float analogOut0,
float analogOut1)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
demo – Send 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
trisD – Directions for D0-D15. 0=Input, 1=Output.
trisIO – Directions for IO0-IO3. 0=Input, 1=Output.
*stateD – Output states for D0-D15.
*stateIO – Output states for IO0-IO3.
updateDigital – If >0, tris and state values will be written. Otherwise, just a read is performed.
resetCounter – If >0, the counter is reset to zero after being read.
analogOut0 – Voltage from 0.0 to 5.0 for AO0.
analogOut1 – Voltage from 0.0 to 5.0 for AO1.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
*stateD – States of D0-D15.
*stateIO – States of IO0-IO3.
*count – Current value of the 32-bit counter (CNT). This value is read before the counter is reset.
ActiveX Function Differences:
The counter read is returned as a double precision float, instead of an unsigned long.
Declaration (ActiveX):
long AOUpdateX ( long FAR* idnum,
long demo,
long trisD,
long trisIO,
long FAR* stateD,
long FAR* stateIO,
long updateDigital,
long resetCounter,
double FAR* count,
float analogOut0,
float analogOut1)
4.12 - AsynchConfig
Requires firmware V1.1 or higher. This function writes to the asynch registers and sets the direction of the D lines (input/output) as
needed.
Execution time for this function is 60 milliseconds or less (typically 48 milliseconds in Windows).
The actual 1-bit time is about 1.833 plus a “full” delay (µs).
The actual 1/2-bit time is about 1.0 plus a “half” delay (µs).
full/half delay = 0.833 + 0.833C + 0.667BC + 0.5ABC (µs)