I would like use an FIOx input to gate the counting of a timer, which I can latch/read at a later time while it's still counting. For example:
1) Timer0 is cleared to 0
2) FIO4 input goes high, which gates Timer0 to start incrementing at configured clock rate
3) time passes...
4) PC software has an internal event, queries Timer0 to get elapsed time since FIO4 input went high.
5) FIO4 input goes inactive low.
Is there any way to accomplish this gating functionality? The only way I can think of is to:
a) Poll FIO4 waiting for it to go high
b) Read System Timer (Mode 10) when it goes high
c) PC software again reads System Timer upon internal event.
Step (a) above has two problems:
i) Requires PC software to rapidly poll (invasive). I would like to offload this tedious task to Labjack...
ii) Accuracy is reduced by command/response delay.
Is there a way to do this using existing Timer functionality (no polling).