Generation of Java code for simulation of a system
To generate a Java code application for simulation, you do not have to make any changes to your model. Use ACS to generate the Java application using the following ACS Code Generator DLL:
Java Generator Animation
Changing the port on which Modeler receives notification calls from the application
By default, the generated application uses TCP/IP Port 15777 to send notification calls to Modeler when performing a simulation of an application.
If your Modeler installation is an upgrade, the default TCP/IP Port may be set to 4242 rather than 15777.
If you want to use a different port, you must set up both the application and the computer performing the simulation to use the same port:
• To set up the application to use a different port, on the computer that generates the application, set the value of the following registry key to the port you want to use:
This is where the port number should be changed if necessary.
In order for a running application to communicate with Modeler the Java source project for which the code has been generated should reference the *.jar files in \PTC Integrity Modeler\Modeler\System\JavaGen.
• To set up the computer that is to performing the simulation to use a different port, on that computer set the value of the following registry key to the port you want to use: