Hi, thanks for the hugely useful documentation/website. I've been able to answer most of my questions. Nevertheless I need your advice on the following application. I've to capture events on two digital outputs of a device. Events on the first output occur with a frequency which is approximately 8 Hz, on the secend output events occur with a freqency which is approximately 20 Hz. I'd like use a digital input line of the U6 to detect the occurrence of an event on each of the outputs of my device and tag them with an accurate timestamp. To be exact i need a timestamp with an accurancy of less or equal than one millisecond. Since I'm not running a real time OS, using timesamps of my system is not an option. So I need help to find a way, to use the U6 internal system timer to generate timestamps when events occur on the two digital input lines. Thanks in advance! Jan
Sounds to me like you need to stream the data, and then in software look at the data to find the state transitions of interest and note the time where they occur. The timing resolution of stream is equal to the scan rate, so if you stream at 10k you know that the interval between each scan is exactly 100us per the U6 clock. Stream channel 193 to get reads from all FIO and EIO:
https://labjack.com/support/datasheets/u6/operation/stream-mode/streamin...
Thank you for your help. Is there any example code in C where i can learn how to stream data from a channel?
Yes, every archive has a stream example. See here:
https://labjack.com/support/software/examples/ud
... and refer to Section 4.3.7 for more detail on how stream works with the UD library:
https://labjack.com/support/datasheets/u6/high-level-driver/example-pseu...