Häufig gestellte Fragen

Brauchen Sie technischen Support?

Difference between WaitForTime and Sleep commands in ScriptControl

Frage

What is the difference between “waitfortime” and “sleep” in ScriptControl?

Antwort

The WaitForTime command waits until the simulation time reaches a certain time:

So for example "WaitForTime 10" waits until the simulation time reaches 10s. The simulation time is the time displayed inside CarMaker (see screenshot below)
But the simulation time does not necessarily run the same speed as the actual time! (for example 5x RT means it runs five times faster)

The Sleep command pauses the script for a certain numbers of actual seconds of the computer / wallclock time independent from the simulation time inside CarMaker.

Brauchen Sie technischen Support?
  • Datum: 01.08.2023
  • Produkt: CarMaker
  • Version: 12.0
  • Komponente: ScriptControl
  • Sprache: Englisch

Tags

ScriptControl
tcl/tk
Test Automation