Updating Model Parameters During a Stimulus Profile Test
- Updated2025-10-27
- 2 minute(s) read
Updating Model Parameters During a Stimulus Profile Test
Use the Update Model Parameters from File step in a stimulus profile to apply model parameter values defined in a text file to a simulation model that is deployed and running on a target.
- Create a stimulus profile that is associated with the system definition file that contains the model you want to update.
- In the Steps palette, click to and drag the Update Model Parameters from File step to the stimulus profile code.
-
In the Property Browser, configure the
Update Model Parameters from
File step.
Note The Update Model Parameters from File step also supports .m files generated by the Model Parameter Manager workspace tool.
- Enter a Source path to a text file (.txt) that conforms to the model parameter file format.
- Confirm that the Target property shows the target that the model is deployed to.
- Confirm that the Delimiter property is set to the delimiter that the Source file uses to separate parameter/value pairs.
- If you are using an alias file to define model parameters, enter the path to the file in the Alias File property.
- If you are using temporary variables within the Source file, enable Allow Temporary Variables
- Deploy the system definition.
- Compile and run the stimulus profile.
Related Information
- Creating Stimulus Profiles
Use stimulus profiles to act as the test executive that defines the stimuli to apply to a unit under test (UUT).
- Update Model Parameters from File Step
Updates parameter values for a simulation model to the values specified in a text (.txt) file.
- Importing and Managing Batches of Model Parameters in the Workspace
Use the Model Parameter Manager tool to import and apply model parameter values defined in external .m or .txt files to a model.
- Supported Syntax in Model Parameter Files
Format text (.txt) files to the correct syntax before you apply them to a simulation model.