LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to simultaneously output a waverform and sample data from 2 other channels

I am a laview novice and this should be basic question. I am running a NiDAQ 6052E and would like to output a waveform on one channel and measure waveforms on 2 other channels. I have each working but cannot get them to run at the same time. I think the problem is that labview is either outputing the waveform or collecting the data once its gets caught in one of the while loops. Is there a better way to do this? or is there a way to run but while loops in the same thread.

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

Hi Priam,

 

A great question. There are actually examples created in LabVIEW to do just this. The example you will most be interested in is the Multi-Function Synch AI-AO.vi, found in the LabVIEW Example Finder under Hardware Input and Output>> DAQmx>> Synchronization>> Multi-Function. (You can open the Example Finder from the initial LabVIEW splash screen by clicking on "Find Examples..." or by going to the Help menu in an open VI and selecting Find Examples)

You will need to replace the generated waveform data with your own, but the AI and AO will be synchronized sharing a sample clock.

 

Hope this helps!

Mallori M

Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 2 of 2
(2,581 Views)