Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Var

  • Last UpdatedDec 07, 2023
  • 2 minute read

The Var node is used to create an internal variable inside the script.

  • Internal variables are commonly used to parameterize the script or to store temporary values.

  • This kind of variable is not exactly a variable but is a real node.

Platform support

This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for the Var node.

<Var name="dosimetro_val" value="0.0"/>

Position

The Var node can be put anywhere inside root node <ft>.

Var fields

These are the fields for Var node. Only the node-specific fields are indicated, not fields obtained by inheritance.

Field inheritance: NodeBase > Var

Fields

Type

Use

Default value

Description

type

sstring

Mandatory

Not set

Defines the type of the variable.

value

sstring

Optional

Not set

Assigns an initial value to the internal variable.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in