96 Chapter 2
Agilent VEE Programming Techniques
General Techniques
3. Add a Sliding Collector object, by selecting Data ⇒ Sliding
Collector.
4. Add a median(x) object. Select Device ⇒ Function & Object
Browser
. Then, select Type: Built-in Functions; Category:
Probability & Statistics
; Functions: median and click
Create Formula.
Shortcut: You can display the
Function & Object Browser by
clicking the fx button on the toolbar.
5. Add an
AlphaNumeric object, by selecting Display ⇒
AlphaNumeric. Connect the objects as shown in Figure 2-16. Run the
program. If you have not changed any of the inputs on the objects, you
should see the result displayed in Figure 2-16.
Figure 2-16. Connecting Data Objects
Using the Formula
Object
VEE provides mathematical operators and functions which are documented
in the
Reference part of online help. Select Help ⇒ Contents and
Index
. Then, select Reference and browse the items as desired.
The predefined operator and function objects are available via
Device
⇒
Function & Object Browser (or fx on the toolbar). You select them
from the
Function & Object Browser by clicking entities in three lists:
Type:, Category:, and Functions:. Click Create Formula to create
the object.
Besides using predefined operators and functions, you can create any valid
VEE mathematical expression within the
Formula object, which is found
under the
Device menu. In this section, you will create a program using a
Formula object. To begin, clear the Main window and follow these steps.