Download
(right-click
and "save as")
#
# @author: Phoenix Integration
# @description: An example ScriptWrapper using groups of variables
#
# declare the variables
setGroup "inputs"
variable: x double input
setGroup "outputs"
variable: y double output
# ------------------------------------------
script: language="java"
void run()
{
// get the variables
PHXDouble x;
PHXDouble y;
x = wrapper.getVariable( "inputs.x" );
y = wrapper.getVariable( "outputs.y" );
// set the output value equal to the input
y.value = x.value;
}