06-13-2012 09:24 AM - edited 06-13-2012 09:25 AM
Here is my problem:
I want my DAQmx (USB-6211) to simultaneously output two different waveforms. One should be output from ao0, the other from ao1. However, I keep getting "Error -50103". I cannot figure out how to get around this. I have tried doing Case 6 from this page but have been unsuccessful (I think that I am doing it wrong). Is there any guidance you could give me? I am new at LabView.
Thank you for your time,
P.S. - I have attached a copy of my code if it helps
Solved! Go to Solution.
06-13-2012 09:40 AM
I agree that that is likely my problem, but I do not know how to fix it. How do I use 2 channels in a single task and then implement that task into my program?
06-13-2012 04:39 PM
So I replaced "Physical Channel X" and "Physical Channel Y" with "Physical Channel XY" which states Dev1\a0:1 like you said. This new physical channel is then wired to both Create Channels. However, I still get Error -50103. Should I be using a task instead of a Physical Channel? If so, how do I set it up?
Thanks for all of your help by the way. I truly appreciate it.
06-13-2012 04:56 PM
You are going to have to show your modifications. You only need a second create channel if the parameters (i.e. min and max) for it are different than the parameters of the first channel. If you have that, then each create channel function would specify it's own channel and you would not have dev1\ao0:1 anyplace. You would also wire the task out of the first create channel to the task in of the second create channel. You would then have a single clock, trigger, start, etc. function.
06-13-2012 05:17 PM
Here is a quick modification which should do what you want. In this case I have used DAQmx Create Channel twice, because it is not clear if the two channels' Min/Max values will always be the same.
Hope that helps,