LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I generate a triangle, square and saw tooth wave from an array of points?

The non elegant code is because I am using labVIEW for the first time.

 

Is there a way by which I can specify the negative and the postive limits for the data points. Like in Example.vi with an amplitude of 1, the waveform starts at 0, goes to 1 -> -1 -> 0. Can i have a waveform that starts at -1 -> 1 -> -1

0 Kudos
Message 11 of 16
(887 Views)

The non elegant code is beacuase I am using LabVIEW for the first time.

 

I understabd that the waveform starts at 0, goes to the max amplitude and then the min amplitude.

Can I have a waveform that starts at the min amplitude, goes to the max amplitude, and then returns to the min i.e. if amplitude is 1, the waveform goes form -1 -> 1 -> -1 ?

0 Kudos
Message 12 of 16
(885 Views)
If you use the example that i gave you all you have to do is set the amplitude to the desired level.
Tim
GHSP
0 Kudos
Message 13 of 16
(878 Views)
Adjusting the amplitude works fine in cases when the magnitude  of the positive and the negative limits are the same. Can I have a diff magnitude for the positive and negative limits. Eg- can I have the waveform from -2 to +1?
0 Kudos
Message 14 of 16
(864 Views)
You can add an offset like this.
Tim
GHSP
Message 15 of 16
(851 Views)
To get to -2 to 1 set the amplitude to -1.5 and offset to 0.5.
Tim
GHSP
0 Kudos
Message 16 of 16
(849 Views)