Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Test Inputs

STEP(height,step time) STEP test input

Scroll Prev Top Next More

Returns 0 until the step time and then returns height.  It is the same as:

IF THEN ELSE ( Time plus > step time,height,0) 

time plus = Time + ( TIME STEP / 2.0 ) 

NOTE The value returned by STEP does not change except at TIME STEP intervals regardless of the integration method used.

 

Units:STEP(units,time) --> units (step time has the same units as Time, the result of STEP has the units of the step height)

Example

STEP(10,20) is 0 till time 20, then 10.

See also: RAMP, PULSE

Sample model: STEP.mdl in FunctionExamples