normal decimal-dot or hex-dot notation into a double.
Declaration:
LJ_ERROR _stdcall StringToDoubleAddress ( const char *pString,
double *pNumber,
long HexDot)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
pString – A pointer to the string representation.
HexDot – If not equal to zero, the passed string should be in hex-dot notation rather than decimal-dot.
Outputs:
pNumber – A pointer to the double precision representation.
4.2.12 - StringToConstant()
Converts the given string to the appropriate constant number. Used internally by the S functions, but could be useful to the end user
when using the GetFirst/Next functions without the ability to include the header file. In this case a comparison could be done on the
return values such as:
if (IOType == StringToConstant("LJ_ioANALOG_INPUT"))
This function returns LJ_INVALID_CONSTANT if the string is not recognized.
Declaration:
long _stdcall StringToConstant ( const char *pString )
Parameter Description:
Returns: Constant number of the passed string.
Inputs:
pString – A pointer to the string representation of the constant.
Outputs:
None
4.2.13 - ErrorToString()
Outputs a string describing the given error code or an empty string if not found.
Declaration:
void _stdcall ErrorToString ( LJ_ERROR ErrorCode,
char *pString)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
ErrorCode – LabJack errorcode.
pString – Must pass a buffer for the string of at least 256 bytes.
Outputs:
*pString – A pointer to the string representation of the errorcode.
4.2.14 - GetDriverVersion()
Returns the version number of this Windows LabJack driver.
Declaration:
double _stdcall GetDriverVersion();
Parameter Description:
Returns: Driver version.
Inputs:
None
Outputs:
None