sawtooth
Sawtooth wave test signal
Syntax
Description
sawtooth(
creates a sawtooth wave with a
period of 1 and range -1 to 1. In the interval 0 <= x < 1, square(x) increases. The
difference between triangle waves and sawtooth waves is that a triangle wave has equal rise
and fall times. x
)
To specify the number of sawtooth wave cycles within a test step, use this operator with
the elapsed time (et
) operator.
Examples
Create a Sawtooth Wave
Create a sawtooth wave with a period of 10.
sawtooth(et/10)
Tips
sawtooth
signal generation statements can be used in the Test Sequence and Test Assessment blocks.sawtooth
signal generation statements cannot be used in Stateflow® charts.