12-05-2014 11:57 AM
Dear colleagues,
My development machine is running Windows 8.1 x64 , NI LabVIEW 2014 with NI Veristand , MATLAB 2014a and Visual Studio 2013. Those are university requirements so I can't uninstall any of them for the time being.
NI Veristand is recognized in MATLAB as shown below:
From the compatibility guide, I found out that NI Veristand is only compatible with Visual C++ 2010 or below as shown :
Which means VC++ 2013 is not supported as it is installed by default with my version of VS 2013 premium.
The problem is although I downloaded and installed VC++ 2010 and updated it to SP1 as shown:
MATLAB always shows VC++ 2013 Professional as default mex compiler. I don't know if you hold a solution to this problem and why VC++ 2013 is not supported.
Is there any known workaround to use VC++ 2010 compiler while 2013 version is installed? Thanks millions of times both NI Team and community members have been always there for me and others.
Have a wonderful day
Solved! Go to Solution.
12-08-2014 12:08 PM
Hello Waleed,
The NI VeriStand Model Framework will automatically attempt to locate the latest and compatible MSVC++ compiler installed on your system - regardless of the mex-configuration. I would advice to configure MEX with whichever compiler you choose in order to provide a smooth experience when simulating models in the Simulink environment. However, for compilation of models, you simply need to install MSVS 2008\2010 or SDK 7.0\1.1 and our build scripts will automatically detect and select the latest compatible version.
You can determine the compiler selected by our scripts by locating a string printed in the MATLAB Command Window similar to the one shown below:
12-12-2014 02:54 PM
Thanks Nestor for your response.
After posting question on MATLAB Answers as well, Both answers made me figuring it out as the following:
After that, I tested many simple examples including the sine offset and delay. It was compiled well and easily imported to LabVIEW.