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:

option explicit

sub run

   ' get the variables
   dim x, y
   set x = wrapper.getVariable( "inputs.x" )
   set y = wrapper.getVariable( "outputs.y" )

   ' set the output value equal to the input
   y.value = x.value

end sub