LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Input and Output in One Single VI

I need help in setting both analog input and output in one single VI. How do I assign channels to be either input or output? How do I simultaneously uses both in one single VI with a while loop structure?? Which AO am I suppose to use to obtain signal from the function generator I have built to feed into the DAQCard-1200?? Help!!
0 Kudos
Message 1 of 3
(3,057 Views)
I love easy questions...

Just go to the Examples that ship with LabVIEW, and under DAQ, you will find simultaneous Input and Output examples.
0 Kudos
Message 2 of 3
(3,057 Views)
One thing you'll need to be aware of is that you will need to DMA lines: one for AI and one for AO. If you don't, then you can configure the DAQCard to do without DMA using the Config VI. But you certainly can do this.

As far as your function generator, you will want to do a buffered analog output. You will write your buffer of points to the buffer, and then tell NI-DAQ how fast to update your analog output channel with these values.

So, you can be reading from AI and checking the AO process in the same while loop. Just make sure you handle the while loop execution (the wait it exits) correctly. This can get tricky when you're doing two types of measurements.
J.R. Allen
0 Kudos
Message 3 of 3
(3,057 Views)