In Simulink® Project, startup shortcuts help you set up the environment for your project.
Startup shortcut files are automatically run (
.mat files), and opened (Simulink models)
when you open the project.
Projects warn if you have more than one startup shortcut. Startup shortcuts run in alphabetical order. If execution order is important, consider creating one script that calls all the others, and use that script as your only startup shortcut.
Configure an existing file as a shortcut to run when you open your project.
In the Files view, right-click
the project file and select Add Shortcut
to > General, or
if you have created a shortcut group you want to use, then select Add Shortcut to >
GroupName. You can change shortcut group later.
Select Shortcuts Management.
Right-click the shortcut file and select Set Shortcut Action > Startup .
The Shortcut Action column displays
Run at Startup.
Create a new startup shortcut file.
In the Shortcut Management view, click Create Action Shortcut > Startup Script.
Name and save the file. Startup shortcut scripts can
have any name. You do not need to use
The tool adds the new file to the project and sets it to
Right-click the file and select Open.
Write the shortcut script using the Editor.
Note: Shortcuts are included when you commit modified files to source control. Any startup shortcuts you create run for all other project users.
To stop a shortcut running at startup, change back to a basic shortcut using Set Shortcut Action > None.
If you want to set the start up folder, see the check box option at the root project node: Change current folder to project root on start up. See Change the Project Name, Root, Description, and Startup Folder.