05-27-2011 03:13 PM
Hi all,
I am using NI PCI-6251. I want to acquire a sine wave signal having freq 250 Hz and
at the same time want to generate the same signal from the analog output.
Can anyone show me how to do this?
Any help will be greatly appreciated.
05-31-2011 06:35 PM
Hey-
Take a look at the following example. You would just need to give the data acquired by the analog input task a handle, and then use this handle as the data to be output. This won't be synchronized perfectly because of the processing time. Couldn't you just physically split the signal so that you can read it in and then also wire it for whatever output purpose you need it for?
Thanks,
Sean
06-01-2011 09:04 AM
Hi Sean F
It is my requirement to acquire the sine wave signal from A/I and to generate it from A/O. I dont want the acquiring and generating tasks to be started at the same time. First Acquire, Then Generate . I am newbie to PCI 6251. Can you please edit the sync AI AO Example according to my Task using CVI
Help will be greatly appreciated.
06-02-2011 03:32 PM
The example that was posted should do what you want it to do. You are collecting data with the analog input task. This data is given a handle. Then you use this handle as the data to be used for the analog output. Programming the PCI 6251 is not different than any other device that uses the DAQmx drivers. Even if you don't want them perfectly synchronized, then you would still use this example. You could also save the data, and then use it late in an analog output task if you do not want them running simultaneously.
Thanks,
Sean