Customization > SySim- SysML model execution > Generating and building a SySim model execution > Building the SySim model execution application (SySim)
  
Building the SySim model execution application (SySim)
Preparing a SysML model for SySim
Modeling a SySim model execution
Generating and building a SySim model execution:
Setting up Microsoft Visual Studio to work with SySim
Generating the Visual Studio project for the SySim model execution
Setting up the SySim model execution form
Building the SySim model execution
Building the Simulink shell
Working with a SySim model execution
After generating the Visual Studio project for the SySim model execution, you can build the SySim model execution application from Visual Studio. Alternatively, you can build the SySim model execution application from SySim.
To build the SySim model execution application from SySim
1. Ensure that you have generated the Visual Studio project and set up the Visual Basic form.
For more information, refer to Setting up the SySim execution form .
2. Start SySim.
For more information refer to Starting SySim.
3. In the SySim Simulator list, select the SySim Simulation Scenario Block for which you want to build the SySim model execution application.
4. In the Microsoft (TM) Visual Studio Control group, click the Make Executable Only button.
The location and name of the built SySim model execution application is as follows:
<project directory>\bin\Debug\<SySim Project name>.exe
Where:
<project directory> is the path specified in the Project Directory box in the SySim.
<SySim Project name> is the name specified in the SySim Project Name box in the SySim.
If you are using a referenced Simulink model, after building the SySim model execution application you must build the Simulink shell. For more information refer to Building the Simulink shell
If you are not using a referenced Simulink model, after building the SySim model execution application you can start the SySim model execution. For more information refer to Starting a SySim model execution
To build the SySim model execution application from Visual Studio:
1. Ensure that you have generated the Visual Studio project and set up the Visual Basic form.
For more information refer to Setting up the SySim model execution form
2. From SySim, click the Open Visual Studio button.
Or
From Visual Studio, open the Visual Studio project that SySim generated. The location and name of the Visual Studio project is determined by the Project Directory and SySim Project Name values that are set in SySim.
3. On the Build menu, click Build Solution, or
On the Debug menu, click Build <project name>.
The location and name of the built SySim model execution application is as follows:
<project directory>\bin\Debug\<SySim Project name>.exe
Where:
<project directory> is the path specified in the Project Directory box in the SySim.
<SySim Project name> is the name specified in the SySim Project Name box in the SySim.
If you are using a referenced Simulink model, after building the SySim model execution application you must build the Simulink shell. For more information refer to Building the Simulink shell
If you are not using a referenced Simulink model, after building the SySim model execution application you can start the SySim model execution. For more information refer to Starting a SySim model execution