Startup script example

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

 

Submitted by vinayak on Wed, 12/15/2010 - 20:02 

Can anyone post an example of startup script file and how to use it? The information in the help menu is not muct of use.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    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.