Using Models from LabVIEW VIs
- Updated2025-10-27
- 2 minute(s) read
Convert LabVIEW VIs into compiled .lvmodel or .lvmodelso files.
In order to generate compiled models from LabVIEW VIs, you need
the following products:
- LabVIEW development system that is the same year version as your VeriStand installation.
- LabVIEW Application Builder
- In LabVIEW, select .
- On the Generate NI VeriStand Model from VI dialog box, enter the Source VI Path where you saved the source file.
- Enter a Destination Folder where you want to save the generated model.
- Optional:
If your source file is a simulation subsystem, click
Next.
-
Specify a model time step (sec) that indicates
the interval between the times the ODE Solver evaluates the model and
updates the model output.
Note For your compiled model to run in real-time, the model time step (sec) value must equal the controller period multiplied by the model Decimation, or the model Decimation divided by the Target Rate. These two methods are represented by the following equations.
- model time step (sec) = Controller Period * Decimation where Controller Period = 1/Target Rate
- model time step (sec) = Decimation/Target Rate
In System Explorer, use the Controller Configuration page to specify the Target Rate and the Model Configuration page to specify the Decimation.
- Specify the ODE Solver.
-
Specify a model time step (sec) that indicates
the interval between the times the ODE Solver evaluates the model and
updates the model output.
-
Click Build.
Note If you experience errors when converting a VI, refer to LabVIEW VI Model Conversion Preparation.
- A .depvs file that LabVIEW creates to reference the dependencies.
- Any LabVIEW .dll located in a subdirectory named data in the destination folder where LabVIEW generates the compiled model.
Related Information
- LabVIEW VI Model Hardware Target Support
Verify your hardware target will support a LabVIEW VI compiled into a VeriStand model.
- LabVIEW VI Model Conversion Preparation
You must assign front panel controls and indicators in LabVIEW VIs to the connector pane so VeriStand can identify them as inports, outports, and parameters when you add the compiled .lvmodel or .lvmodelso to a system definition.
- LabVIEW Application Builder