EasyManua.ls Logo

LabJack U12 - 4.17 - Digitallo

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...
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
demoSend 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
resetCounter If >0, the counter is reset to zero after being read.
enableSTBIf >0, STB is enabled. Used for testing and calibration. (This input has no effect with firmware V1.02 or earlier,
in which case STB is always enabled)
Outputs:
*idnum – Returns the local ID or 1 if no LabJack is found.
*stateD – States of D0-D15.
*stateIO – States of IO0-IO3.
*count Current value of the 32-bit counter (CNT). This value is read before the counter is reset.
ActiveX Function Differences:
The counter read is returned as a double precision float, instead of an unsigned long.
Declaration (ActiveX):
long CounterX ( long FAR* idnum,
long demo,
long FAR* stateD,
long FAR* stateIO,
long resetCounter,
long enableSTB,
double FAR* count )
4.17 - DigitalIO
Reads and writes to all 20 digital I/O. The order of execution within the U12 is:
1. Set D states
2. Set D directions
3. Set IO states
4. Set IO directions
5. Read D states
6. Read IO states
Even more detail of the execution order with the approximate time between each step:
1. Set D7-D0 states
2. 1 µs
3. Set D12-D8 states
4. 2 µs
5. Set D15-D13 states
6. 0.5 µs
7. Set D7-D0 directions
8. 1 µs
9. Set D12-D8 directions
10. 1 µs
11. Set D15-D13 directions
12. 16 µs
13. Set IO states
14. 16 µs
15. Set IO directions
16. 2 µs
17. Read D7-D0 states
18. 0.3 µs
19. Read D12-D8 states
20. 0.7 µs
21. Read D15-D13 states
22. 10 µs
23. Read IO states
Execution time for this function is 20 milliseconds or less (typically 16 milliseconds in Windows).
30

Other manuals for LabJack U12