05-08-2017 12:49 PM
Hey beginner here, I'm looking to use this example to get dual analog out: http://digital.ni.com/public.nsf/allkb/4E5F83E4A3462234862574B100755F75 . Followed along with the solution but not seeing dual waveform generation at 180 deg phase. Was wondering if this method is dated for current versions and needs revision, or any suggestions on another method that is as general.
Thanks!
Solved! Go to Solution.
05-08-2017 01:26 PM
That article should still be good.
If you attach your VI, we can tell you why it isn't doing what you want.
05-08-2017 01:30 PM
The example looks OK to me. What are you getting as an an output and what did you enter for "physical channels"? Are you getting an error code out?
05-08-2017 04:51 PM
I don't have access to the work station at the moment, but I'm simply modifying the example vi Voltage - Continuous Output.vi in the examples folder of LV 2014. All I've done is modify the loop accordingly: iterations x 180 into phase, true boolean to Reset.
I've setup channels in the vi Dev/ao0:1, which are to two separate galvos.
Error I'm receiving is 200524, tasks =/= data... where tasks = 2, data = 1.
Daq write is setup multi-sample, multi-channel, 1D waveform.
I'll get my vi attached as soon as I can.
Thanks again
05-09-2017 09:52 AM
Definitely attach your VI.
How many waveforms are in the 1-D array of waveforms going to the DAQmx Write? It sounds like you only have 1 waveform in there.
Did you define the 2nd waveform in the Waveform Settings Array by entering data into element #1?
05-23-2017 11:42 AM
It's been a little while since I've been able to work on this, but here is the VI I'm working off of right now.
05-23-2017 12:06 PM - edited 05-23-2017 12:11 PM
Yes. You only have 1 element defined in the array labeled "Output Array" under the section of the front panel that says "Waveform Settings".
Go to index 1 and you'll see they are empty values. Define values in there and run again.
05-23-2017 12:22 PM
Oh wow thanks, here I am looking for a solution in the block diagram and I completely overlooked that. Works great now, thanks again!