User`s guide

334 VEE User’s Guide
9 Using Agilent VEE Functions Chapter
Creating a UserFunction
1 Select Device Formula, delete its default input pin, and
change its default expression to ramp(1024,1,1024).
This will create a 1024 element array with values from 1
to 1024.
2 Select Device UserFunction. Rename it ArrayStats.
a Add one data input terminal for the array
b Add four data output terminals for the results.
c Rename the output terminals: Max, Min, Mean, and
Sdev. Select max, min, mean, and sdev from the
Probability & Statistics category in the Function &
Object Browser box.
d Place them in ArrayStats, and connect their data inputs
to A and their data outputs to the appropriate output
terminals. Make the ArrayStats window smaller to see
both of the Main and ArrayStats windows. See
Figure
181.