Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 and Interrupt driven DAQ

Hello All,
  I am wondering what the best way is to go about solving this problem: I have two analog channels being sampled at 10 samples/sec and a single digital input channel. There is output written to four digital output channels at the same time. I would like send a particular value to the DO when the sampled DI changes state and I want this to have the first preference. In other words, every time the DI changes state, the actions associated with that change execute immediately.
    Traditionally I would make two while loops and run one loop with a smaller delay and insert the DI sampling there and leave the Analog input in the loop that runs slower, but I am wondering if there is another way to do this with the USB 6009.
   Any advice on interrupt driven DAQ using the USB-6009. Thanks in advance,

KB
0 Kudos
Message 1 of 2
(3,175 Views)
Hello Grass_Pitch,
I think the design that you have now, with the parallel loops, is the best choice that you have.  Change detection on digital lines is not supported by the USB-600x, so there isn't really a way to generate an interrupt based on the state or transition of a digital line of the USB-600x.  Sorry to be the bearer of bad news:(
-Alan A.
0 Kudos
Message 2 of 2
(3,158 Views)