How to Import Constant Block Parameter Using VeriStand Model Generation Addon

Updated Nov 14, 2025

Environment

Software

  • VeriStand
  • MATLAB
  • Simulink

This article demonstrates how to import constant block parameters into VeriStand when using the VeriStand Model Generation Add-On to build a model in Simulink.

If you are using VeriStand Model Generation Addon 25.3.1 version or newer:

You can checked the Export block parameters in the model setting before build the model.

 

If you are using VeriStand Model Generation Addon below 25.3.1 version:

  1. For each constant you want to turn into a parameter, create a variable in the block settings. The variable can be created in the model workspace, base workspace, or a Data Dictionary.
  2. Open the Model Explorer, right-click the newly created variable, and select Convert to parameter object. That changes it from a standard MATLAB variable to a Simulink Parameter object that can be exported with the model.
  3. In the model configuration, select Code Generation > Optimization section, make sure the Default Parameter Behavior is set to Tunable. 

Note: You could also do steps 1 and 2 in reverse, where you first create the parameters in the Model Explorer, and then link each constant block to the parameter.