Startup script example
Altair Forum User
Altair Employee
Answers
-
Submitted by Anders89 on Sat, 12/18/2010 - 02:29.
You can initialize the C interpreter work space by executing an initial .c file. While VisSim supports standard ANSI C syntax, it does not handle preprocessor commands at this time. To specify your .c file, enter the file path under Simulate > Simulation Properties... > Preferences > Startup Script File: Note that VisSim also has a built-in matrix language interpreter, so you can specify a .VML file here too.
If you have Matlab installed, you can also specify a .m file in the Startup Script box above and it will send it to Matlab on sim start.
In any of these cases, you will be able to refer to variables defined in the startup script during the subsequent VisSim run.
0