Compilation of a Simulink Model into a DLL For a Phar Lap Target

Updated Feb 27, 2019

Reported In

Operating System

  • PharLap

Issue Details

Compiling Simulink software into a DLL for use with the Model Interface Toolkit from VeriStand and the following error occurs:
'Attempting to locate a supported installation of the Microsoft Visual Studio C++ tool chain.' 
As seen below:
'Attempting to locate a supported installation of the Microsoft Visual Studio C++ tool chain.'

Solution

The following installation process ensures all of the correct software is installed and you're able to generate a DLL and run using the Model Interface Toolkit. At the moment this solution is specific to the versions stated below as it has only been tested using this system.

1. Install Simulink (and Simulink Coder) compatible with VeriStand
2. Install Windows SDK 7.1
3. Fresh install Labview 2018
4. Fresh install Labview VeriStand
5. Install .NET 4.0
6. Install .NET 4.6.2 
7. Install Windows SDK 7.1 patch

Additional Information

When compiling to a Phar Lap target the .NET Framework 4.0 will be needed as Phar Lap is an older OS it does not support newer versions of the .NET framework such as the .NET 4.6. Typically Microsoft Visual Studio Software is tied to a certain version of the .NET framework therefore, if you're using a version that does not by default come with .NET 4.0 framework and would like to compile to a Phar Lap target this will need to be installed separately.