07-13-2010 02:18 PM
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
07-14-2010 02:51 PM
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).