SIMetrix Script Manual: SxGlobal Function

Returns and sets the value of a global value.

In all cases this function will return the content of the associated global value. If
a second parameter is set giving a new value to assign, then it will overwrite any existing value.

Arguments

Number

Type

Compulsory

Default

Description

1

string

Yes

reference

2

any

No

value

Argument 1

The global memory reference this call will use.

Argument 2

Optional parameter used to set the value of the global.

Returns

Return type: any array, or any single, or string single

The value stored in the global memory, or an error message indicating that a value cannot be returned.
Reasons for not returning a value include no value being set, the set value being an internal platform data type, or
the reference not having been allocated.

▲Function Summary▲

◄ SupportedWriteFormats

SxUUID ▶