Build and run the model

Build and run the model

Now the model is finished and source code can be generated. The project wizard has created a launch configuration that is responsible for generating the source code. From HelloWorld/ right click gen_HelloWorld.launch and run it as gen_HelloWorld. All model files in the model directory will be generated.

The code will be generated to the src-gen directory. The main function will be contained in SubSystem_HelloWorldRunner.java. Select this file and run it as Java application.

The Hello World application starts and the string will be printed on the console window. To stop the application the user must type quit in the console window.