Returns 1.0, starting at time start, and lasting for interval width and then repeats this pattern every tbetween time; 0.0 is returned at all other times. If the value of tbetween is smaller than width then 1 will be returned between start and end. If width is less than or equal to TIME STEP the pulses will only last one TIME STEP.
The value returned by PULSE TRAIN depends only on te arguments passed to it. Normally, this function is called with Constants. However, you can call it with dynamic variables or expressions in which case the actual output pattern may not be regular.
With PULSE, Vensim Creates time plus internally to avoid rounding errors in comparing Time with start+width.
NOTE The value returned by PULSE TRAIN does not change except at TIME STEP intervals regardless of the integration technique used.
Units: | PULSE(time, time) --> dimensionless (start and width have the same units as Time, the result of PULSE is dimensionless) |
Example
is daytime = PULSE TRAIN(8,12,24,FINAL TIME)
See also: PULSE
Sample model: PULSE+PULSE TRAIN.mdl in FunctionExamples