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

AVEVA™ XR Studio

Valuegenerator

  • Last UpdatedMay 27, 2024
  • 2 minute read

The Valuegenerator node is designed to provide output values to link to other fields.

It supports:

  • Sin function for SVEC3 target. Works only when function parameter p is set to sin.

  • Random function for SFLOAT target. Works only when function parameter is set to random.

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

Sin function

The type must be set to SVEC3 and the function to sin.

It generates three sinusoids, one for each SVEC3 element (x,y and z).

It uses two parameters for each sinusoid. Total parameters needed are six.

  • Length: Time in seconds to complete sinusoid.

  • Multiplier: Scales the value.

Random function

The type must be set to SFLOAT and the function to random.

It uses two parameters for defining the random range:

  • Min Value: The minimum random value.

  • Max Value: The maximum random value.

Code example

This is a code example for the Valuegenerator code.

<Valuegenerator name="vgen1" start="true" type="svec3" function="sin" parameters="2.0 0.01 2.5 0.008 3.1 0.007"/>

Position

The Valuegenerator node must be inside a context node, such as Context or Global.

Valuegenerator fields

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

Field inheritance: NodeBase > Valuegenerator

Fields

Type

Use

Default value

Description

active

sbool

Optional

true

Activates or deactivates the value generator.

function

sstring

Optional

Random

Set Random or Sin to select function.

parameters

sstring

Optional

Not set

Number and meaning of the parameters depends on the selected function.

start

sevent

Optional

Not set

Starts value generation.

stop

sevent

Optional

Not set

Stops value generation.

type

sstring

Optional

SFLOAT

Specify SFLOAT or SVEC3 according to selected function.

value

sstring

Read only

Not set

The output of the generator.

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