11-07-2005 06:01 AM
11-08-2005 10:04 AM
Hi Contemporarln,
I have attached an example piece of code which I have written which has the basic functionality that you specified.
The code within the while loop is my basic square wave generator.
The flat squence structure to the left of the while loop simply resets the initial value of the amplitude generated- so that if run multiple times the waveform will not run at the final value of zero.
The code which sets the final value of the waveform and plots it is that outside and to the left of the while loop.
It works by extracting the y-values of the waveform; using them to build a new array of y-values by adding the zero element at the end. This new array of y-values is then wired into the "build waveform" VI along with the old waveform to create the new waveform with the final amplitude of zero. The new waveform is wired into a property node which updates the value on the graph.
Hope this is helpful
Emma R
NIUK & Ireland
11-09-2005 06:20 AM