Create a model in C or C++ that NI software can load and execute through the VeriStand Model Framework.

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. Based on the operating system (OS), choose a compiler.
    OS Compiler
    Windows Microsoft Visual C++
    NI Linux RT x64 C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition
  2. Create a model header file—Create a model.h header file that contains the type definitions for model properties and all user-visible parameters in your model.
  3. Adapt the template to model code—Use the template.c file that the VeriStand Model Framework installs as a starting point for your model code.
  4. Create a makefile to compile model code—Create a makefile for the compiler and operating system your model will use.
Locate example .c and model.h files and makefiles in <RootDrive>\VeriStand\<xxxx>\ModelInterface\custom\examples.
Note <RootDrive> is the drive where NI software installs and <xxxx> is the VeriStand version number. If you have problems locating the files, check NI Package Manager to make sure that the VeriStand Model Framework was installed.

After compiling the model, add it to a system definition.

For more information on simulating models in LabVIEW with the Model Interface Toolkit, open LabVIEW and select Help » LabVIEW Help. Click Contents and browse to Toolkits » Model Interface Toolkit.