Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

CompactRIO & Simulink/Stateflow

Has anyone used Simulink/Stateflow with the CompactRIO?
0 Kudos
Message 1 of 2
(4,191 Views)

You can use The Mathworks Inc. Simulink/Stateflow with CompactRIO cRIO-900x processors (ETS real-time operating system) if you have the Real-Time Workshop code generator add-on and the NI Simulation Interface Toolkit (SIT). The SIT automates the process of generating code for use within LabVIEW Real-Time ETS and targetting it to the real-time processor. Basically, the model is compiled into a DLL that is compiled for the ETS operating system and then a LabVIEW VI wrapper is created around the DLL to make it easy to use. SIT also scripts the LabVIEW code for the rest of the application as well, making it easy to run the model connected to real I/O hardware, which can either be NI-DAQmx hardware or an FPGA + C Series modules in the case of CompactRIO.

When running your models on Windows, SIT also has features for linking to LabVIEW for Windows from your simulation models which enhances visualization, debugging, parameter changes, etc.

The newer cRIO-901x real-time controllers run the VxWorks operating system. It is possible to target Simulink/Stateflow models to these controllers, but it's not something that's natively supported through the SIT. The code generation/compilation/targetting process is more manual. Has anyone implemented Simulink/Stateflow models on the cRIO-901x controllers yet?

0 Kudos
Message 2 of 2
(4,180 Views)