Can I run a Simulink model in real time on a general Linux target?

13 views (last 30 days)
Martin Gurtner
Martin Gurtner on 27 Jan 2020
Answered: Prasanna Gude on 6 Mar 2020
Is there a way of running a Simulink model in real time on a general Linux target? I would need pretty much the same as the Raspberry Pi Support package does, with the exception that the model would run on a general x86-64 machine with Linux installed. At first, I thought that this is exactly what the "Run on Custom Hardware" App in Simulink does, but even when one uses this app and the "Generic Real-time Target (grt.tlc)", the model paces way faster than real time.

Answers (1)

Prasanna Gude
Prasanna Gude on 6 Mar 2020
Yes, a Simulink model can be run on a general Linux Target. Refer to the following link to know about running a Simulink model on Linux Target (Raspberry Pi Hardware):
The simulation of “Generic Real-time Target (grt.tlc)”is executed at a rate corresponding to the model’s sampling rate. To know more about the simulation of Generic Real-time Target, refer to the following link:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by