11-03-2010 11:27 AM
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.
11-04-2010 06:34 PM
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