Use timer to measure current state elapsed time?
1 reply to this topic
Posted 13 February 2013 - 02:10 PM
I have a Windows application where I'd like to record the time that a particular FIOx input went from a '1' to a '0'. What I'd like to do is periodically wake up a thread after a relatively long time sleeping, and then find out not only *IF* Labjack has seen a high-to-low transition on a particular input, but HOW LONG it has been since the transition into its current low state. Yes, I could just poll the FIOx input like crazy, but that won't work. I'd instead like to know if there is a way for Labjack to do this. Is seems there are many things that autonomously report on the duration between edges, but I don't see a HW gated timer function (active low) where I can latch and read the current value of the timer to reckon when the transition occurred. Is there any trick for doing something like this?? Thanks!
Posted 14 February 2013 - 01:32 PM
No, I can't think of a way to do that. On the new T-series you could likely write a script that does this on the device, but that scripting support is not ready yet.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users