Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read an analog input and a digital input SYNCHRONOUSLY with USB-6009, using ANSI C?

I just want to read one analog input and one digital input synchronously, using my USB-6009 board and ANSI C functions.

The problem is that I cannot create different kind of channels (analog and digital) on the same task.

So, maybe, the solution is creating two tasks, one for the analog input and the other one for the digital input.

But then...how to guarantee the two inputs will be read synchronously? Maybe setting the same trigger?

Need your help..

0 Kudos
Message 1 of 3
(3,295 Views)

Sounds like you want to do a clocked read of the digital inputs on your USB-6009. You can't do that- the 6009 hardware doesn't support it.

John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
Message 2 of 3
(3,279 Views)

If I cannot do a clocked read of digital inputs, what can I do with digital inputs?

Is it possible to connect an interrupt function on the rising edge, for example?

Is it possbile to read and store in a buffer an analog input, opening the window when a digital edge comes and closing the window when the next digital edge comes reopening a new window, and so on..?

 

Thank you for your help

0 Kudos
Message 3 of 3
(3,255 Views)