User Manual

long updateIO,
long stateIOin )
Parameter Description:
Returns: optionBits
Inputs:
demo – Send 0 for normal operation, >0 for demo mode. Demo mode allows
this function to be called without a LabJack.
ledOn – If >0, the LabJack LED is turned on.
disableCal – If >0, voltages returned will be raw readings that are not corrected
using calibration constants.
transferMode – Set to 0 (automatic).
updateIO – If >0, state values will be written. Otherwise, just a read is
performed.
*stateIOin – Output states for IO0-IO3.
4.29 FourPack (ActiveX only)
This function is only in the OCX, and is used to convert a 4 element array into an integer. The
packed value is determined as: valueA + (valueB * 2^8) + (valueC * 2^16) + (valueD * 2^24).
Declaration:
long FourPack ( long valueA,
long valueB,
long valueC,
long valueD )
Parameter Description:
Returns: Packed representation of a 4 element array.
Inputs:
valueA – Element 0 of the array to be converted.
valueB – Element 1 of the array to be converted.
valueC – Element 2 of the array to be converted.
valueD – Element 3 of the array to be converted.
4.30 Description of errorcodes.
It is recommended that the function GetErrorString be used to interpret errorcodes, but this list
is provided as a convenience.
0 – No error.
1 – Unknown error.
2 – No LabJacks found.
3 – LabJack n not found.
4 – Set USB buffer error.
5 – Open handle error.
6 – Close handle error.
7 – Invalid ID.
8 – Invalid array size or value.
9 – Invalid power index.
10 – FCDD size too big.
11 – HVC size too big.