01-12-2010 01:26 PM
01-12-2010 01:29 PM
01-12-2010 01:49 PM
01-12-2010 01:58 PM
01-12-2010 02:32 PM
01-12-2010 02:38 PM
01-13-2010 03:54 AM
01-13-2010 06:39 AM
Here you go.
01-14-2010 10:20 AM
Well actually my question is a little different. I think I could not state it clearly. Unzip the attached file and run Create Waveform.vi
Provide the following values - number of pints = 1000, negative limit = -1, positive limit = 1 and run.
Now, what I am trying to do here is that I am generating a triangle waveform consisting of 1000 data points with negative limit of -1 and a positiv limit of 1
So, I am plotting 1000/2 points from -1 to 1 and another 1000/2 points from 1 to -1
I do not need a continuous waveform. The Example.vi that you attached does generate a waveform with a specified frequency, amplitude and sampling rate but specifying the number of data points to be collected is crucial for me. How can I do that?
01-14-2010 10:34 AM
The example that was posted does allow you to set the number of samples. If you specify a frequency of 1, sample rate of 1k, 1000 samples, Triangle wave, amplitude of 1, you get a triangle wave with 1000 points and the amplitude goes from 1 to -1. It's not much simpler than that. Your code is generating a half triangle wave and in a much more complex manner (and in the case of the subVIs with those local variables), in a not so elegant manner.
p.s. And what would possess you to create a subVI without a border in the icon?