Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

In order to protect the confidentiality of a Simulink model, the source generated can be compiled within MATLAB. All .c files will be compiled within a static library model.a.

  1. Set environment variable to HYPERSIM installed directory (only for Windows)

    Set environment variable
    setenv('HYPERSIM_DIR','C:\OPAL-RT\HYPERSIM\hypersim_%version%')
  2. On the Simulink code option just check “Generate makefile” and uncheck “Generate code only”.
  3. Then process build code clicking on “Build”.
    If the code generated will be run on a different architecture from the MATLAB’s one. For instance the model code is generated within MATLAB on Windows. Then it will be run on Linux real time architecture.
    The code has to be compiled on the same architecture of the simulation server.
  4. On the Simulink code option just check “Generate makefile” and then click “Generate Code”.
  5. Send the code generated to the simulation server.
  6. Use the model.mk to compile the source on the simulation server. On a terminal enter the following command:

    Compile the source on the simulation server
    gmake –f model.mk
  7. Send the code compiled to any third party protecting the confidentiality of the model.
  8. With the code compiled, the third party can process Step 3: Importing to HYPERSIM to run the model.
  • No labels