STISIM Drive (SDL) - ES - End Simulation Run

End a simulation run. This should normally be the last event in your events file. Every events file should include an ES event so that the simulation knows when to end. If an ES event is not included, the simulation will end after the driver has driven the distance indicated by the last event in the events file plus the distance of the far clipping plane. Using this event you can end a simulation run using either distance traveled or total time since the beginning of the run.

EVENT PARAMETERS:

PARAMETER 1:

Time (in seconds) when the simulation run will end. It is not always desirable to end a simulation run using just the distance into the run. For cases when you want the driver to drive a set amount of time, use the ES event with the distance parameter set to 0 and this parameter set to a non zero value. If this parameter is not set or is set to 0, then the simulator will only use the distance for determining when the simulation run will end. If this parameter and the distance parameter are both set, then the simulation will end when the first threshold is met.

EXAMPLE:

10000,ES
0,ES,1800
10000,ES,300

Not much to talk about here, as long as the ES command occurs in the event file then at one of the thresholds, the simulation will end. In the first example, no time threshold has been set so the simulation run will end when the driver has traveled 10000 feet down the road. The second example ends a simulation run when the simulation has been running for more than 30 minutes (1800 seconds). This is because the distance parameter is set to 0. Finally, in the third example, since both a distance and a time have both been specified, the simulation run will end either when the driver has traveled more than 10000 feet down the road or has driven for more than 300 seconds, whichever comes first.