EasyManua.ls Logo

Topcon OPUS A6G2 - Page 531

Topcon OPUS A6G2
800 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
531
OPUS Projektor Manual
JavaScript
print("Failed to set the display backlight intensity to 50%
:(");
}
getVariableValid - retrieve information if a project variable has a valid value
With this function you can check if a variable has a valid value. Returns true if the variable has
a valid value. Returns false if the variable doesn't have a defined value. Returns "undefined" if
the variable doesn't exist or if the function was not called with one parameter only.
Prototype:
var result = getVariableValid(string nameOfVariable);
The returned value of that function contains the information about the variable.
Examples:
var result = getVariableValid("Speed");
if (result === true)
print("The variable has a valid value.");
else if (result === false)
print("The variable does NOT have a valid value.");
else
print("The variable does not exist or the function was
called inappropriately.");
getProperty - retrieve a property value of a DDO
All graphical objects (DDO => Display Data Object) in a project have a lot of properties. In
some cases these properties can be of interest during runtime in a JavaScript. To retrieve the
value of such a property the function getProperty can be used.
Prototype:
var value = getProperty(number DDO-ID, string propertyName);
The return value of the getProperty function will be either the value of the property or
undefined if something did not work. Since the properties of a DDO consist of various data
types, the returned property value can also be a different data type depending on the property.
Here is a list of all the properties that can be read and/or changed through JavaScript.
Javascript
propertyName
Data type
Ge
t
Set
Object type(s)
Remarks
Absolute Max Value
Integer
x
x
Numeric Fields
Bargraphs
Meter object
Absolute Min Value
Integer
x
x
Numeric Fields
Bargraphs
Meter object
Add To Page
History
Boolean
x
x
Pages
Pages where this is set to false
will not be added to the
browsing history (they will not be
accessable by pressing the
escape key)
Alarm Number
Integer
x
Alarm objects

Table of Contents