Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-02124// Views: AA-02124// Created: 2023-01-26 23:12:18// Last Updated: 2023-01-27 15:08:05
HowTo
How to Run Different Models on Different Cores Simultaneously at the Same Target with RT-LAB

You can run multiples models using different cores of a single simulator.

 The first step is to Enable Multimodel Support on the Target Simulation Settings tab (it is not necessary to enable it on the localhost):


After that open the project with the models that you want to run, and build the projects. 

It is important to highlight that not necessarily all the models need to be inside of the same project on RT-LAB, they can come from different projects and it is also possible that the models come from different host computers.

After building all the models, double-click on each model name and go to their Assignment tab


On the Assignment tab of each model, click on Advanced Options.

On the table of subsystems assignment it will appears a column of Cores. Here you can choose a specific core for the sm_subsystem as well as for each ss_subsystem of the models from the available cores on the simulator.

Note: The Core 0 can not be used to run simulations since this is the core with the Operating System of the simulator.

Note: The total number of subsystem (SM,SS) to be run simultaneously should not exceed the number of licensed cores in the target.



Do the same core selection for the other models that you want to run:



Now you can load and execute all the models simultaneously.

If you intend to communicate between the models please take a look in the following KB: How to Communicate with Different Models Running on Different Cores at the Same Time with RT-LAB

Note: if you are using the datalogging, especially OpWriteFile, you should assure that the respective MAT-Files in the different models need to have different names or be stored in different locations in the target, otherwise they would be overwritten in the target or even be corrupted. By default, MAT-files are created in the root folder of the target.