05-18-2011 09:26 AM
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..
05-19-2011 11:17 AM
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.
05-24-2011 02:50 AM
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