11-02-2007 04:10 PM
11-02-2007 11:00 PM
Use the Elapsed Time Express VI from theTiming & Dialog pallette to set the time of your desire to generate the waveform. Connect its 'Time has elapsed' terminal to the conditional terminal of the while loop.
If you want to use this Exp VI as a SubVI, just rt-click it & tell Open Front Panel & proceed as per the instruction it gives.
11-05-2007 04:10 PM
11-05-2007 04:11 PM
Hi Luois,
You can set a timer to generate the waveform for an amount time, as the preview post said a very straight forward way of doing this will be using the “Elapse Express VI” an its “time has elapsed” output in conjunction with an “OR” gate to stop the while loop.
If you don’t want to continuously generate the waveform you can always take a different approach instead of using the “generate waveform function” inside the while loop you can always change the Fs (sampling frequency) and the # of points to generate a periodic waveform with a finite numbers of periods. In this way you can control the size of the waveform.
A very good resource for waveform generation is this article in DevZone: Signal Generation in LabVIEW
I hope it helps
11-06-2007 11:46 AM