LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI PCI 6251 on CVI

 

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.

0 Kudos
Message 1 of 4
(2,880 Views)

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

Applications Engineering Specialist - Semiconductor Test
National Instruments
0 Kudos
Message 2 of 4
(2,865 Views)

 

 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.   

0 Kudos
Message 3 of 4
(2,859 Views)

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

Applications Engineering Specialist - Semiconductor Test
National Instruments
0 Kudos
Message 4 of 4
(2,850 Views)