ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop AO in while loop

I just realized that I have a problem with buffered output not stopping. In other words, I write the buffer continuously until a case that I have is true. However, AO Write never stops writing the old buffer! How do I get it to stop if these are set in a while loop, without stopping the while loop?
Thanks!
0 Kudos
Message 1 of 4
(3,161 Views)
I'm not very expert in that but I would suggest few things:

- use a small size waveform to feed into the AO Write : you will improve user interface response.
- you may consider to use AO Wait after your AO Write to make sure all your waveform has been written, but you will have a discontinuity in your signal if you do a loop.
- you may need to set up separate loops, one for the AO process, another one for the other processes.


Cyrille
0 Kudos
Message 2 of 4
(3,161 Views)
What do you do in the case statement? AO Clear stops the waveformm generation and releases the buffer.
0 Kudos
Message 3 of 4
(3,161 Views)
I'm trying to make "on-the-fly" controls for a triangular wave output on 2 channels. I've modeled my VI after the function generator example. If I try to put the AO Clear VI in the case structure (actually in a sequence structure inside the case structure), I get more errors. I think this may be a programming issue, but I'm not entirely clear what the problem is...
Thanks.
0 Kudos
Message 4 of 4
(3,161 Views)