How to Use on a Target cRIO Linux a Shared Object Compiled in Simulink®

Updated Nov 3, 2019

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW Model Interface Toolkit

Operating System

  • NI Linux Real-Time

Issue Details

I have to use on a target cRIO Linux a shared object compiled in Simulink®. How can I do it?

Solution

You have to follow exactly these steps in this order:
  1. Through the Model Generation Toolkit  (you can even install it without VeriStand ) compile the .so from Simulink®
  2.  Execute it from LabVIEW using the  Model Interface Toolkit 
  3. If you need there are already API and examples directly installed from the Toolkit at this path: C:\Program Files (x86)\National Instruments\LabVIEW 201x\examples\Control and Simulation\Model Interface\