4.36 - ReadMem [U12 Datasheet]
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.
- 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.