Aller au contenu principal

Configuration

Get the application

Get the application corresponding to your system (available here)

Unzip it where you want on your machine (ex : C:\Sim4Sys)

attention

Please make sure that the folder name does not have spaces or special characters as it could break some features.

remarque

The use of 7zip is recommended, as this tool is much faster than Windows' native zip extractor, thereby reducing the installation time.

On Windows:

  • Nothing more

On linux

  • You have to install Java

On MacOS (Catalina)

Get a personal access

You can get an access to Sim4Sys Designer by creating an account on Hub4Sys (Hub4Sys Registration)

Configure Sim4Sys Designer and its environment

Add the CIL4SysLibs (only for Pro version)

All platforms:

In Sim4Sys, File / New / Others... Select Build Libraries in Sim4Sys category. Then, click on Next and Finish in the following page. A project named CIL4SysLibs should be available in your workspace.

Import as

Alternatively, you can download the libs from another source and load the project in your workspace.

Install the build environment

On Windows:

On Linux

  • Install gcc if it is not previously installed (go to the page GCC)

On MacOS

  • Not tested

Set the preferences (Optional)

To set a preference in Sim4Sys-Designer (Eclipse window) Choose menu Window > Preferences

Preferences

In the left list select Papyrus subfolder

Papyrus Preferences

Then under Papyrus select: C++ code generation

C++ code generation

Set as follow:

  • Check “Generate Using namespaces”
  • Check “ Use C++ 11 enumerations”
C++ code generation

CSS Theme

Select CIL4Sys Theme to get a simplified view in diagrams

CIL4Sys CSS Theme

Windows 10 configuration (Optional)

To avoid the unintended changes in combo menu, you can disable an option in Windows settings. This is applicable for all combo in all applications used in Windows.

  • Go to Windows Parameters
  • Navigate to Mouse Settings
  • Deactivate the option : Scroll inactive windows when I hover them
CIL4Sys CSS Theme

Install the tools for the documents (Optional)

Go to the page LibreOffice installation

Check the Pro configuration

  1. Launch the application Sim4Sys Designer (sim4sys.exe).
  2. Enter your login information when prompted for it.
  3. Load a model example : File > New > Example > Sim4Sys Model Examples > Quick Start > Tutorial1.
  4. Go into the Overview tab.
  5. Open menu Vertical dots
  6. Chose Generate and build. The tool should launch the code generation and build. The process will produce a file named "Tutorial_defaultNode_Car.exe".
  7. Then, navigate in the explorer to find the file. To find quickly, right click on the code project (TutorialdefaultNode_Car) > Properties. Then chose Resource and click on the quick link to open the explorer. The file is located under _Debug folder. Quick location
  8. It should open a terminal and indicate that a websocket server was launched.
  9. Congratulations. Your configuration is complete.

Check the Community configuration

  1. Launch the application Sim4Sys Designer (sim4sys.exe).
  2. Enter your login information when prompted for it.
  3. Load a model example : File > New > Example > Sim4Sys Model Examples > Quick Start > Tutorial1.
  4. Go into the Overview tab.
  5. Open menu Vertical dots
  6. Chose Generate , The tool should launch the code generation.
  7. On Hub4Sys, compile the code following this page : Compile
  8. Get the executable and launch it.
  9. Congratulations. Your configuration is complete.