01-07-2008 01:47 PM
01-07-2008 01:59 PM - edited 01-07-2008 02:03 PM
what you describe should work.
but looking at your vi, on top of the style atrocities, you create two tasks for the same channel!! then of course, error 50103, reserved ressources
btw, if you want you can use a single task to address both channels. in the channel list control just use AO0:1, to adress channels 0 and 1. then you will have to use DAqmx write Nchan Nsamp, and input an array of 2 waveforms.
01-07-2008 02:28 PM
correction: you are right, two AO sould not be placed in separate tasks. so just make a single task for both AO channels, as explained above.
01-07-2008 02:30 PM
01-07-2008 02:32 PM
01-07-2008 04:44 PM - edited 01-07-2008 04:45 PM
Here - look at this example, complete it (params for sin waveform, finish and stop) and run it.
tell me if it helps.
12-31-2013 09:53 AM
This example is a good start, but I found that I needed to implement a wait until done to get it to run properly. The following works: http://digital.ni.com/public.nsf/allkb/0C1ADEF06A54AB2D862575040066FD51 , but is problematic because I can't control the timing with this, (i.e. the output ignores the time points in the waveform) and I needed to. Implementing a wait until done, I needed an extra sample for the wait until done:
http://digital.ni.com/public.nsf/allkb/EAA2CB9EC5236E3E862570D7008021F0
and ultimately, lead to the attached picture/file. The for loop isn't necessary, it just happens if there is a timing error. This works for me, and I really hope it helps someone else out... it was very surprising that labview doesn't have an example for this.
12-31-2013 10:02 AM
LabVIEW does have examples for multiple channel output. I think all of the 2013 analog output examples work with multiple outputs.
07-08-2014 09:40 AM
Thanks..