It is acceptable to pass NULL (or 0) for any pointer that is not required.
The parameter lists are the same for the GetFirstResult() and GetNextResult() declarations.
Declaration:
LJ_ERROR _stdcall GetFirstResult ( LJ_HANDLE Handle,
long *pIOType,
long *pChannel,
double *pValue,
long *px1,
double *pUserData)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
• Handle – Handle returned by OpenLabJack().
Outputs:
• pIOType – A pointer to the IOType of th
is item in the list.
• pChannel – A pointer to the channel number of this item in the list.
px1 – A pointer to the x1 parameter of this item in the list.
st, and
ny sort of information with the
request, to allow a generic parser to e done when the
results are received.
udo- s) in a double. This
is e cimal-dot or hex-dot notation.
Declaration
• pValue – A pointer to the result value.
•
•
pUserData – A pointer to data that is simply passed along with the reque
returned unmodified. Can be used to store a
determine what should b
4.2.10 DoubleToStringAddress()
e channels of the config IOType pass IP address (and otherSome ps
function
us d to convert the double into a string in normal de
:
_ tdcall DoubleToStringAddress ( double Number,
LJ_ERROR s
ar *pString,
g HexDot)
ch
lon
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
• Number – Double precision number to be converted.
• pString – Must pass a buffer for the string of at least 24 bytes.
• HexDot – If not equal to zero, the string will be in hex-dot notation rather tha
decima
n
l-dot.
Outputs:
• pString – A pointer to the string representation.
4.2.11 StringToDoubleAddress()
Some pseudo-channels of the config IOType pass IP address (and others) in a double. This
function is used to convert a string in normal decimal-dot or hex-dot notation into a double.
55