VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab model import error in NI VeriStand for Windows Target

Solved!
Go to solution

Hi,

I have developed a simple model in Matlab 2020a and did the code generation for building the .dll file for VeriStand Windows Target. I could able to build the model successfully after installing the dependencies required for the compiler. But, when I import it in VeriStand I face some issues. I have attached the import error (import.png) and code generation section in Matlab (code_gen.png) FYR. Can anyone please let me know what could be the root cause of the issue? 

 

Below are the System Configuration,

OS: Windows 10 64-bit

NIVeriStand version: 20.3

Matlab version: 2020a

Mingw compiler ver: MinGW-W64-builds-4.3.5 (as per the compatibility mentioned in NI website)

 

Regards,

Madan Mohan 

Download All
0 Kudos
Message 1 of 5
(1,606 Views)

Hello Madan Mohan,

 

Are you familiar with this document?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 5
(1,555 Views)

Hello VA.KI,

Yes, I have followed that procedure and installed all the requisite compilers and IDE tools required for building the .dll file. I could able to build the executable in MATLAB, but my main concern is it's not importing that model in VeriStand for the Windows Target. Please let me know how to solve this aspect of the problem, Thanks

 

Regards,
Madan Mohan 

0 Kudos
Message 3 of 5
(1,546 Views)
Solution
Accepted by MadanMohan

Hello,

 

Unfortunately I haven't had chance to perform such kind of task.

However maybe this article will shed light on this topic.

__________________________________________
The best way to thank, is to give KUDOS
Message 4 of 5
(1,531 Views)

Va.Ki,

Thank you so much for the article reference. It has helped me to solve the issue. The MEX compiler initialized in the MATLAB software was different (mex_c_win64) than the toolchain (mingw64) that I used for the building the model. I initialized the model with the latter compiler and then built the model. Now, I could able to import the model in NI VeriStand for Windows

 

Regards,

Madan Mohan

0 Kudos
Message 5 of 5
(1,510 Views)