Creating Two Simultaneous Analog Output Waveform

Updated Dec 21, 2017

Reported In

Software

  • LabVIEW Base

Driver

  • NI-DAQmx

Issue Details

I am receiving the Error -50103 "specified resource is reserved" when I try to write two simultaneous waveforms with a phase shift to two analog output channels. Is there an example program that does this?
 

Solution

You should be able to achieve this behavior by implementing an example in LabVIEW. Navigate to LabVIEW examples by selecting Help>>Find Examples... In the example finder select the Browse tab then Hardware Input and Output>>DAQmx>>Analog Output>>Voltage - Continuous Output vi. This will allow you to select any number of channels on the front panel and output the same waveform to those channels. 

To implement a phase shift on those channels you can edit the existing example in a similar way to the screen shot below. 
 

Save and close the Waveform Buffer Generation (multi) VI. On the front panel of the Cont Gen Voltage Wfm-Int Clk VI, choose the two channels to output the simultaneous waveforms. For example, to output the waveforms on channels 0 and 1 of device 1, the physical channels should be Dev1/ao0:1. See the following article about how to select multiple channels in LabVIEW: Select More Than One NI-DAQmx Channel in LabVIEW. When the program runs, the waveform should be similar to the following image (for a phase shift of 180°).
 

WAS THIS ARTICLE HELPFUL?

Not Helpful