Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Generating C++ code > Generating C++ code for system simulation > Generating C++ code for simulation of a system > Generating C++ code for simulation of a system (C++ code)
  
Generating C++ code for simulation of a system (C++ code)
This procedure assumes that you have set up your model to generate C++ code for a system. Tell me more...
You can generate C++ code for simulation and automatically build the application through the «Build Rule» stereotype. Tell me more...
To generate C++ code for system simulation:
Through Automatic Code Synchronizer (ACS), generate the C++ code files.
For information about the ACS Code Generator DLLs you can use to generate C++ code files for simulation of a system, see ACS generation schemes for system simulation.
For information about using ACS to generate code files, see Overview of Shadow.
When you create the Generation Settings Scheme through the Launch ACS/TDK dialog, ensure that on the Harness tab you select the Harness Class (specifies the initial state machine Class) and Classes to generate as stubs.
Ensure that you have built the dependent libraries. How?
The C++ files are generated in the target folder. You can now build your application and then perform the simulation through Modeler. For more information about simulation of an application, see Introduction to system generation and simulation (system simulation).