EasyManua.ls Logo

LabJack U12 - Page 41

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...
demoSend 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
active – Enables the LabJack watchdog function. If enabled, the 32-bit counter is disabled.
timeout Timer reset value in seconds (1-715).
resetIf >0, the LabJack will reset on timeout.
activeDn – If >0, Dn will be set to stateDn upon timeout.
stateDn – Timeout state of Dn, 0=low, >0=high.
Outputs:
*idnum – Returns the local ID or 1 if no LabJack is found.
4.36 - ReadMem
Reads 4 bytes from a specified address in the LabJack’s nonvolatile memory.
Execution time for this function is 20 milliseconds or less (typically 16 milliseconds in Windows).
Declaration:
long ReadMem ( long *idnum,
long address,
long *data3,
long *data2,
long *data1,
long *data0 )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
addressStarting address of data to read (0-8188).
Outputs:
*idnum – Returns the local ID or 1 if no LabJack is found.
*data3 – Byte at address.
*data2 – Byte at address+1.
*data1 – Byte at address+2.
*data0 – Byte at address+3.
4.37 - WriteMem
Writes 4 bytes to the LabJack’s 8,192 byte nonvolatile memory at a specified address. The data is read back and verified after
the write. Memory 0-511 is reserved for configuration and calibration data. Memory from 512-1023 is unused by the LabJack and
available for the user (this corresponds to starting addresses from 512-1020). Memory 1024-8191 is used as a data buffer in
hardware timed AI modes (burst and stream).
Execution time for this function is 20 milliseconds or less (typically 16 milliseconds in Windows).
Declaration:
long WriteMem ( long *idnum,
long unlocked,
long address,
long data3,
long data2,
long data1,
long data0 )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
unlocked – If >0, addresses 0-511 are unlocked for writing.
addressStarting address for writing (0-8188).
data3Byte for address.
41

Other manuals for LabJack U12