Operator FloatVariable

Operator FloatVariable generates a software variable.

You can define a target within the design hierarchy where the variable will be visible and accessible. The target is defined by two parameters: DisplayHierarchy and DisplayName. In DisplayHierarchy you address a hierarchical box within the same process the operator itself is located in. In parameter DisplayName you set up the name for the target parameter. If DisplayHierarchy and DisplayName are both set, the parameter defined by DisplayName will be available in the hierarchical box addressed by DisplayHierarchy. If DisplayName is empty, no parameter is created. If DisplayName is set, but DisplayHierarchy is empty, the parameter defined by DisplayName is added to the parent hierarchy (i.e., the hierarchical box the operator itself is located in).

The operator has no inputs and outputs, as it doesn't interfere with the data flow structure of the design.

A general introduction into library Parameters you find in Library Parameters.

I/O Properties

Property Value
Operator Type None (since there are no inputs or outputs)

Supported Link Format

None

Parameters

Status
Type static read (although the GUI displays write) parameter
Default none
Range OK or error message

Displays the error status. If parameter Activate is set to Yes, the other module parameters are checked. This parameter displays the result of this check, i.e., either OK or an error message.

This parameter is not part of the final applet.

DisplayName
Type static write parameter
Default none
Range any string

If you want to grant access from and to the parameter at another point in the design (in addition to the operator instance itself), you need to define a new parameter. Specify here the name of this new parameter.

If this field is empty, no new parameter is created.

DisplayHierarchy
Type static write parameter
Default none
Range any string

Specify here the hierarchical box to which you want to attach the new map parameter you defined in parameter DisplayName.

If you defined a new parameter DisplayName, but leave parameter DisplayHierarchy empty: The new parameter is added to the hierarchical box that contains the operator instance. (Keep in mind this is not possible if the operator instance is located on the highest (process) level.)

[Note] Syntax for Setting up Path to Display Target

If you want the new parameter to show up in another place of the design, you need to specify the path to the hierarchical box that is to contain the new parameter in parameter DisplayHierarchy.

The syntax is as follows:

<Path> is the relative path from process level to the hierarchical level of the design where the <Hierarchical Box> is located that is to receive the new parameter. Thus, parameter DisplayHierarchy can only address hierarchical boxes within the same process. Use a slash as separator between different hierarchical levels.

<HierarchicalBox> is the name of the hierarchical box that is to receive the new map parameter.

Example: Level0/Level1

Value
Type static, dynamic, write, read parameter
Default 0
Range double

Map parameter for access from and to the variable. This parameter mirrors all properties of the variable.

Unit
Type static write parameter
Default -
Range Latin-1

Enter here the unit for the parameter Value.

Description
Type static write parameter
Default -
Range any text

Enter here the description for the parameter Value.

RangeFrom
Type static write parameter
Default 0.1
Range

Definition of smallest valid value. You can also enter a formula here.

RangeTo
Type static write parameter
Default 1.0
Range

Definition of biggest valid value. You can also enter a formula here.

RangeIncrement
Type static write parameter
Default 0.1
Range

Definition of intervall between valid values (definition of stepsize). You can also enter a formula here.

Activate
Type dynamic write parameter
Default No
Range {No,Yes}

Yes = Access to and from the variable (via map parameter Value) is activated.

No = Access to and from the variable is de-activated and parameter Status is disabled. Parameters DisplayName and DisplayHierarchy have no effect.