Connect a model to other parts of the system
and run the model on a hardware target.
Before you begin, you must compile the
to use it. To learn more about models, refer to Components of a Model
and 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.
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.
Launch the VeriStand Editor.
On the Mapping Diagram on the
Palette, click and drop the model node on the diagram.
In the Open dialog box, select a simulation model and
The Mapping Diagram will load the model.
In the Configuration pane, use the
Item tab to modify the model.
Set the Initial state of the model to Running or
To change the
values of model parameters before the first time step, set the
Initial state to
Set the Decimation of the model rate.
Click Import parameters.
In the Import Parameters dialog box, select the
parameters you want to import as channels and click
The parameters you selected appears inside the node when you
Importing too many parameters negatively impacts system
Click Import signals.
In the Import Signals 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
many signals negatively impacts system
If your model contains a vector inport or outport, set the
Vector port specification as
Segment into scalar channels or
Maintain as vector channel.
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
Workspace 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
Save the system definition file.
After adding the model to the system definition, use model execution
channels to interact with models