08-28-2018 12:50 AM - edited 08-28-2018 12:53 AM
Dear friends,
I am trying to compile simulink models from Matlab R2016b into .dll files in order to run them on a PXI target. The compulation used to work in the past, however after formating my PC, I now get the error:
### Processing Template Makefile: C:\VeriStand\2017\ModelInterface\tmw\target\NIVeriStand_vc.tmf [Warning: VeriStand: You selected an unsupported compiler. Attempting to locate a supported installation of the Microsoft Visual Studio C++ tool chain.
VeriStand: Cannot locate a supported installation of the Microsoft Visual Studio C++ tool chain. Visit www.ni.com/info and enter the Info Code ex3efp for a list of supported compiler configurations.
When I I visit this webpage I get instructions about downloading the Windows SDK for Windows 7 and .NET Frameworking 4.0. However, by computer says a higer Version of .NET Framework 4 is already installed...
Will be glad for any suggestions
Thanks, Lysandros
Solved! Go to Solution.
08-28-2018 02:55 AM
Hello, I had something similar when setting up a matlab/simulink generation VM (Windows7 pro). I had to uninstall all the frameworks & runtimes and install original .NET4.0 before being able to install SDK, and then reinstall all that stuff. I'm using R2016a, because I think it's the latest version compatible with VC2010 32 bits DLL code generation.
Hope it can help, HAGD
09-07-2018 01:04 AM
Thanks, it worked. However after installing the older NET Framework, Labview first could not launch. When I finally installed the newer version of NET Framework (in this case 4.7.2) everything worked again.
Also, to verify that the compiler has been installed, type in the Matlab Command window:
mex -setup
Matlab should reply:
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
As far as I realized, the other compiler called MinGW is not suitable for dll. compilation out of Simulink in this case.
06-21-2021 07:12 PM
I ran into same issue, and i tried few things including installing and uninstalling but none worked until I follow the below steps.
Step 1: Follow all steps in this: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YI5RCAW&l=en-US
Step 2: If having issues installing Win 7 SDK on Win 10 follow this: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7qtSAC&l=en-US
Step 3: Run command "mex -setup" in Matlab for compiler selection (This is important, the default is MingW compiler): refer step 3 in https://zone.ni.com/reference/en-XX/help/372846M-01/veristand/convert_model_to_dll/
Step 4: Incase if Visual c++ compiler is not listed after running the above matlab command, that means for some reason Win7 SDK installation did not solve the issue, then install visual studio community 2017. After installing visual studio, restart PC and then rerun step 3 above. This time it should should the visual c++ compiler.
Step 5: Follow step 4 of https://zone.ni.com/reference/en-XX/help/372846M-01/veristand/convert_model_to_dll/
After this, the build should work.
09-05-2021 10:32 PM - edited 09-05-2021 10:40 PM
Hello, i have the same problem, how did you solve it ? About install the priority of .NET and VeriStand. Thank you~ ( My OS : win10、Matlab : 2016a、VeriStand : 2016、Visual : 2015、.NET3.5 )