Declaration:
double *pNumber,
scription:
LJ_ERROR _stdcall StringToDoubleAddress ( const char *pString,
long HexDot)
Parameter De
Inputs:
• pString – A pointer to ntation.
• HexDot – If not equal d string should be in hex-dot notation
rather than decimal-do
Outputs:
• pNumber – A pointer to the double precision representation.
StringToConstant()
t g Used internally by the S
xt functions without the
ability to in turn values
such as:
if (IOType S
This function r
Declaration:
Returns: LabJack errorcodes or 0 for no error.
the string represe
to zero, the passe
t.
4.2.12
Converts
functions,
he iven string to the appropriate constant number.
but could be useful to the end user when using the GetFirst/Ne
clude the header file. In this case a comparison could be done on the re
== tringToConstant("LJ_ioANALOG_INPUT"))
eturns LJ_INVALID_CONSTANT if the string is not recognized.
ng _stdcall StringToConstant ( const char *pString)
lo
Parameter Description:
Returns: Constant number of the passed string.
Inputs:
• pString – A pointer to the string representation of the constant.
.2.13 ErrorToString()
string if not found.
ion
Outputs:
• None
4
Outputs a string describing the given error code or an empty
Declarat :
ll rrorToString ( LJ_ERROR ErrorCode,
void _stdca E
Parameter De
char *pString)
scription:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
• ErrorCode – LabJack errorcode.
• string of at least 256 bytes.
pString – Must pass a buffer for the
Outputs:
• *pString – A pointer to the string representation of the errorcode.
56