
Parameter Description:
Returns:
Version number of ljackuw.dll.
4.12 GetErrorString
Converts a LabJack errorcode, returned by another function, into a string describing the error.
Declaration:
void __cdecl GetErrorString (
long errorcode,
char
*errorString
)
Parameter Description:
Returns: Nothing.
Inputs:
•
errorcode –
LabJack errorcode.
•
*errorString –
Pointer to a 50 element array of characters.
Outputs:
•
*errorString –
Pointer to a sequence of characters describing the error. Unused
locations are filled with 0x00.
4.13 GetFirmwareVersion
Retrieves the firmware version from the LabJack’s processor. Execution time for this function is
20 milliseconds or less.
Declaration:
float __cdecl GetFirmwareVersion ( long *idnum )
Parameter Description:
Returns:
Version number of the LabJack firmware or 0 for error.
Inputs:
•
*idnum –
Local ID, serial number, or -1 for first found.
Outputs:
•
*idnum –
Returns the local ID or –1 if no LabJack is found.
4.14 GetWinVersion
Uses a Windows API function to get the OS version.
Declaration:
long __cdecl GetWinVersion (
unsigned long *majorVersion,
unsigned
long
*minorVersion,
unsigned
long
*buildNumber,
unsigned
long
*platformID,
unsigned
long
*servicePackMajor,
unsigned
long
*servicePackMinor
)
Parameter Description:
Returns:
LabJack errorcodes or 0 for no error.
Outputs:
Platform
Major
Minor
Build
Windows
3.1
0 - - -
Windows
95
1 4 0 950
Windows
95
OSR2 1 4 0
1111