LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triangle waveform

Hi all

How to generate a triangle waveform with a specific amount of points in
specific ranges (on STC-DAQ)?

Robert
0 Kudos
Message 1 of 4
(2,820 Views)
Robert,
You did not mention if you looked at the Triangle Waverform VI (LV-6: Functions, Waveform, Waveform Generation palette). It has many options for creating waveforms.
Is it able to do what you need?
Doug
0 Kudos
Message 2 of 4
(2,820 Views)
For waveforms of this type, Robert, you're best to look at the Labview/examples/daq/anlogout/anlogout.llb/function generator vi. This vi lets you set up an analog output as a square, sine, triangle, or sawtooth wave. You can specify the number of points, the min/max values (which is really amplitude and offset). This will do exactly what you want already.

Mark
0 Kudos
Message 3 of 4
(2,820 Views)
Mark, Doug :

I writed probably my problem not precise ....(english is not my strong
point)
I wont to generate a triangle with specific amount of point,hier I give
an example :
from 1 [V] to 3 [V] -100 points, from 3[V] to 5 [V] - 45 points from 5[V]
to 8[V] -20 points,8[V] to 5[V] -20 points,5[V] to 3 [V] - 45 point and
3[V] to 1 [V] - 100 points - and that is one period,and this six
parts should to have the same slope - this is very important.
(In 'waveform generator' i can set only the amount of points in a whole
period)
The generation of this points is no problem,but then i become different
slops of this parts ... so,I tryed to synchronize an counter with AO(the
more points,the bigger frequency), but it works only for max.50
point/sec.If i make it faste
r,then my triangle looks not like a triangle
.... (I can't change so fast frequency of the counter - based on '
AOchangeRateOnTheFly.vi' ).

Any idea how to get out of this situation ?

Robert
0 Kudos
Message 4 of 4
(2,820 Views)