From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-12-2018 12:44 PM
I have been trying to create a dual waveform generator from an analog voltage output. I have been trying to use the link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L6WSAU, but it is not working for me. Whenever I put more than one channel in the physical channels, the Daqmx Write (set to Analog 1D Wfm, NChan, NSamp) has an error. It says that there are two tasks going into the Daqmx, but it is only set for one. I am unsure on how to proceed from here. Is there a way to use a Daqmx to write the waveforms from two different channels.
Solved! Go to Solution.
04-12-2018 12:59 PM
Are you using the example they talk about in that article? If so, make sure you are generating 2 waveforms in your code. By default it is only 1 waveform. Go to index 1 and make sure it is not grayed out:
If you're not using that example, please attach your code.
04-14-2018 02:09 PM
I have attached the VI that I am using. It is from LAbeView 2014.
04-14-2018 02:17 PM
Go back and read GregoryJ's message. Drag the bottom border of your array control downwards so it shows 2 elements, then note how many of those elements are showing data.
04-14-2018 02:21 PM
I've extended the array, but the bottom element is greyed out. Then when I run the VI, I get error message -200524. It says that I have two channels in the task, but only one channel in the data.
04-14-2018 04:01 PM
Because you haven't entered any data in that element. So your array only contains one element.
As soon as you start entering something in the second element (index =1), you'll have 2 elements!
Using arrays is a basic LabVIEW skill. I would recommend you learn more about LabVIEW from here. How to Learn LV