Engee documentation

Target x86 support Package

Page in progress.

Target x86 is designed to assemble the C code generated from the Engee model and then run the executable file on the user’s computer.

This process can be used to:

  • Checking the code generation of algorithms in the model before uploading to the embedded system;

  • Integration with user equipment through C libraries;

  • Acceleration of simulation.

Required software

To successfully generate and run an executable file on a user’s computer, you must install:

  • Compiler /set of development tools for your OS;

  • Assembly automation system CMake.

Target x86 supports assembly via GCC, Clang and Microsoft Visual Studio.

If the compiler or CMake are not added to the environment variable PATH, then the project build may fail because the tools will not be available from the terminal.

Installing the necessary software in Windows

Installing CMake

  1. Download the installer for your version of Windows from the link CMake.

  2. Run the installation.

  3. At one of the installation steps, you will be prompted to add CMake to the environment variable Path.

    Make sure that the appropriate check mark is set to cmake was accessible from the terminal.

Installing a set of development tools

The following tools are available to choose from:

  • MinGW (recommended)

  • Clang

  • Microsoft Visual Studio

Installing MinGW (w64devkit)

  1. Download the archive from the link w64devkit-x64.

  2. Extract the self-extracting archive:

    extract archive

  3. Add a subdirectory bin from the unpacking folder to the environment variable Path.

    • In the Windows Search menu, type Changing system environment variables:

      system path

    • Open the System Properties window and go to the Environment Variables menu.

    • In the menu Environment Variables add a directory …​\w64devkit\bin in Path:

      mingw path

If desired, you can quickly check the correctness of the installation — open the terminal and run cmake --version and gcc --version.

Setting up and launching the model

Engee Preparation

Make sure that the hardware support package is installed and configured. For more information, see Hardware connection.

Setup and launch

  1. Open the Engee model.

  2. Click on the target platform selection button and select the Target Hardware mode.

  3. Add the EDM-Target-X86 block from block libraries on canvas Engee:

    demo model

  4. Add a flowchart of the algorithm to the canvas.

    The blocks used must support the generation of C code. The list of supported blocks is presented in article.

  5. Press the start button start button.