Generating Models from The MathWorks, Inc. Simulink® Software for Deployment on NI Linux Real-Time Systems

Updated Feb 28, 2019

Issue Details

I have a Simulink® model that I would like to compile for my NI CompactRIO running NI Linux Real-Time. How can I properly configure my modeling environment to build my model?


Before following these configuration steps, make sure you have installed versions of MATLAB®, Simulink®, and Real-Time Workshop® onto your development machine that are compatible with NI VeriStand.

In order to build a .so file, you will need the appropriate compilation tools. Download and install the version of C/C++ Development Tools for NI Linux Real-Time that matches your version of LabVIEW Real-Time: Before attempting to compile your model, please use an installer disc or a downloaded installer  to install NI Veristand and the NI VeriStand Model Framework.

With the NI VeriStand Model Framework and C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition prepared, you can now build the .so file for your model using The Mathworks, Inc. Real-Time Workshop® software:
  1. Open Simulink®. From within your model, go to Simulation»Configuration Parameters.
  2. In the Solver tab, please ensure the Stop Time is set to inf and the Type is set to Fixed-step.
  3. Under the Real-Time Workshop® category select the NIVeriStand_Linux_ARM_32.tlc (For ARM-based targets) or NIVeriStand_Linux_64.tlc (For Intel x64-based targets) file click Apply
  4. Click Apply and then click Build to compile the model.
Simulink® and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. All other trademarks are the property of their respective owners.

Additional Information

  • LabVIEW 2014 Model Interface Toolkit added support for compiling Simulink® models into shared objects that can run on ARM-based NI Linux Real-Time targets.
  • VeriStand 2015 and LabVIEW 2015 Model Interface Toolkit added support for compiling models for both ARM-based and Intel x64-based NI Linux Real-Time targets. 


Not Helpful