Table of Contents

Table of Contents

FlexScript Class - Emulation.Variable

Emulation.Variable

Description

A class that allows you to read and write from a Emulation variable.

Properties

connection Gets the variable's owner connection as a Emulation.Connection object.
value Gets and sets the variable's value.

Constructor

Emulation.Variable Creates a reference to an Emulation Variable.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

Emulation.Variable.connection

readonly Emulation.Connection connection

Description

Gets the variable's owner connection as a Emulation.Connection object.

Emulation.Connection myConnection = myVariable.connection;
Do no remove, this fixes the anchor on doc.flexsim.com

Emulation.Variable.value

Variant value

Description

Gets and sets the variable's value.

double value = Emulation.Variable("myVariable").value;
Emulation.Variable("myVariable").value = 3;
Do no remove, this fixes the anchor on doc.flexsim.com

Emulation.Variable Constructor

Emulation.Variable( Variant variable )

Parameters

variable The name or rank of the variable.

Description

Creates a reference to an Emulation Variable.

Emulation.Variable variable = Emulation.Variable("PE1");