EasyManua.ls Logo

LabJack U12 - Page 33

LabJack U12
61 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
long (*calMatrix)[20],
long *numberFound,
long *reserved1,
long *reserved2 )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*productIDList Pointer to a 127 element array. Send filled with zeros.
*serialnumList – Pointer to a 127 element array. Send filled with zeros.
*localIDList – Pointer to a 127 element array. Send filled with zeros.
*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* reserved1,
long FAR* reserved2 )
4.23 - 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.
Execution time for this function is 20 milliseconds or less (typically 16 milliseconds in Windows).
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.24 - 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.
Execution time for this function is about 80 milliseconds.
33

Other manuals for LabJack U12