framp

Purpose:

Ramp a real variable to a specified value at a specified rate.

Enter:

framp <interval> <variable> <target> <ramp_rate>

Where:

interval Specify the rate in milliseconds at which the update is to be executed.
variable Specify the name of the real variable to ramp.
target Specify the final value to achieve as a result of the ramp.
ramp_rate Specify the ramp rate in units per second. A value of 0 sets the variable immediately and exits.

Example:

framp WARP RPM 1200 50
The above command ramps the value of the RPM variable from its current value to 1200 RPM by 50 rpm/sec.

Notes:

If ramp_rate is 0, the variable is set to the target value immediately and the program exits. 

The program runs until the target is achieved and can be run in the background using &.

The target and ramp_rate may be specified as variable labels.

See Also:

sine