Table Of Contents

Identifying Local and Global Parameters

Last Modified: June 10, 2021

Use VeriStand to determine if your parameters are local or global.

Before you begin, add a model and import parameters.

Local parameters apply to a specific subsystem, or block, in the owning model. Local parameters allow you to independently adjust a common parameter for multiple instances of the same block.

Global parameters, by default, apply to the current model and to any global parameters with the same name in other models on the target. You can restrict global parameters in a model from applying to other models by configuring the scope of the global parameters. Global parameters are similar to workspace variables in MathWorks MATLAB® software.

A parameter expression contains the model name that appears in the System Explorer configuration tree. Every parameter also has an associated path that contains the name the model was compiled under. The expression of a global parameter also indicates whether its scope is at the target-level or the model-level.

  1. Launch the VeriStand Editor.
  2. In the Project Files pane, double-click a system definition file (.nivssdf). System Explorer opens.
  3. Click Targets»Controller»Simulation Models»Models in the configuration tree.
  4. Click a model.
  5. Click Parameters and select a parameter.
  6. On the Parameter Configuration page, review the parameter information.
  7. Based on the model's expression and characteristics, determine the parameter type.
    Example expression Characteristic Parameter type
    Sine Wave/Block1/Amplitude The root of the Amplitude parameter is a block rather than a model. Local
    Sine Wave/Amplitude The root of Amplitude is the owning model. Global, model-level scope
    Amplitude The root of Amplitude is not a specific model. Global, target-level scope
    spd-note-note
    Note  

    The name of the owning model in the system definition is Sine Wave.


Recently Viewed Topics