LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

More in depth DAQmx analogue output/input at same time.

To all,

 

Using the small tutorial located here

http://zone.ni.com/devzone/cda/tut/p/id/4322#toc1

 

I have been able to get my USB-6251 to ouput an analogue signal and also record analogue input at the same time. However the length of the output is equal to the length of my record time and I am looking to start reading and pulse at the same time but to read for say 3 mS but only pulse for 1 mS. Any and all help will be appreciated.

 

Thanks in advance,

 

Dan

0 Kudos
Message 1 of 2
(2,072 Views)

Hi Dan,

 

Glad to hear that you were able to do synchronized acquisition and generation. If I understand you correctly, you now want to start at the same time, run at the same rate, but acquire for 3ms and generate for only 1ms. If this is the case, then I would suggest to create a finite task for each instead of the continuous task. You will no longer use the while loop. I would suggest to take a look at the LabVIEW Example Finder (Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Analog Measurements>>Voltage). Take a look at the Acq&Graph Voltage - Int Clk.vi. You can then modify your code to now do finite acquisition (for 3ms) and finite generation (1ms).

Best regards,
Rohan B
0 Kudos
Message 2 of 2
(2,048 Views)