Marine systems simulation
Compiling the code

Todo:

If your environment is set up correctly, and you have the correct access to Artifactory, you should be able to compile this project with visualization by running:

cd <PROJECT_DIR>
mkdir buildvis
cmake -Ax64 -DFH_VISUALIZATION=1 ..
cmake --build . --config Release --target install
cmake --build . --config Debug --target install

You should now have a Visual Studio solution file in <PROJECT_DIR>/buildVis, assuming that you are working on Windows.

# Running a simulation based on your SimObject.

## 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.

• <INPUT_FILE> is an XML input file used to test your library
• <PLAYPEN_DIR> may be e.g. C:\_work\_DEV\FhSimPlayPen_vs14-64

## From the command prompt on Windows

Start a command prompt and execute the following:

cd <PLAYPEN_DIR>/bin
FhRtVis_d <INPUT_FILE>