The starting point of automatic scripting is a batch file:
- @echo off
- echo Start VA from command line.
- REM This windows batch file will start VisualApplets from the command line and
- REM execute the tcl-sript given as argument
- REM A run can produce a result folder next to an simulation data input folder
- REM containing all data and log files
- REM The TCL commands are supported in VisualApplets Version >= 3.1.0
- REM The TCL commands are NOT supported in VisualApplets Version <= 3.0.6 (68118)
- SET VISUALAPPLETSEXE="%VASINSTALLDIR%\bin\VisualApplets.exe"
- echo VA start [%VISUALAPPLETSEXE%] ...
- REM test.tcl with absolute path (seperator \)
- %VISUALAPPLETSEXE% -file "VAscript.tcl"
- echo VA exit [%errorlevel%]
A tcl example file would be the following:
Together with the VA-design a simulation can be run and produce the follwing result.