Real-Time Workshop    

Licensing Protocols for Simulink Solvers in Executables

The Rapid Simulation target supports variable step solvers by linking the generated code with the Simulink solver module (a shared library). When this rsim executable is run, it accesses proprietary Simulink variable step solver technology. In order to do so, the executable needs to check out a Simulink license for the duration of its execution.

Rapid Simulation executables that do not use Simulink solver module (for example, rsim executable built for a fixed-step model using the Real-Time Workshop fixed-step solvers) do not require any license when they run.

The rsim executable will look in the default locations for the license file

where matlabroot is the one use when building the rsim executable. If the rsim executable is unable to locate the license file (this may happen, for example,

if you run this executable on another machine, where matlabroot is no longer valid), it will print the following error message and exit:

If the rsim executable is unable to check out a Simulink license (this would happen, for example, if all Simulink licenses are currently checked out), or has other errors when checking out a Simulink license it will display a detailed error message (similar to the one above) returned by the FLEXlm API and exit.


  Introduction Building for the Rapid Simulation Target