Differences Between Local and Global Parameters

NI VeriStand 2018 Help

Edition Date: May 2018

Part Number: 372846M-01

»View Product Info
Download Help (Windows Only)

Models contain one of two types of parameters in NI VeriStand:

  • 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.
  • 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.

After you add a model to a system definition, you can identify whether a parameter is global or local by observing its expression, as displayed in the System Explorer window when you select the parameter in the configuration tree. The expression of a global parameter also indicates whether its scope is at the target level or the model level. The following table shows how a parameter expression changes depending on its type and scope. Note that the name of the owning model in the system definition is Sine Wave.

Type Expression Identifying Characteristic
Local parameter Sine Wave/Block1/Amplitude The root of the Amplitude parameter is a block rather than a model.
Global parameter, model-level scope Sine Wave/Amplitude The root of Amplitude is the owning model.
Global parameter, target-level scope Amplitude The root of Amplitude is not a specific model.
Note  A parameter expression contains the model name that appears in the System Explorer configuration tree. Every parameter also has an associated path, which contains the name under which the model was compiled. The following excerpt from the parameter configuration page for previous example shows the path and expression for a global parameter with model-level scope.

Related Links

Importing Parameters and Signals

Configuring the Scope of Global Parameters

Understanding How NI VeriStand Imports Models from The MathWorks, Inc. Simulink® Software

Using LabVIEW VIs as Models


Not Helpful