LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Is there a function for generating a triangle waveform that has both offset and delay?

Solved!
Go to solution
I want to have a triangle waveform in which I can set a delay and the width of the waveform (I can achieve this by using  Triangle Pattern.vi). Also I want to be able to give custom values for the min and max amplitude. example I want to be able to set the min amplitude to -1 and max to 6, or any other combination?
0 Kudos
Message 1 of 9
(3,685 Views)
In the attached vi, I am trying to create a triangle waveform. Can I somehow add controls for custom min and max amplitudes?
0 Kudos
Message 2 of 9
(3,682 Views)
Sure.  Just add a value to the array that comes out.  So to offset it 1, just add 1 to the array and it will go from 1 to 2.
0 Kudos
Message 3 of 9
(3,680 Views)

duplicate post

 

aestat already answered your question. Did you look at the VI that was posted?

Message 4 of 9
(3,666 Views)
By doing that, I can change both the min and the max values symmetrically. Like it will shift both the min and the max values by a constant amount, which is 1 in the case you have mentioned. I want to be able to specify different deviations from the center. Like if min is 2 and max is 7, the min is off by 2 and max is off by 6
0 Kudos
Message 5 of 9
(3,664 Views)
Yes I looked at that vi and it almost solved what I was looking for. I had this one more small doubt that is why I started this new thread
0 Kudos
Message 6 of 9
(3,661 Views)
Solution
Accepted by topic author VarunKumar

It sounds to me like you are struggling with basic arithmetic. Calculate the amplitude by subtracting the min from the max. Then, from the waveform array, add the min (or subtract the max).

 

Message Edited by Dennis Knutson on 01-15-2010 03:46 PM
Message 7 of 9
(3,657 Views)
Oh yes.. my bad.. I indeed was struggling with basic arithmetic. It is taking me time to get used to the graphical programming style. Thanks
0 Kudos
Message 8 of 9
(3,595 Views)

Perhaps you can click on the 'Options' to change the solution to something other than your response?

0 Kudos
Message 9 of 9
(3,584 Views)