Skip to main content

Quick Start

Use our playground to get a quick start with CppModel.

Playground

To get started with the CppModel framework you can select any model in our playground website - Simtroller, and export it to a Windows or Lunux project. We use CMake as a build platform.

Exporting model

Select an algorithm from the algorithms page on our playground.

Model selection

Once in the model page you can play by adjusting the parameters and see how the model behaves. The model page is interacive example representing the functionality of the CppModel workspace using javascript.

Model view

You can export any model from it's model view screen to a C or C++ simulation project by clicking the Export Project button. The project will include selected CppModel library together with the model code and a CMakeLists.txt file. You can open the project in your IDE and start working with it.

Export project

Running the project

For this demo we have a VisualStudio Code with pre-installed CMake extennsion and MSYS2-UCRT64 runtime environment.

Upon opening the project in Visual Studio Code, you will be prompted to select a CMake kit. Select the MSYS2-UCRT64 kit.

Select kit

Run the project by clicking the Run button in the bottom left corner of the IDE.

Run simulation

You should see the output of the simulation in the terminal, which the first time will include a link to the CppModel login page or if already logged in, a link to the workspace. Click the link to open the workspace in your browser and see the simulation execution result.

Login link

You can also see the simulation execution in the workspace by navigating to the My Simulations page and selecting the simulation with the same name as your project.

Simulation list

Within the simulation view you can see the simulation results, including the model parameters and the output of the simulation. Next time you run the simulation, you can click on the Refresh button to see the new results.

Simulation view

Go on change your new code and simulate. Iterate and build great systems with CppModel.