11-09-2005 10:44 AM
11-10-2005 02:51 PM
11-10-2005 04:12 PM
Hi Patrick,
I made a small mistake in that email. You can have more than one output
task for one board at one time; however, you can only have one output task for
one board if you are trying to generate a waveform. But you CAN generate
a single point with a separate task. This should make your life much
simpler as you won't have to generate an array of data like I stated
before.
I double checked this and was able to get a small example to work where it
generated a waveform and simultaneously updated a single point on a different
analog output channel.
Sorry for the confusion,
11-10-2005 04:50 PM
11-11-2005 12:21 PM
11-11-2005 01:58 PM
Hi Otis,
I downloaded and ran your example VI, but it gave me the following error when trying to write the single point output (upper task -- had to add a "simple error handler" after the clear task so I could see the error description), and terminated on the first iteration of the loop.
11-11-2005 02:00 PM
And I didn't mention it before, but yes you are correct in assuming that I use LabVIEW 7 (version 7.1.1 to be exact).
Patrick
11-14-2005 05:37 PM
11-15-2005 10:10 AM
Hi Otis,
I've modified the example you sent me so that it now does 2 single point operations (still in two parallel tasks), rather than one single point and one waveform. This works just fine, no errors at all, including when I get both channels to update on the same loop iteration. I've attached the VI to this post.
The error I get when running your original example is the same as the error I get when running my own applications; ie. it looks like the same timing type must be used in all tasks on a particular board. However, when I change all the tasks to waveform type, that's when I get the error that you can't have more than one task on a given board at a time. As reflected in the example above, when the VI with the waveform output is disabled all of the other VIs which do single point outputs to that board can happily run simultaneously. It seems unlikely, but perhaps there is some difference between the simulated PCI-6722 and my actual PXI-6722.
Patrick
11-15-2005 11:17 AM
Patrick,
Remember, you can only have ONE waveform generation going at the same time as other single-point operations. You cannot do waveform generation on channels 0 and 1 at the same time you waveform generation on channels 2 and 3. There is only one timing engine and one FIFO for the waveform generation. However, each channel can be used independently for single-point output.
So, you could do waveform generation on channel 0 in one task and then have 7 more tasks, each with on channel doing single-point output.
I hope that is clear. It seems we need an example that shows how to do this.
Neil F. (former developer of E Series Analog Output code)