Lesson 6: Generating code
In this lesson, you learn how to generate code from your model and view the results in the output window.
About this task
To set the active configuration:
Procedure
- In the model browser, expand the SensorComp component.
- Double-click HostConfigDebug. The Configuration window is displayed.
- In the Configuration window, select the Initialization tab.
- Expand DesignPkg, then select VehicleSensorSystem as the initial instance.
- Click OK.
- From the main menu, select .
- The Log tab lists the generated files and shows a status message. If no errors are found, you get the following message:
- From the main menu, select .
- In the Vehicle Sensor Structure diagram, select itsButton.
Results
Lesson checkpoint
In this lesson, you learned how to:
- Generate code.
- Locate code in the Code View window.