Table Of Contents

Choosing Compiler Tools for a Model

Last Modified: March 24, 2021

Download compiler tools to convert models made in other modeling environments.

Before you begin, install the VeriStand Model Framework on the computer you are compiling the model. The framework adds tools you will use during the compile process.
  1. Determine what real-time operating system (RTOS) your target runs.
    spd-note-note
    Note  

    If you want to create a compiled model that runs on Windows, skip this step.

  2. Based on the model type and the RTOS your target runs, refer to the following table to determine which tools you need to compile the model.
    Model type Windows Phar Lap Linux
    C/C++

    Microsoft Visual C++

    Microsoft Visual C++

    C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition

    LabVIEW
    • LabVIEW development system that is the same year version as your VeriStand installation.
    • LabVIEW Application Builder
    • LabVIEW development system that is the same year version as your VeriStand installation.
    • LabVIEW Application Builder
    • C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition
    MathWorks Simulink® Software

    Microsoft Visual C++

    Microsoft Visual C++

    C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition

  3. Optional: For Simulink models, complete the following steps to select the compiler in the MathWorks MATLAB® software.
    RTOS Steps
    Windows

    You do not need to select a compiler when you install Visual Studio 2017.

    Phar Lap ETS
    1. Run mex -setup in the MATLAB software.
    2. Select the option number for a compatible version of Microsoft Visual C++.
    NI Linux Real-Time

    You do not need to select a compiler when you install C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition.

  4. Determine which tool versions are compatible with your version of VeriStand.
After determining your compiler tools, compile your model.
  • C/C++Create a model in C or C++ that NI software can load and execute through the VeriStand Model Framework.
  • LabVIEW VIsConvert LabVIEW VIs into compiled .lvmodel or .lvmodelso files.
  • MathWorks Simulink SoftwareCompile models from Simulink software into a .dll or .so file.

Recently Viewed Topics