This article will explain and walk through how to generate FMI models from the MathWorks®, Inc. Simulink® for NI VeriStand.
The Functional Mockup Interface (FMI) is an API standardization for exchanging dynamic system models. NI VeriStand 2019 and higher versions enable configuration and execution of FMI 2.0 Co-Simulation models on Windows and NI PXI Linux Real-Time systems. This support requires FMI models to have the proper executable binaries available. For
Windows targets, win32 binaries are required. For
NI PXI Linux Real-Time targets, linux64 binaries are required.
MATLAB R2020a and higher versions enable generating standalone FMI models with Simulink® Compiler™. This article also introduces an open-source 3rd-party toolkit, FMIKit-Simulink from Dassault Systèmes®, for working with lower versions of MATLAB. The following table gives a summary of toolkits' capability to generate models for NI VeriStand model deployment.
Table 1. Toolkits' Capability to Generate Models for NI VeriStand Model DeploymentToolkit for Simulink® | Generated Model Format | Deploy to Windows | Deploy to Phar Lap | Deploy to NI PXI Linux RT | MATLAB Compatibility |
---|
VeriStand Model Framework | *.dll/*.so | ü | ü | ü | VeriStand Modeling Version Compatibility |
---|
Simulink® Compiler™ | *.fmu | ü | Not supported | ü | For Windows targets: R2020b - latest For NI PXI Linux RT targets: R2020a - latest |
---|
FMIKit-Simulink | *.fmu | ü | Not supported | ü | R2012b - latest |
---|