How VeriStand Imports Models from the Model Generation Support MATLAB Add-on

VeriStand identifies inports, outports, parameters, and signals in models you created in Simulink software according to their configuration in Simulink.

A simple model in Simulink might contain the following components.

When you add this model to a system definition in VeriStand, its components appear as shown in the following table.
Component in model Type of component in VeriStand
Sine_Gain Parameter
In1 Inport
Out1 Outport

Signal Importing

To import signals, enable the signal for export before compiling the model. In Simulink, navigate to Code Generation » Interface to enable signal export and designate the required signals as test points.

Note VeriStand does not support the use of virtual buses as signals.

Simulink External Mode

To visualize signals and tune parameters, enable Simulink external mode before building an imported model. Refer to External Mode Simulations for Parameter Tuning, Signal Monitoring, and Code Execution Profiling for more information.

Note Enabling external mode can negatively impact model execution performance.

After importing and deploying a model in VeriStand, connect to the model in Simulink by specifying the target IP address and port number. Determine the port number by referring to the ExternalMode/Port parameter. Once connected, use Simulink to visualize signals and tune parameters.

Note When importing a model compiled using Simulink external mode, VeriStand opens a port in the dynamic range of 1025 to 65536.

Parameter Importing

Simulink variables that are defined in the model workspace, Base Workspace, or in a data dictionary will be available as parameters in VeriStand if they meet the following requirements.
  • They are of a supported datatype.
  • They are referenced by at least one Simulink block or Model Mask.

Inport and Outport Importing

Top-level Simulink inports and outports become VeriStand inports and outports. Inports and outports in subsystems are accessible when connected to the VeriStand Inport/Outport blocks.

Importing Models with Referenced Models and Model Masks

VeriStand supports importing models that use Referenced Models and models under Model Masks. Their Inports and Outports will not be available, but any variable referenced by those models will be available as a parameter.

Note You can refer to VeriStand Model Generation Support for more information about installation and documentation.