pinHEAD
Make it YOUR way
pinHEAD Module
Script
One of the most powerful modules. You can type in a VBScript in the box to manipulate
the inputs and outputs, or perform any function allowed by the VBScript system
(e.g. open a web browser, send mail, access files, create and use COM objects)
You can create functions, subs, classes, objects, and variables. Variable values
are remembered between runs.
The Script is run every time an input pin changes
The values of the outp1, outp2, outp3 variables are sent on the pins.
You can manually trigger the script with the Run button. Any syntax or spelling
errors are shown in the output box.
Examples:
To multiply Inp3 by Inp2 and divide by Inp1
Outp1 = (Inp3*Inp2) / Inp1
To output an incrementing number on Outp2 every time the input signal changes:
x = x +1
Outp2 = x
To set a variable value depending on Inp3's value
if Inp3 = 1 then
x = 0
else
x = 10
end if
VBScript
User Guide
VBScript
Language Guide