Compiling The MathWorks, Inc. Software Models for Phar Lap Targets in VeriStand or Model Interface Toolkit

Updated Nov 1, 2023

Environment

Software

  • VeriStand
  • VeriStand Model Framework

I am trying to compile my MathWorks, Inc. Simulink® model for a Phar Lap target in NI VeriStand or Model Interface Toolkit. How do I set up my software to use this model?

These instructions are specific to setting up your environment to compile MathWorks Inc. software models for use on Phar Lap targets in NI software. There are separate instructions for compiling models for Windows targets and for Linux RT targets .
This article details how to use the VeriStand Model Framework to compile the model and this article should not be used with the NI VeriStand Model Generation Support MATLAB Add-On as that does not include Phar Lap support. 

Note, VeriStand 2021 and later drops support for all Phar Lap targets
 
  1. Download and install the Windows SDK for Windows 7 and .NET Framework 4.0 with the options below checked. You will need the Windows 7 SDK even if you're on a Windows 10 computer, but the installation process may look different.
    • Windows Headers and Libraries
    • Windows Native Code Development Tools
    • Intellisense and Reference Assemblies
    • Visual C++ Compilers
    • Microsoft Visual C++ 2010
  2. Install a compatible version of MATLAB®, Simulink®, and  Simulink Coder™ (formerly Real-Time Workshop®) onto your machine.
  3. Once the MathWorks software has been installed, download and Install the VeriStand Model Framework as part of the NI VeriStand installation. 
    • If required you can avoid installing the entire VeriStand Development environment by following the steps provided in Compiling Models for Use with VeriStand Without Development License . If you are going to integrate the software model in LabVIEW refer to the Model Interface Toolkit installation process.
    • If you installed VeriStand before you installed the MathWorks software, VeriStand will not have installed the required support for the MathWorks software. You can correct this by rerunning the VeriStand installer and ensuring the VeriStand Model Framework is ticked.
  4. You can now follow Step 3: Select the Correct Compiler and Step 4: Build the Compiled Model in the Compiling a Model from The MathWorks, Inc. Simulink® Software - NI VeriStand Help document to build your model.

Additional Information

  • MATLAB®, Simulink®, Simulink Coder™ and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. All other trademarks are the property of their respective owners.

  • The code generation option can be found in MATLAB® by selecting Code > C/C++  Code > Code Generation Options... from the toolbar