Load Model VI

LabVIEW 2017 Model Interface Toolkit Help

Edition Date: May 2017

Part Number: 374160C-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Model Interface VIs

Requires: Model Interface Toolkit

Loads a model into memory and prepares it for execution. You must call this VI to load a model before you can execute the model in a control loop.

Programming Patterns: Basic Architecture for Executing Models


Model Path specifies the path to the model you want to prepare for execution. Models must conform to the NI VeriStand Model Framework header file (NIVERISTAND_API.h). Otherwise, LabVIEW returns error code -383200.
Multirate Options contains the following elements for configuring how subsystems in a multirate model execute. If the model is single-rate, LabVIEW ignores these options.
Processor identifies the processor you want to handle execution. Enter a number between 0 and 255, where 0 (default) represents the first processor. If you enter a number that exceeds the number of available processors, LabVIEW generates a run-time error.
Priority specifies the priority of the execution of subsystems in the multirate model. The priority specifies when the subsystems execute relative to other objects on the block diagram. This value must be a positive integer between 1 and 65,535.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Model out is a reference to a specific model in memory. Wire this output to other Model Interface VIs to interact with the model.
error out contains error information. This output provides standard error out functionality.


Refer to the MIT Simple Load and Run Model VI in the labview\examples\Control and Simulation\Model Interface directory for an example of using the Load Model VI.


Not Helpful