ramp

Ramp signal for test signal generation

Syntax

Description

ramp(x) creates a ramp signal wave with a slope of 1 and returns the value of the ramp at time x.

To specify when to generate a ramp signal within a test step, use this operator with the elapsed time (et) operator.

Note

ramp(et) returns the elapsed time of the test step and is the same as et.

Examples

Create a Ramp Signal

Create a ramp signal that increases one unit every 3 seconds in the test step.

ramp(et/3)

Tips

ramp signal generation statements can be used in the Test Sequence and Test Assessment blocks and in Stateflow® charts.

Introduced in R2015a