Marine systems simulation
Running a compiled SimObject

• Suppose your name is John and you are working on the SimObject library named fhsim_tutorial
• If you are using Windows, you should have a Visual Studio solution file in fhsim_tutorial/build.
• Let <INPUT_FILE> be C:\Users\john\fhsim_tutorial\input\MassLinearSpring.xml
• Let <PLAYPEN_DIR> be C:\Users\john\fhsim_tutorial\build\playpen

## From Visual Studio

In the following, it is assumed that you are using the Debug configuration and have built the project with visualization.

1. In the Solution Explorer, right click on your SimObject library and select Set as startup project.
1. In the Solution Explorer, right click on your SimObject library and select Properties.
2. Click Debugging
3. Set the following:
• Command: FhVis_d
• Command arguments: <INPUT_FILE>
• Working Directory: <PLAYPEN_DIR>/bin
4. Press <F5> to start the simulation.

Some of these properties may be found using the browse-button.

## From the terminal

Start a terminal session and execute the following:

cd <PLAYPEN_DIR>/bin
FhRtVis_d <INPUT_FILE>