Copyright VirtualSim 2004-2020 - All rights reserved
Runtime
vsTASKER generates C++ code and produces an executable (or a dll depending on the settings).
If the GUI needs a database (.db) located normally in data/db directory, the runtime engine needs the corresponding compacted database containing everything needed by the engine for the simulation.
This database must be associated with the executable. It carries the same name as the executable with .rt extension. The runtime database is recreated every time the database is changed and saved from the GUI. You will find it in the same directory as the executable.
Path
Directory where the output (EXE/DLL/COM) is produced, the makefile is generated and the Runtime Database (.rt) is located.
Name of the executable (without .exe or .dll) and the corresponding runtime database.
The extension depends on the output type selected in Link (Generates).
To remember: For deployment of the simulation engine, in standalone mode, always include the runtime database (.rt). Standalone executable can be obtained from the Scenario property window.
Specify if the RTC must run in Real-Time or Asynchronous mode. In Real-Time mode, The frequency is kept (if possible) through cycles. For example, if 30 Hz specified, then, every second (on the user clock), the RTC would have processed 30 cycles (one cycle every 33 milliseconds). In Asynchronous mode, the Integration Time is used to define the cycle length.
When selected, User (entered) code and help data are excluded from the Runtime Database (.rt), making it smaller in size and reducing the memory foot-print.
- Best for CPU release the CPU between cycle if time permits.
- Best for Accuracy keeps the load and wait for the integration time to be over before triggering the next cycle (or returning in case of an external call).
- Launch Only (default) does not start automatically (unless standalone mode). User must depress the Start button to start the simulation.
- Start and Pause will initiate a one cycle only start (without any time advance) to prepare the simulation. Pause mode is engaged. Press Start button to start the simulation.
- Auto-Start will start normally the simulation right after launch of the simulation engine. This mode should be selected for standalone executable, unless a START button is added into the HMI or if the start is provided by another mean (then Start and Pause shall be a better option).
The StartandPause mode works only once. When Stop is depressed, the restart will be operating normally (no pause).