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 > Overview of generating C code (C code) > Overview of modeling C code (C code) > Overview of modeling C code (C code) > Setting up a system for simulation on a different computer (C code)
  
Setting up a system for simulation on a different computer (C code)
If you want to generate an application on one computer and then simulate that application on a different computer, in the SimParams.c file you must set the gSimMachineAddress global variable to the IP address of the computer on which you want to perform the simulation.
You can do this in two ways:
Change a registry setting on your computer, so that the gSimMachineAddress global variable is generated by default to reference the other computer.
Change the gSimMachineAddress global variable in the generated SimParams.c file for a single build of the application.
To set up asystem for simulation on a different computer-through the registry:
1. Open the Registry
To open the registry under Windows 10: In the Windows Search the Web and Windows box, type Regedit, and then press the Enter key.
To open the registry under Windows 8.1 or Windows Server 2012: On the Windows Apps screen, type Regedit, and then press the Enter key.
To open the registry under Windows 7: Click the Windows Start menu, type Regedit, and then press the Enter key.
To open the registry under Windows Server 2008 and earlier supported versions of Windows: On the Windows Start menu, click Run, type Regedit, and then press the Enter key.
2. In the left pane, locate and select the following registry key.
HKEY_CURRENT_USER\Software\Artisan Software Tools\Synchronizer\Simulation
3. In the right pane, locate the MachineAddress value and set its value data to IP address of the computer that is going to simulate the generated system:
a. Right-click the MachineAddress value, and then click Modify.
b. In the Value Data box, type the IP address of the computer that is going to simulate the generated system, and then click OK
4. Save and close the registry.
To set up a system for simulation on a different computer-through the SimParams.cfile:
1. After generating the system using the C Win32 Animation Generator DLL, open the SimParams.c file that is generated within the target folder.
2. Locate the line that sets the value of the gSimMachineAddress global variable.
3. Change the line so that the gSimMachineAddress global variable is set to the IP Address of the computer that is going to simulate the generated system.
4. Save and close the SimParams.c file.
* 
If you regenerate the application, you will need to change the SimParams.c file again.