User Manual

*powerList – Pointer to a 127 element array. Send filled with zeros.
*calMatrix – Pointer to a 127 by 20 element array. Send filled with zeros.
Outputs:
*serialnumList – Pointer to a 127 element array where serial numbers are
returned. Unused locations are filled with 9999.0.
*localIDList – Pointer to a 127 element array where local ID numbers are
returned. Unused locations are filled with 9999.0.
*numberFound – Number of LabJacks found on the USB.
ActiveX Function Differences:
The arrays are represented as strings with 10 characters per number (XXXXXXXXXX). Zeros
are used for padding where necessary.
Declaration (ActiveX):
long ListAllX ( BSTR FAR* productIDList,
BSTR FAR* serialnumList,
BSTR FAR* localIDList,
BSTR FAR* powerList,
BSTR FAR* calMatrix,
long FAR* numberFound,
long FAR* fcddMaxSize,
long FAR* hvcMaxSize)
4.21 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.
Declaration:
long LocalID ( long *idnum,
long localID )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
localID – New local ID.
Outputs:
*idnum – Returns the local ID or –1 if no LabJack is found.
4.22 NoThread
This function is needed when interfacing TestPoint to the LabJack DLL on Windows 98/ME (see
ljackuw.h for more information). Call this function to disable/enable thread creation for other
functions. Normally, thread creation should be enabled, but it must be disabled for LabJack
functions to work when called from TestPoint. One other situation where disabling thread
creation might be useful, is when running a time-critical application in the Visual C debugger.
Slow thread creation is a known problem with the Visual C debugger.
If the read thread is disabled, the "timeout" specified in AIBurst and AIStreamRead is also
disabled.