Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample 20 times per second continually

I'm trying to use grab samples off of every pulse from a digital input on another card. I have a digital input square wave that can trigger every acquisition for the analog cards. This happens 20 times per second, continually.

 

Is this possible to achieve? How do I do it at this rate?

 

I used the "Voltage - Finite Input.vi" example and set it up for Digital Edge and this grabbed my sample, but when I put it in a loop, the loop takes 600 ms to execute.

0 Kudos
Message 1 of 4
(1,515 Views)

What kind of hardware are you using?

 

Quite a bit of DAQmx NI hardware should be able to achieve this by defining an external signal for the ADC (instead of the usually used internal clock).

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 2 of 4
(1,462 Views)

Thanks for the reply Jens,

 

I have a cDAQ 9189 with a 9775 Analog card and a 9401 for digital triggering. I also have a 9361 counter card.

0 Kudos
Message 3 of 4
(1,458 Views)

Fastest I can get is 188ms... sample rate is high to push the 9775 into "Record Mode". Used "commit". Am I taking the wrong approach here?

 

downerdce_0-1624315122233.png

downerdce_1-1624315216920.png

 

0 Kudos
Message 4 of 4
(1,399 Views)