11-06-2020 01:43 AM
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
Solved! Go to Solution.
11-08-2020 12:56 PM
Hello Madan Mohan,
Are you familiar with this document?
11-10-2020 12:04 AM - edited 11-10-2020 12:51 AM
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
11-10-2020 06:31 AM - edited 11-10-2020 06:32 AM
Hello,
Unfortunately I haven't had chance to perform such kind of task.
However maybe this article will shed light on this topic.
11-10-2020 09:48 PM
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