In ogScript, use the params object to access functions to interact with openGear Device parameters and constraints. The params object is also used to manipulate parameters stored in the .grid file.
The params object is accessible when a CustomPanel is associated with an openGear device or XML data file (.grid file). Scripts referencing a device must follow beneath the referenced device in the XML hierarchy.
To call an openGear Device function, use:
params.functionname (parameters);
For example:
var data = params.getValue (0x12, 0);
Some params functions return a ParamScriptable object named this, which contains several methods that enable you to manipulate parameters. For more information, see ParamScriptable Object on page 199.