LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Model Interface Toolkit and Simulink for LabVIEW 2024Q1

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 : 

sebastienchahoudepflch_4-1712194321324.png

 

 

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:

 

sebastienchahoudepflch_1-1712193584011.png

 

 

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:

 

sebastienchahoudepflch_3-1712193822516.png

 

 

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.

 

0 Kudos
Message 1 of 2
(722 Views)

There should be a VeriStand compiler for Windows targets.

Reference: Creating Simulation Models Using NI VeriStand Model Framework

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 2
(653 Views)