User`s guide
Agilent VEE Programming Techniques Chapter 2
VEE User’s Guide 93
4 Add an A+B object. Select Device ⇒ Function & Object Browser
to get the Function & Object Browser. Then, select Type:
Operators; Category: Arithmetic; Operators: +. Click Create
Formula to create the object.
5 Add an AlphaNumeric object by selecting Display ⇒
AlphaNumeric. Connect the objects as shown in Figure 54.
Type in the value 1.53 in the data entry field of the
Real64 Constant object and the complex value (2,1) in
the Complex object. Run the program and you should get
the result shown in
Figure 54.
Figure 54 Using Data Types
VEE automatically converts the data as needed and then
performs the addition in the A+B object. The real value 1.53
is converted to the complex value (1.53,0), which is then
added to the complex value (2,1). The result, (3.53,1) (a
complex number), is displayed in the AlphaNumeric object.
Using Data Shapes
VEE supports a variety of data shapes, such as scalars and
arrays. Unlike most programming languages, VEE objects can
operate on an entire array, rather than on only one element.
NOTE
Normally, VEE automatically handles all data type conversions. For more
information, select Help ⇒ Contents and Index from the VEE menu bar.
Then, browse How Do I..., Tell Me About..., or Reference.