User Manual

Declaration:
long Watchdog ( long *idnum,
long demo,
long active,
long timeout,
long reset,
long activeD0,
long activeD1,
long activeD8,
long stateD0,
long stateD1,
long stateD8 )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
demo – Send 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.
reset – If >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.26 ReadMem
Reads 4 bytes from a specified address in the LabJack's nonvolatile memory. Execution time
for this function is 20 milliseconds or less.
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.
address – Starting 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.