EasyManua.ls Logo

LabJack U12 - Page 42

LabJack U12
61 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
data2Byte for address+1.
data1Byte for address+2.
data0Byte for address+3.
Outputs:
*idnum – Returns the local ID or 1 if no LabJack is found.
4.38 - BuildOptionBits (ActiveX only)
This function is only in the OCX, and is used to build the optionBits parameter for
AIBurst and AIStreamStart.
The parameter optionBits is made up of the following bits and can often just be set to 2 (normal operation with the LED on):
bit 0 => demo
bit 1 => ledOn
bit 2 => disableCal
bits 3, 4 => transferMode
bit 5 => updateIO
bit 6 => stateIOin(0)
bit 7 => stateIOin(1)
bit 8 => stateIOin(2)
bit 9 => stateIOin(3)
Declaration:
long BuildOptionBits ( long demo,
long ledOn,
long disableCal,
long transferMode,
long updateIO,
long stateIOin )
Parameter Description:
Returns: optionBits
Inputs:
demoSend 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
ledOnIf >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.39 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.
valueBElement 1 of the array to be converted.
valueCElement 2 of the array to be converted.
valueDElement 3 of the array to be converted.
4.40 - Description of Errorcodes
42

Other manuals for LabJack U12