Connect a model to other parts of the system and run the model on a hardware target.
Before you begin, you must
compile the model
to use it. To learn more about models, refer to
Components of a Model
Primary Control Loop Step Execution in Models
VeriStand executes each model in its own loop. If a system definition contains multiple models referencing the same compiled model, VeriStand makes a temporary copy of the model so each loop has its own compiled model to execute.
Adding more than one instance of the same compiled model causes errors if the model accesses a shared resource, such as a dependency. Contact your model provider for information about whether the model accesses such resources.
and drop the model node on the diagram.
dialog box, select a simulation model and click
will load the model.
Configuration pane, use the
tab to modify the model.
Set the Initial state of the model to
To change the values of model parameters before the first time step, set the
of the model rate.
dialog box, select the parameters you want to import as channels and click
The parameters you selected appears inside the node when you expand it.
Importing too many parameters negatively impacts system performance.
dialog box, select the signals you want to import as a channels and click
The signals you selected appears inside the node when you expand it.
Importing too many signals negatively impacts system performance.
If your model contains a vector inport or outport, set the
Vector port specification
Segment into scalar channels
Maintain as vector channel.
Scalar channels provide greater flexibility than vector channels. Vector channels only map to models that contain a vector channel of the same size. You cannot map a vector channel to controls or indicators on your
or use it with calculated channels, alarms, procedures, and others.
Wire the channels to create mappings.
Depending on your goal, complete the following tasks to configure the model further.
Save the system definition file.
After adding the model to the system definition,
use model execution channels to interact with models