Main Content

ramp

Ramp signal for test signal generation

Syntax

Description

example

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

Sample ramp signal

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

expand all

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.

  • ramp signal generation statements cannot be used in Stateflow® charts.

Version History

Introduced in R2015a