Model Code Components
- Updated2025-10-27
- 1 minute(s) read
The files model.h and model.c are used to implement your models.
Create the following two files to implement your C/C++ model:
- model.h—Contains the type definitions for your model parameters. Note You must name the file model.h and include all user-visible parameters in your model.
- model.c—Contains your model code. Make a copy of template.c and modify the
copy to ensure you maintain interdependent structures, such as headers, imported
and exported symbols, and functions that NI software recognizes, between your
model code and ni_modelframework.c. Note You can name this .c file anything.
Related Information
- Creating 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.
- Adapting the C Template to Model Code
Use the template.c file that the VeriStand Model Framework installs as a starting point for your model code.