04-03-2024 08:33 PM
Hey everyone,
I would like to use a Simulink model in a LabVIEW VI using the Model Interface Toolkit. I am encountering quite some difficulties.
Here is my setup:
- I am using Windows
- Installed LabVIEW 2024 Q1
- Installed Matlab R2020b
- Installed NI Model Interface Toolkit 2024
- Installed NI Veristand 2024 Q1 and NI Veristand Model Framework 2021 R3
- Installed the Matlab Veristand Model Generation Support
- Installed the 'Microsoft Visual C++ 2017 (C)' compiler and set it up in Matlab using the "mex -setup" command
The Simulink model I'm trying to use is very simple for testing purposes :
I first tried to compile my Simulink model using the C++2017 compiler and NIVeriStand.tlc. However I get an error while building the model:
Hence I tried compiling my model using Matlab Veristand Model Generation Support and veristand.tlc, I manage to successfully generate the DLL file. However when running the LabVIEW MIT Get Model Information vi example, I get the following error:
Any advice on what I am doing wrong or how to achieve a similar result ? Any tutorial or guide I've tried to follow hasn't worked so far.
Thanks in advance.
04-04-2024 04:03 PM
There should be a VeriStand compiler for Windows targets.
Reference: Creating Simulation Models Using NI VeriStand Model Framework