Agilent TechnologiesAgilent VEE ProVEE Pro User’s Guide
6 VEE User’s GuideUsing an Agilent VEE Function in the Formula Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184On
72 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterChapter ChecklistYou should now be able to do any of the following tasks. Re
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 732Agilent VEE Programming Techniques Overview 75General Techniques 76Using Online
74 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterAgilent VEE Programming TechniquesIn this chapter you will learn about:• Creating a Use
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 75OverviewIn this chapter, you will learn selected VEE programming techniques to help you
76 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterGeneral TechniquesInside the Main VEE program, you can create logical groups of objects
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 77 Figure 40 UserObject WindowOnce you have created a UserObject, it is part of the main
78 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterNow, you will create a UserObject for a program. 1 Open the program (simple-program.vee
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 79Figure 41 usrobj-program.vee at an Early Stage6 Select the Noise Generator and A+B obje
80 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 42 Creating a UserObjectNOTERearranging the positions of the objects before exec
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 81Creating a UserObject in its edit window and then using the icon view of the UserObject
VEE User’s Guide 7Building a Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
82 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 43 UserObject Renamed AddNoise8 Click the Run button to display the noisy cosine
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 83You will continue with this example in the following section. However, if you want to q
84 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter3 Open the Object Menu for the Function Generator, and choose Add Terminal ⇒ Data Input
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 85Figure 47 Runtime Pop-Up Input BoxYou will get an error message box if you enter freque
86 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterIf it is not already open, open the program usrobj-program4.vee.1 Select I/O ⇒ To ⇒ Fi
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 87Figure 49 Choosing an I/O Transaction4 Connect the data output pin of the AddNoise User
88 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 50 Adding a To File Object5 Click the Run button on the tool bar again to test t
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 89AddNoise and the Waveform (Time) object, and connect the objects as shown in Figure 51.
90 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterLab 2-4: Creating a Panel View (Operator Interface) After you develop a program, you ma
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 91You can size and move the objects in the panel view to appropriate locations to create
8 VEE User’s GuideChapter Checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter• To change colors on the panel, select Properties from the Main window object menu in
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 934 Add an A+B object. Select Device ⇒ Function & Object Browser to get the Function
94 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterThe following program creates a one- dimensional, ten- element array, calculates the me
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 95The predefined operator and function objects are available via Device ⇒ Function &
96 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 56 Creating a Formula Object ProgramWhen you run the program, the Formula object
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 97Using Online HelpNow that you have created a few simple programs, here are some ways to
98 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterYou can browse, use the keyword index, use hyperlinks to related topics, or even do a s
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 99• Select Help ⇒ Contents and Index ⇒ How Do I... ⇒ Use the Keyboard Shortcuts ⇒ Editin
100 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterDebugging Programs in Agilent VEEThis exercise uses the program you created in “Lab 2-
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 101(To turn it off, click it again.) When you run the program, you will see small squares
VEE User’s Guide 9Shared or Static Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
102 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterShowing Execution Flow1 Click the Show Execution Flow button on the tool bar as shown
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 103For example, Figure 60 shows part of a VEE program with the output displayed from the
104 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 61 Displaying Information about a LineExamining TerminalsTo examine a terminal,
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 105(either a Scalar or Array 1D) displays consecutive input as a history of previous valu
106 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 63 Resume Program (same as the Run Button)4 Now clear breakpoints from the prog
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 107Figure 65 Pause or Stop a ProgramResolving ErrorsIf you get an error message when you
108 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 66 Example Runtime Error Message using Go To Using the Call Stack If an error i
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 109Figure 67 Using the Call Stack in Wheel.exeThe Call Stack shows the hierarchy of the e
110 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 68 The Order of Events in an ObjectIn Figure 68, the pins operate as follows:1
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 111There are exceptions to this sequence of events:• You can add error output pins to tra
10 VEE User’s GuideLab 9-3: Importing and Deleting Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
112 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 69 Control Line Used to Execute Custom TitleFollowing the Execution Order of Ob
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 113Stepping Through a ProgramStepping through a program is a very effective debugging too
114 VEE User’s Guide2 Agilent VEE Programming Techniques Chapterso they execute first in no defined order. If you wanted them to execute in a particul
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 115Practice ProgramsThe practice programs in this section illustrate more VEE features.2-
116 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter6 Click the Run button on the tool bar, and you will see a random number displayed as
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 117number of type Real64. (For more information about VEE data types, see Chapter , “Anal
118 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter7 Connect the Set num sequence output pin to the Get num sequence input pin.8 Select
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 119Documenting Agilent VEE ProgramsBy using the File ⇒ Save Documentation... command, you
120 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter3 Note that the Description box is a rich text format (RTF) box. You can retrieve file
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 121Figure 75 The Beginning of the Documentation FileSource file: "C:\\My Documents\\
VEE User’s Guide 11Key Points Concerning Operator Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
122 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterFigure 76 The Middle of the Documentation FileM: Main Device Type : Main
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 123In Figure 76, the VEE objects are described along with their settings. The number bef
124 VEE User’s Guide2 Agilent VEE Programming Techniques ChapterNOTEAfter you run the Save Documentation command, run a File ⇒ Print Program command t
Agilent VEE Programming Techniques Chapter 2VEE User’s Guide 125Chapter ChecklistYou should now be able to perform the following tasks. Review topics,
126 VEE User’s Guide2 Agilent VEE Programming Techniques Chapter
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1273Easy Ways to Control Instruments Overview 129Configuring an Instrument 133Using a
128 VEE User’s Manual3 Easy Ways to Control Instruments ChapterEasy Ways To Control Instruments In this chapter you will learn about:• Configuring an
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 129OverviewIn this chapter, you will learn how to use VEE to control instruments. With VEE,
130 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 78 The HP54600A Scope Panel DriverDirect I/O ObjectVEE’s Direct I/O object allow
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 131PC Plug-in Boards with I/O LibraryI/O libraries, usually shipped as Dynamically Linked L
12 VEE User’s GuideOther Ways to Optimize Agilent VEE Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
132 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 81 Calls to a VXIplug&play Driver from VEE
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 133Configuring an InstrumentWith VEE you can develop programs without the instruments prese
134 VEE User’s Manual3 Easy Ways to Control Instruments ChapterBy default, there are no instruments configured, and this example assumes that no instr
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1353 Change the name to scope, leave all the other defaults as they are, and click Advanced
136 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 84 The Advanced Instrument Properties DialogThe entries in the General folder ar
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 137Figure 85 The Panel Driver Folder5 Click the field to the right of ID Filename to obtain
138 VEE User’s Manual3 Easy Ways to Control Instruments Chapter7 Click OK to return to the Instrument Properties box. Click OK.The list of available i
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 139Figure 86 Scope Added to List of Instruments8 Click Save to close the Instrument Manager
140 VEE User’s Manual3 Easy Ways to Control Instruments Chapter3 Place the outline of the scope panel and click to place it. The display should look s
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1413 Click Advanced: and toggle Live Mode to ON, then click OK. Click OK to close the Inst
VEE User’s Guide 13Restricting Access to Programs Viewed over the Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491Chapt
142 VEE User’s Manual3 Easy Ways to Control Instruments ChapterUsing a Panel DriverThese exercises use the HP 3325B Function Generator as the example.
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1434 Under Create I/O Object, click Panel Driver. Place the object on the left side of the
144 VEE User’s Manual3 Easy Ways to Control Instruments ChapterMoving to Other Panels on the Same DriverMost drivers have more than one panel to simpl
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 145Adding Inputs and/or Outputs to a Panel DriverIn addition to interacting with the panel
146 VEE User’s Manual3 Easy Ways to Control Instruments ChapterDeleting Data Input or Output TerminalsPlace the mouse pointer over the terminal and pr
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 147Using Direct I/O If there is not a driver available for a particular instrument, or you
148 VEE User’s Manual3 Easy Ways to Control Instruments Chapter4 To place the object on the screen, make sure that fgen(@(NOT LIVE)) is still highligh
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 149This exercise uses the HP 3325B function generator configured in the previous section. I
150 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 94 A Direct I/O TransactionIn most cases, the process will be the same for sendi
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1513 Select Flow ⇒ Repeat ⇒ For Range and place it to the left of the Direct I/O object.4 C
14 VEE User’s Guide
152 VEE User’s Manual3 Easy Ways to Control Instruments ChapterIn this example, an HP3478A Multimeter is connected to the HP3325B Function Generator d
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1538 Leave the REAL64 FORMAT default. The multimeter returns single readings as real number
154 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 96 Configuring a READ Transaction11 Add a Display ⇒ AlphaNumeric to the right an
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 155To create a complete test program, this multimeter object and a function generator objec
156 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 98 Learn String Configuration for HP54100AConformance can support IEEE 488 or IE
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 157Using PC Plug-in BoardsVEE provides three ways to control PC plug- in boards or cards: 1
158 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 99 shows the VEE runtime software (provided free with Amplicon analog output boa
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 159Figure 100 VEE Using a ComputerBoards 100 KHz BoardFigure 100 shows the panel view of th
160 VEE User’s Manual3 Easy Ways to Control Instruments ChapterMeilhaus Electronic ME-DriverSystemMeilhaus Electronic is one of the leading European d
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 161Figure 103 User Panel for Data Acquisition Board ME-3000 Finally, in the third menu, the
VEE User’s Guide 1Table of FiguresFigure 1. The VEE Development Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
162 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 104 Function Panel for ME-DriverSystem
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 163Using a VXIplug&play DriverVXIplug&play drivers are issued and supported by the
164 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 105 Selecting a VXIplug&play DriverSelect the hpe1412 driver, click OK to re
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 165Figure 106 Selecting a Function for a VXIplug&play Driver6 Click Configure Present
166 VEE User’s Manual3 Easy Ways to Control Instruments ChapterFigure 107 The hpe1412 Edit Function Panel7 Click OK. The To/From Instrument object no
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 1678 In the To/From Instrument object, double- click to add a function and select Take Meas
168 VEE User’s Manual3 Easy Ways to Control Instruments ChapterOther I/O Features1 Explore the full power of VEE's I/O capabilities in the I/O ⇒
Easy Ways to Control Instruments Chapter 3VEE User’s Guide 169Chapter Checklist You should now be able to perform the following tasks. Review the appr
170 VEE User’s Manual3 Easy Ways to Control Instruments Chapter
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 1714Analyzing and Displaying Test Data Overview 173Agilent VEE Data Shapes and Data Ty
2 VEE User’s GuideNotices© Agilent Technologies, Inc. 2003No part of this manual may be reproduced in any form or by any means (including elec-tronic
2 VEE User’s GuideFigure 31. The Save File Dialog Box (PC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
172 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterAnalyzing and Displaying Test Data In this chapter you will learn about:• VEE data typ
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 173OverviewIn this chapter, you will learn about VEE analytical and display capabilities.
174 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterAgilent VEE Data Shapes and Data Types In a VEE program, data is transmitted across th
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 175Int32 A 32-bit two's complement integer (-2147483648 to 2147483647).Real32 A 32-b
176 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterObject Used only for ActiveX Automation and Controls, a reference to an ActiveX contro
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 177Agilent VEE Analysis CapabilitiesVEE supports common math operations and hundreds of o
178 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterUsing Built-In Math ObjectsIn the VEE Device ⇒ Function & Object Browser, you can
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 179Notice that the Function & Object Browser displays a brief description of the curr
180 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterLab 4-1: Calculating Standard DeviationGenerate a cosine waveform at a frequency of 1
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 181Figure 114 Calculating Standard Deviation
VEE User’s Guide 3Figure 64. Clear Breakpoint(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
182 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterCreating Expressions with the Formula ObjectThe Formula object can be used to write ma
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 183Evaluating an Expression with the Formula ObjectIn this example, you will evaluate the
184 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterFigure 116 Evaluating an ExpressionUsing an Agilent VEE Function in the Formula Object
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 185Figure 117 Formula Examples Using VEE FunctionsNow calculate the standard deviation an
186 VEE User’s Guide4 Analyzing and Displaying Test Data Chapter8 In the Formula object, add an output terminal. Rename the output terminals B and C.
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 187Figure 119 On Your Own Solution: Ramp and SDEVFor the second and third exercises, you
188 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterUsing MATLAB Script in Agilent VEEVEE includes the MATLAB Script object, which gives y
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 189• Returning results from the MATLAB Script object and using the results in other parts
190 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterFigure 121 Graph Generated by the ProgramWhen you include MATLAB Script objects in a V
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 191• VEE does not perform any syntax checking of MATLAB commands before the MATLAB Script
4 VEE User’s GuideFigure 97. Direct I/O Configured to Read a Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154Figure
192 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterFigure 122 Adding Predefined MATLAB Objects to a VEE ProgramNotice that each object is
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 193You can also use input terminal data type constraints to ensure that the data input fr
194 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterFigure 123 Changing Input Terminal Data Type
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 195Displaying Test DataTable 15 describes the display capabilities for the different VEE
196 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterSpectrum (Freq) A menu that contains frequency domain displays: Magnitude Spectrum, Ph
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 197Customizing Test Data Displays Displays may be customized in a variety of ways. Not on
198 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterFigure 124 Displaying a WaveformChanging the X and Y Scales1 Double- click the Wavefor
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 199You will see two white arrows pointing up and down at one of the data points on the wa
200 VEE User’s Guide4 Analyzing and Displaying Test Data ChapterChanging the Color of the Trace1 Double- click the title bar to get to Properties, the
Analyzing and Displaying Test Data Chapter 4VEE User’s Guide 201Chapter ChecklistYou should now be able to do the following tasks. Review topics as ne
VEE User’s Guide 5Figure 130. The TIME STAMP I/O Transaction Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217Figu
202 VEE User’s Guide4 Analyzing and Displaying Test Data Chapter
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 2035Storing and Retrieving Test Results Overview 205Using Arrays to Store Test Result
204 VEE User’s Guide5 Storing and Retrieving Test Results ChapterStoring and Retrieving Test ResultsIn this chapter you will learn about:• Putting tes
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 205Overview In this chapter, you will learn the fundamentals of storing and retrieving t
206 VEE User’s Guide5 Storing and Retrieving Test Results ChapterUsing Arrays to Store Test Results Data types can be stored in two ways: • Scalar val
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 207Lab 5-1: Creating an Array for Test Results The easiest way to create an array is to
208 VEE User’s Guide5 Storing and Retrieving Test Results ChapterThe XEQ pin, a special trigger pin that exists on several different objects, determin
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 209Shift-Ctrl, and then clicking the left mouse button. Then iconize the Collector.2 Sel
210 VEE User’s Guide5 Storing and Retrieving Test Results ChapterUsing the To/From File Objects The To File and From File objects read data to and fro
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 211Figure 128 The To File ObjectThe To File object shown in Figure 128 sends data to the
6 VEE User’s GuideFigure 163. The MS Word Document Created by Lab 6-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276Figure 1
212 VEE User’s Guide5 Storing and Retrieving Test Results ChapterI/O Transaction FormatAn I/O transaction to write data is usually in the following fo
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 213In a write transaction, an “expression list” is simply a comma- separated list of exp
214 VEE User’s Guide5 Storing and Retrieving Test Results ChapterLab 5-3: Using the To/From File ObjectsThis lab exercise describes the process of get
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 2153 Click OK to return to the To File object. The transaction bar should now contain th
216 VEE User’s Guide5 Storing and Retrieving Test Results ChapterTherefore, now() returns a value about 63G. VEE provides this format because it is ea
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 217Figure 130 The TIME STAMP I/O Transaction Box4 Click OK to return to the To File box.
218 VEE User’s Guide5 Storing and Retrieving Test Results Chapter6 Click OK to close the I/O Transaction box. The transaction bar in the To File objec
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 219In this example, the name of a test is stored in a String Format, followed by a time
220 VEE User’s Guide5 Storing and Retrieving Test Results ChapterNow add two more transactions to read back the time stamp and the real array.5 In the
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 221The transaction bar in the From File object should now contain the statements READ TE
VEE User’s Guide 7Figure 196. The ReportDisplay Panel View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
222 VEE User’s Guide5 Storing and Retrieving Test Results ChapterUsing Records to Store Mixed Data TypesThe Record data type can store different data
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 223Lab 5-4: Using RecordsThis exercise describes how to use the Record datatype. You wil
224 VEE User’s Guide5 Storing and Retrieving Test Results Chapterdouble-clicking over the terminal and rename the three input terminals to testname, t
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 225You can see the three fields and their values. If you click on the Real64: Array 1D b
226 VEE User’s Guide5 Storing and Retrieving Test Results Chapter8 Open the second AlphaNumeric display object menu and select Properties, then select
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 227Figure 136 Using the Get Field ObjectNotice that the second display lists the weekday
228 VEE User’s Guide5 Storing and Retrieving Test Results Chapter1 Open the getfield.vee program. 2 Delete all objects after Build Record, by selectin
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 2294 Select Data ⇒ Access Record ⇒ Get Field and place the object under the Set Field (r
230 VEE User’s Guide5 Storing and Retrieving Test Results ChapterUnbuilding a Record in a Single StepTo extract all record fields and get a list of th
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 231Figure 138 Using the UnBuild Record ObjectNotice that the Name List pin gives the nam
8 VEE User’s GuideFigure 229. The List Selection Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
232 VEE User’s Guide5 Storing and Retrieving Test Results ChapterUsing DataSets to Store and Retrieve Records DataSets can retrieve one or more record
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 2334 Select the Function & Object Browser icon from the tool bar.a Choose Built- in
234 VEE User’s Guide5 Storing and Retrieving Test Results ChapterFigure 139 Storing an Array of Records in a DataSetNow retrieve the array of records
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 235Control Input. Click Default Value from the list box presented, then click OK. Resize
236 VEE User’s Guide5 Storing and Retrieving Test Results ChapterFigure 140 Storing and Retrieving Data Using DataSetsNOTEA From Data Set object must
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 237Customizing a Simple Test DatabaseYou can search and sort a DataSet for information,
238 VEE User’s Guide5 Storing and Retrieving Test Results ChapterFigure 141 A Search Operation with DataSetsCreating an Operator Interface for a Searc
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 239Follow these steps to create the program.1 Open the dataset2.vee program. Add a contr
240 VEE User’s Guide5 Storing and Retrieving Test Results Chapterthe For Count sequence input pin. The program should look like Figure 142.Figure 142
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 241For example, if test6 is selected, then the final formula will read Rec.A=="test
VEE User’s Guide 9Figure 262. Changing the Execution Mode in Default Preferences . . . . . . . . . . . . . . . . . . . . . . . 463Figure 263. Ch
242 VEE User’s Guide5 Storing and Retrieving Test Results ChapterTest Menu object has AutoExecute turned on, make a menu selection to run the program.
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 243Figure 144 The Operator Interface for the Database15 Run the program a few times by m
244 VEE User’s Guide5 Storing and Retrieving Test Results ChapterPerforming a Sort Operation on a Record FieldThis exercise uses the dataset2.vee prog
Storing and Retrieving Test Results Chapter 5VEE User’s Guide 245Figure 145 A Sort Operation on a Record Field
246 VEE User’s Guide5 Storing and Retrieving Test Results ChapterChapter ChecklistYou should now be able to perform the following tasks. Review topics
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 2476Creating Reports Easily Using ActiveX Overview 249ActiveX Automation in Agilent
248 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterCreating Reports Easily Using ActiveXIn this chapter you will learn about:• ActiveX
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 249OverviewIn this chapter, you will learn how to generate reports in other applicatio
250 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterActiveX Automation in Agilent VEEIn this chapter, the term ActiveX Automation refer
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 251When you put a check next to a Type Library in the ActiveX Automation References bo
10 VEE User’s GuideFigure 295. User Functions, Step 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
252 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterFor example, if you select Data ⇒ Variable ⇒ Declare Variable, set the Name to App,
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 253Figure 148 Commands to Set Up Excel Worksheet to Display Test ReultsVEE uses standa
254 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterUsing CreateObject and GetObjectNotice that one of the statements in Set Up Excel W
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 255Sending Agilent VEE Data to MS ExcelThis section introduces the VEE objects and MS
256 VEE User’s Guide6 Creating Reports Easily Using ActiveX Chapter5 After you have compared the entries to Figure 150, iconize the four objects.Figur
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 257Events are useful for ActiveX Controls, where you need a way for the control to com
258 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterTable 2 5 Setting up an Excel Worksheet in the Formula ObjectCommand Descriptionset
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 2599 Create a Formula object (under Device ⇒ Formula). Clone the Formula object to cre
260 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterFigure 152 Adding the Title and Data to the SheetThe instructions in the Formula ob
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 26110 Create a Formula object and an AlphaNumeric object, rename, configure, and conne
VEE Pro User’s Guide 1IntroductionOverview of Agilent VEE 3Installing and Learning About Agilent VEE 11MATLAB Script Overview 14Obtaining Agi
262 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterFigure 153 The Results Average ProgramThe entries in the Formula object are as foll
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 26311 Save the program as results_average.vee. Run the program. MS Excel will launch w
264 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterCreating an Agilent VEE to MS Excel TemplateIn this exercise, you will create a pro
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 265Figure 155 Excel Worksheet for Array of Test Data
266 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterFigure 156 Program for Array of Test DataYou can re- use this program as a template
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 267On Your OwnGenerate a waveform and strip out the Time Span to get an array. Create
268 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterFigure 158 A VEE to MS Excel Program ExampleThe entries in Figure 158 are as follow
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 269Memory Tracking (Click Show Terminals in the Properties boxes on the Formula and Me
270 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterUsing MS Word for Agilent VEE ReportsThis lab describes how to display VEE test inf
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 271Figure 159 Object Variables3 Create a UserFunction called Graph, which uses a Funct
VEE Pro User’s GuideVEE User’s Guide 3VEE Pro User’s GuideConventions Used in This Manual 4
2 VEE Pro User’s GuideIntroductionIntroduction This chapter introduces Agilent VEE and its major features. You also learn how to install and learn abo
272 VEE User’s Guide6 Creating Reports Easily Using ActiveX Chaptersequence \\ to specify the ASCII character \.) Delete input terminal A.If you ins
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 2738 Click Device ⇒ Formula and enter the statements shown in Figure 161, which are a
274 VEE User’s Guide6 Creating Reports Easily Using ActiveX ChapterSet Doc = App.Documents. Add();Adds a Document in MS Word and assigns it to the Obj
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 2759 Add three more Formula objects and one If/Then/Else object, configure, and connec
276 VEE User’s Guide6 Creating Reports Easily Using ActiveX Chapter10 Run the program. It should look like Figure 163. (If the colors look strange i
Creating Reports Easily Using ActiveX Chapter 6VEE User’s Guide 277Chapter Checklist• You should now be able to perform the following tasks. Review to
278 VEE User’s Guide6 Creating Reports Easily Using ActiveX Chapter
Using .NET with VEE 7VEE User’s Guide 2797Using .NET with VEE What is .NET? 281.NET Terminology 316VEE and the .NET Framework 282Importing a
280 VEE User’s Guide7 Using .NET with VEE Using .NET with VEEIn this chapter you will learn about:• Some of the basic .NET Terminology• How to import
Using .NET with VEE 7VEE User’s Guide 281What is .NET?Visual Studio .NET is Microsoft’s latest development platform. Unlike previous products, such a
IntroductionVEE Pro User’s Guide 3Overview of Agilent VEEAgilent VEE is a graphical programming language optimized for building test and measurement a
282 VEE User’s Guide7 Using .NET with VEE VEE and the .NET FrameworkBefore beginning a review of how the .NET Framework interacts with VEE, review the
Using .NET with VEE 7VEE User’s Guide 283Figure 164 Import Namespaces Dialog Box.NET Assembly ReferencesThere are many assemblies you could select. T
284 VEE User’s Guide7 Using .NET with VEE The most commonly used assembly, mscorlib, is selected in the previous graphic. Go ahead and select this ass
Using .NET with VEE 7VEE User’s Guide 285other type libraries) in the directory where the program is saved. After VEE gets the Interop Assembly, it g
286 VEE User’s Guide7 Using .NET with VEE Figure 165 Function & Object Browser - .NET ObjectsAll of the namespaces of the selected assembly are li
Using .NET with VEE 7VEE User’s Guide 287Browser to get yourself familiarized with the syntax. See “Lab 7- 2: Using .NET to Perform DateTime Operatio
288 VEE User’s Guide7 Using .NET with VEE Importing a Namespace into VEETo reiterate the definition for a namespace: “.NET Framework types use a dot s
Using .NET with VEE 7VEE User’s Guide 289Figure 167 Assemblies, Namespaces, Types, and Members
290 VEE User’s Guide7 Using .NET with VEE Figure 168 .NET Assembly References - Importing Namespaces
Using .NET with VEE 7VEE User’s Guide 291Figure 169 Namespaces Selection ListIf you have not imported a namespace for a class, the formula templates
4 VEE Pro User’s GuideIntroductionVEE programs are created by selecting objects from menus and connecting them together. The result in VEE resembles a
292 VEE User’s Guide7 Using .NET with VEE VEE and Primary Interop AssembliesWhen you choose the COM tab in Device ⇒ .NET Assembly References, VEE go
Using .NET with VEE 7VEE User’s Guide 293Programming PracticesConverting Data Types Between .NET and VEEVEE converts data types between VEE and .NET
294 VEE User’s Guide7 Using .NET with VEE System.Char Object You can use a System.Convert.To* method to convert it to a .NET data type that VEE can co
Using .NET with VEE 7VEE User’s Guide 295Table 3 2 Converting VEE data types to .NET scalar data types in VEE 7.0System.String Text VEE automatically
296 VEE User’s Guide7 Using .NET with VEE Table 3 3 Converting .NET array data types to VEE data types in VEE 7.0Real32 System.Single Use asClrType()
Using .NET with VEE 7VEE User’s Guide 297System.Char Array Object The VEE object holds a pointer to a System.Array .NET object. You can use the form
298 VEE User’s Guide7 Using .NET with VEE System.SByte Array Object The VEE object holds a pointer to a System.Array .NET object. You can use a Syste
Using .NET with VEE 7VEE User’s Guide 299Table 3 4 Converting VEE array data types to .NET data types in VEE 7.0Convert From VEE Data Ty peConvert To
300 VEE User’s Guide7 Using .NET with VEE Table 3 5 .NET Data Type ModifersCalling an Instance MethodWhen calling an instance method, be sure to decla
Using .NET with VEE 7VEE User’s Guide 301Calling a Shared/Static MethodWhen you call a .NET member, if the member is Shared/Static, the word STATIC a
IntroductionVEE Pro User’s Guide 5Figure I-1. The “Random” Program in ANSI CFigure I- 2 shows the same program in VEE. /* Program to find maximum elem
302 VEE User’s Guide7 Using .NET with VEE • The formula template generated for Instance members always begins with a lower case letter. Static members
Using .NET with VEE 7VEE User’s Guide 3035 Highlight the OpenFileDialog Type and the Constructor Member. Select Create Instance.Figure 173 Function &
304 VEE User’s Guide7 Using .NET with VEE “System.Windows.Forms.OpenFileDialog”) Formula object to Open File Dialog. Within the object do the followin
Using .NET with VEE 7VEE User’s Guide 305Figure 174 openFileDialog ProgramLab 7-2: Using .NET to Perform DateTime OperationsUse both instance and sta
306 VEE User’s Guide7 Using .NET with VEE the week, current year, and to query whether it is a leap year. The complete example is found in examples\do
Using .NET with VEE 7VEE User’s Guide 307Figure 175 Step 10 of Lab 7-213 Repeat step 4 and 5, highlight the DateTime type and the property Year. Cho
308 VEE User’s Guide7 Using .NET with VEE Figure 176 Lab 7-2 Completed
Using .NET with VEE 7VEE User’s Guide 309Lab 7-3: Using .NET to Get File InformationThe .NET System.IO namespace provides a tremendous amount of func
310 VEE User’s Guide7 Using .NET with VEE 11 Repeat steps 8 and 9 to create and wire the formula box for the fileInfo.LastAccessTime property.12 Add a
Using .NET with VEE 7VEE User’s Guide 311.NET and IVI DriversWhat is IVI? IVI is a new instrument driver standard being developed by the IVI Foundati
6 VEE Pro User’s GuideIntroductionFigure I-2. The Same “Random” Program in VEEIn VEE, the program is built with program elements called objects. Objec
312 VEE User’s Guide7 Using .NET with VEE For further information about IVI- COM, connect to www.agilent.com/find/adn. Login in, go to the Knowledge L
Using .NET with VEE 7VEE User’s Guide 313AssembliesInstalling a New AssemblyAssemblies are the basic building blocks of the .NET Framework. They take
314 VEE User’s Guide7 Using .NET with VEE Distributing the VEE RuntimeIf your VEE program references shared assemblies (the ones installed in the GAC)
Using .NET with VEE 7VEE User’s Guide 315VEE and .NET SecurityVEE’s use of the .NET Framework introduces one security issue. If you see the following
316 VEE User’s Guide7 Using .NET with VEE .NET TerminologyYou will find these terms throughout the chapter, so use these Microsoft definitions as a re
Using .NET with VEE 7VEE User’s Guide 317ReferenceTo use an Assembly, you must add a reference to it.Class“If you are familiar with object- oriented
318 VEE User’s Guide7 Using .NET with VEE Chapter ChecklistYou should now be able to perform the following tasks. Review topics, if necessary, before
Integrating Programs for the PC Chapter 8VEE User’s Guide 3198Integrating Programs for the PCOverview 321Understanding the Execute Program Object
320 VEE User’s Guide8 Integrating Programs for the PC ChapterIntegrating Programs In Other LanguagesIn this chapter you will learn about:• The Execute
Integrating Programs for the PC Chapter 8VEE User’s Guide 321Overview In this chapter, you will learn the easiest way to integrate compiled programs a
IntroductionVEE Pro User’s Guide 7Using VEE, with its modular programming approach, you can reduce the time it takes to create programs that control i
322 VEE User’s Guide8 Integrating Programs for the PC ChapterUnderstanding the Execute Program ObjectIn addition to ActiveX Automation, there are thre
Integrating Programs for the PC Chapter 8VEE User’s Guide 323• Any document or URL with a recognized extension. The “open” action is invoked in the fi
324 VEE User’s Guide8 Integrating Programs for the PC ChapterUsing a System CommandTo call a compiled program in another language, you can type in the
Integrating Programs for the PC Chapter 8VEE User’s Guide 3253 Double- click the transaction bar to get the I/O Transaction box.a Change REAL64 FORMA
326 VEE User’s Guide8 Integrating Programs for the PC ChapterWriting Programs That Port EasilyIf you plan to integrate programs in other languages, wr
Integrating Programs for the PC Chapter 8VEE User’s Guide 327Table 3 7 System Information FunctionsFunction Name DescriptioninstallDir Specifies the V
328 VEE User’s Guide8 Integrating Programs for the PC ChapterChapter ChecklistYou should now be able to perform the following tasks. Review topics, if
Using Agilent VEE Functions Chapter 9VEE User’s Guide 3299Using Agilent VEE Functions Overview 331Using Functions 332Using Libraries With Agilen
330 VEE User’s Guide9 Using Agilent VEE Functions ChapterUsing Agilent VEE FunctionsIn this chapter you will learn about:• Defining a user function• C
Using Agilent VEE Functions Chapter 9VEE User’s Guide 331OverviewIn this chapter, you will learn about VEE UserFunctions, compiled functions, and remo
8 VEE Pro User’s GuideIntroductionFigure I-3. Panel View (or Operator Interface) of VEE ProgramWith VEE, you can perform certain tasks in minutes that
332 VEE User’s Guide9 Using Agilent VEE Functions ChapterUsing FunctionsLike many programming languages, VEE uses functions to create subprograms that
Using Agilent VEE Functions Chapter 9VEE User’s Guide 333• To call a compiled function, you use the Call myFunction object or write an expression with
334 VEE User’s Guide9 Using Agilent VEE Functions ChapterCreating a UserFunction1 Select Device ⇒ Formula, delete its default input pin, and change i
Using Agilent VEE Functions Chapter 9VEE User’s Guide 335Figure 181 The Main and ArrayStats Windows3 Iconize ArrayStats. It appears as an icon at the
336 VEE User’s Guide9 Using Agilent VEE Functions ChapterFigure 183 Calling the User Function ArrayStatsTo use ArrayStats elsewhere in the program, yo
Using Agilent VEE Functions Chapter 9VEE User’s Guide 3375 Select Data ⇒ Build Data ⇒ Record and place it to the right side of the ArrayStats window.
338 VEE User’s Guide9 Using Agilent VEE Functions ChapterNow display a record using the Record Constant object. Use the Default Value control input to
Using Agilent VEE Functions Chapter 9VEE User’s Guide 339Calling a UserFunction from an Expression In this exercise, you will learn how to call ArrayS
340 VEE User’s Guide9 Using Agilent VEE Functions ChapterNotice that the functionality of ArrayStats in the Formula object is exactly the same as it w
Using Agilent VEE Functions Chapter 9VEE User’s Guide 341In this exercise, you will learn how to generate the ArrayStats object in the Main program fr
IntroductionVEE Pro User’s Guide 9Leveraging Existing Test Programs with Agilent VEEOn all supported operating systems, VEE provides mechanisms for li
342 VEE User’s Guide9 Using Agilent VEE Functions Chapter4 Connect the output from the Formula object to ArrayStats(A), and connect the output from Ar
Using Agilent VEE Functions Chapter 9VEE User’s Guide 343Figure 189 Program Explorer Icon on the ToolbarFigure 190 shows the Program Explorer being us
344 VEE User’s Guide9 Using Agilent VEE Functions ChapterUsing Libraries With Agilent VEE UserFunctionsTo leverage existing VEE test programs, you can
Using Agilent VEE Functions Chapter 9VEE User’s Guide 345Creating a Library of UserFunctions1 Create the top level program (without programming the de
346 VEE User’s Guide9 Using Agilent VEE Functions ChapterThe four UserFunctions are a library. You can see them listed by clicking Edit ⇒ Edit UserFu
Using Agilent VEE Functions Chapter 9VEE User’s Guide 347Figure 193 shows the ReportHeader UserFunction. Figure 193 The ReportHeader UserFunctionFigur
348 VEE User’s Guide9 Using Agilent VEE Functions ChapterFigure 194 The ReportBody UserFunctionFigure 195 shows the ReportDisplay UserFunction in deta
Using Agilent VEE Functions Chapter 9VEE User’s Guide 349Figure 195 The ReportDisplay Detail ViewFigure 196 shows the panel view of the ReportDisplay
350 VEE User’s Guide9 Using Agilent VEE Functions ChapterFigure 196 The ReportDisplay Panel ViewCreating Another Program and Merging in the LibraryIn
Using Agilent VEE Functions Chapter 9VEE User’s Guide 3513 Select Display ⇒ Note Pad and type the UserFunction descriptions similar to the ones shown
10 VEE Pro User’s GuideIntroduction• Reduced development and maintenance time with graphical programming.• Integration with conventional languages lik
352 VEE User’s Guide9 Using Agilent VEE Functions Chapter3 Open the object menu and select Load Lib to import the library immediately instead of waiti
Using Agilent VEE Functions Chapter 9VEE User’s Guide 3534 Select Device ⇒ Call and place it below the Import Library object. Connect the output seque
354 VEE User’s Guide9 Using Agilent VEE Functions Chapter7 Select Device ⇒ Delete Library and place it below the Call object. Connect the sequence pi
Using Agilent VEE Functions Chapter 9VEE User’s Guide 355• If two imported libraries have the same function names, the results will be indeterminate.
356 VEE User’s Guide9 Using Agilent VEE Functions ChapterFinding Functions in Large ProgramsVEE provides a Find feature located in the Edit menu to he
Using Agilent VEE Functions Chapter 9VEE User’s Guide 357Figure 201 The Find Results Dialog BoxYou can use Find to locate any object or text such as v
358 VEE User’s Guide9 Using Agilent VEE Functions ChapterMerging Agilent VEE Programs The easiest way to leverage existing programs is to merge a past
Using Agilent VEE Functions Chapter 9VEE User’s Guide 359Figure 202 Merging the BarChart ProgramNotice that the Bar Chart Display takes a one- dimensi
360 VEE User’s Guide9 Using Agilent VEE Functions ChapterChapter ChecklistYou should now be able to perform the following tasks. Review topics, if nec
Test Sequencing Chapter 10VEE User’s Guide 36110Test Sequencing Overview 363Using the Sequencer Object 365Creating a Test Execution Order 366
IntroductionVEE Pro User’s Guide 11Installing and Learning About Agilent VEEThis section gives guidelines to install and learn about VEE, including in
362 VEE User’s Guide10 Test Sequencing ChapterTest SequencingIn this chapter you will learn about:• The Sequencer object• Configuring a test for the S
Test Sequencing Chapter 10VEE User’s Guide 363OverviewIn this chapter, you will learn the fundamentals of using the Sequencer object. The Sequencer ob
364 VEE User’s Guide10 Test Sequencing ChapterNOTEIn addition to the lab exercises in this chapter, you can get more practice in using the Sequencer b
Test Sequencing Chapter 10VEE User’s Guide 365Using the Sequencer ObjectThe Sequencer object executes tests in a specified order based on runtime resu
366 VEE User’s Guide10 Test Sequencing ChapterCreating a Test Execution OrderIn this lab you will simulate test results using the random() function, e
Test Sequencing Chapter 10VEE User’s Guide 367You may leave the other defaults. This configuration will lead to a PASS result in approximately half of
368 VEE User’s Guide10 Test Sequencing ChapterClick OK to close the dialog box. You will see the transaction test1 0 <= (.25) <= .5 on the firs
Test Sequencing Chapter 10VEE User’s Guide 369Table 4 0 Sequence Transaction Dialog BoxSequence Transaction FieldDescriptionTEST: Unique name used to
370 VEE User’s Guide10 Test Sequencing ChapterFUNCTION: Specifies the test to run. You can call UserFunctions, Compiled Functions, Remote Functions, o
Test Sequencing Chapter 10VEE User’s Guide 371THEN CONTINUE Determines test branching.The drop-down menu THEN CONTINUE (for IF PASS and IF FAIL) cont
4 VEE User’s GuideVEE Pro User’s GuideConventions Used in This ManualThis manual uses the following typographical conventions:Table 1Getting Started I
12 VEE Pro User’s GuideIntroductionFor information about the I/O Libraries, refer to the installation materials you received with it. (The I/O Librari
372 VEE User’s Guide10 Test Sequencing ChapterAdding or Inserting or Deleting a TestIn this section, you add another test transaction to the Sequencer
Test Sequencing Chapter 10VEE User’s Guide 373Click OK. You will now see Insert 0 <= (.5) <= 1 on the second transaction bar. Run the program to
374 VEE User’s Guide10 Test Sequencing ChapterFigure 205 A Simple Sequencer ExampleThe braces indicate a Record data type. The Sequencer outputs a Rec
Test Sequencing Chapter 10VEE User’s Guide 375.Figure 206 A Logged Record or RecordsThe following steps access test results.1 Open seq1.vee.2 Select
376 VEE User’s Guide10 Test Sequencing ChapterFigure 207 Accessing Logged Data5 Change the formula to read Log.test1 and run the program again. It sho
Test Sequencing Chapter 10VEE User’s Guide 377Passing Data in the SequencerIn this lab, you will create a UserFunction and call it from three differen
378 VEE User’s Guide10 Test Sequencing ChapterFigure 208 The Rand UserFunction5 Save the program as seqdat1.vee. Close the Rand window using the x but
Test Sequencing Chapter 10VEE User’s Guide 379Make sure the transaction is highlighted, place the cursor on the transaction bar, press Ctrl-K to cut t
380 VEE User’s Guide10 Test Sequencing ChapterFigure 209 Passing Data Using an Input TerminalAs the number of tests increases, passing data using an i
Test Sequencing Chapter 10VEE User’s Guide 381To display the function on the screen for an operator to select a number, add a pop- up panel view. Incl
IntroductionVEE Pro User’s Guide 13Ordering Free Evaluation SoftwareFree evaluation software is available on a CD or by downloading from the VEE websi
382 VEE User’s Guide10 Test Sequencing ChapterOpen the UserFunction Properties window. In the General folder under Pop- up Panel, set the ShowPanelonE
Test Sequencing Chapter 10VEE User’s Guide 383Figure 211 The Global UserFunction (Panel) 10 Save the program as seqdat2 and run it. When the pop- up p
384 VEE User’s Guide10 Test Sequencing ChapterFigure 212 Passing data Using a Global VariableComparing a Waveform Output with a MaskIn this exercise,
Test Sequencing Chapter 10VEE User’s Guide 385waveform. You will use the Coord object in the Data ⇒ Constant menu to create a straight line mask at 0.
386 VEE User’s Guide10 Test Sequencing ChapterFigure 214 The noisyWv UserObject (Panel)3 Select Device ⇒ Sequencer and place it left- center of Main.
Test Sequencing Chapter 10VEE User’s Guide 3875 Select Data ⇒ Constant ⇒ Coord and place it above the Sequencer. Connect its output to the Sequencer
388 VEE User’s Guide10 Test Sequencing Chapter8 Save the program as seqdat3 and run it. It should look like Figure 215. Figure 215 Comparing a Wavefor
Test Sequencing Chapter 10VEE User’s Guide 389Analyzing Data from the SequencerAs mentioned earlier, Sequencer data comes out as a record of records.
390 VEE User’s Guide10 Test Sequencing Chapter• Within the record Test1 there are three fields: Name, Result, and Pass. The same holds for the recor
Test Sequencing Chapter 10VEE User’s Guide 391Now use the Formula object to extract part of the data to analyze. This exercise uses the results of tes
14 VEE Pro User’s GuideIntroductionMATLAB Script OverviewMATLAB® Script is a subset of the standard, full- featured MATLAB from The MathWorks. It give
392 VEE User’s Guide10 Test Sequencing ChapterAlthough this exercise accesses a single array, the principle is the same for extracting other arrays of
Test Sequencing Chapter 10VEE User’s Guide 393Storing and Retrieving Logged DataThis exercise shows how to use the To/From File objects and To/From Da
394 VEE User’s Guide10 Test Sequencing ChapterFigure 218 Storing Logged Data with To/From FileUsing the To/From DataSet Objects with Logged DataSince
Test Sequencing Chapter 10VEE User’s Guide 395One reason you might use the To/From DataSet objects to collect data instead of the To/From File objects
396 VEE User’s Guide10 Test Sequencing ChapterChapter Checklist Use the following checklist to determine whether there are topics you need to review b
Using Operator Interfaces Chapter 11VEE User’s Guide 39711Using Operator Interfaces Overview 399Key Points Concerning Operator Interfaces 400Usi
398 VEE User’s Guide11 Using Operator Interfaces ChapterUsing Operator InterfacesIn this chapter you will learn about:• Building operator interfaces•
Using Operator Interfaces Chapter 11VEE User’s Guide 399OverviewIn this chapter, you will learn more about operator interfaces, including adding menus
400 VEE User’s Guide11 Using Operator Interfaces ChapterKey Points Concerning Operator InterfacesThis section is an overview of how to create an opera
Using Operator Interfaces Chapter 11VEE User’s Guide 401Moving Between Panel View and Detail ViewTo move between the Panel view and the Detail view of
IntroductionVEE Pro User’s Guide 15About Full-Featured MATLABMATLAB is an integrated technical computing environment that combines numeric computation
402 VEE User’s Guide11 Using Operator Interfaces ChapterIn panel view, you can choose different colors and fonts to add emphasis, and scalable bitmaps
Using Operator Interfaces Chapter 11VEE User’s Guide 403Using Operator Interface ObjectsThis section introduces the operator interface objects and opt
404 VEE User’s Guide11 Using Operator Interfaces ChapterGraphic ImagesYou can import bitmaps into the panel view by setting the PanelBackgroundPicture
Using Operator Interfaces Chapter 11VEE User’s Guide 405Figure 223 A Cropped Image in VEEDisplaying a Control for Operator InputThere are various ways
406 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 224 Controls from Various Data SubmenusFor each of the objects shown in Figure 224, you
Using Operator Interfaces Chapter 11VEE User’s Guide 407
408 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 225 The Properties Dialog BoxDisplaying a Dialog Box for Operator InputVEE includes bui
Using Operator Interfaces Chapter 11VEE User’s Guide 409Figure 227 An Example of Automatic Error CheckingThe input boxes for Int32 and Text, which are
410 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 230 shows a dialog box that pops up for an operator to select a file name.Figure 230 A
Using Operator Interfaces Chapter 11VEE User’s Guide 411Figure 231 Switches and Alarms CombinedAligning Objects in the Operator InterfaceIn the panel
16 VEE Pro User’s GuideIntroductionObtaining Agilent VEE SupportYou can obtain VEE support via the Web or by telephone (for startup assistance).Obtain
412 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 232 Configuring Panel PropertiesOther Panel Formatting FeaturesThere are additional fea
Using Operator Interfaces Chapter 11VEE User’s Guide 413For example, you can configure the OK object to act as a softkey. Typically you configure it s
414 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 234 Configuring the Confirm (OK) Object as a SoftkeyFurthermore, the program can be con
Using Operator Interfaces Chapter 11VEE User’s Guide 415Selecting Screen Colors To select screen colors, use the File ⇒ Default Preferences dialog box
416 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 236 Color Selection for Screen ElementsSecuring a Program (Creating a RunTime Version)
Using Operator Interfaces Chapter 11VEE User’s Guide 417To create a RunTime version of a VEE program, follow these steps:1 Create a panel view for the
418 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 237 Creating a Status Panel
Using Operator Interfaces Chapter 11VEE User’s Guide 419Common Tasks In Creating Operator InterfacesIn the following exercises, you will learn how to
420 VEE User’s Guide11 Using Operator Interfaces ChapterYou should now have a picture of a die with one dot on its top.4 Select Flow ⇒ Confirm (OK) an
Using Operator Interfaces Chapter 11VEE User’s Guide 421Figure 238 Early Stage in the Dice ProgramCreate a menu to select one of these three functions
IntroductionVEE Pro User’s Guide 17Sources of Additional Information for MATLABFor complete, detailed information on using the MATLAB Script object, r
422 VEE User’s Guide11 Using Operator Interfaces Chapterordinal position appears on the lower output pin. Read the Help entry in the object menu for a
Using Operator Interfaces Chapter 11VEE User’s Guide 423Figure 239 The Dice Program (Detail View)Remember the dotted line indicates a control pin. Whe
424 VEE User’s Guide11 Using Operator Interfaces ChapterThe program should look like Figure 240 when executing.Figure 240 The Dice Program (Panel View
Using Operator Interfaces Chapter 11VEE User’s Guide 425• You will usually use Run instead of AutoExecute on more complicated programs. You can have t
426 VEE User’s Guide11 Using Operator Interfaces Chapter7 Position the title Bitmap Function and the OK button as desired. Iconize the Bitmap UserFunc
Using Operator Interfaces Chapter 11VEE User’s Guide 427Lab 11-3: Creating a High Impact WarningThis exercise includes several UserFunctions that are
428 VEE User’s Guide11 Using Operator Interfaces Chapter6 Select Flow ⇒ Delay, set it to 1, and connect its sequence input pin to the Color Alarm sequ
Using Operator Interfaces Chapter 11VEE User’s Guide 42910 Change the Color Alarm to a Raised Border as well. 11 Click on open space within UserFuncti
430 VEE User’s Guide11 Using Operator Interfaces ChapterThis creates an input object that uses a Check Box. If the operator clicks the box, an X will
Using Operator Interfaces Chapter 11VEE User’s Guide 43121 Open the warning UserFunction Properties box, select ShowPanelonExecute, set the ShowPopupP
18 VEE Pro User’s GuideIntroduction
432 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 244 The Warning ProgramLab 11-4: Using an ActiveX ControlThis lab shows how to use an A
Using Operator Interfaces Chapter 11VEE User’s Guide 4333 Click Device ⇒ Formula & Object Browser, and select ActiveX Objects, Library: MSComcltLi
434 VEE User’s Guide11 Using Operator Interfaces ChapterExamine all the control examples that ship with VEE to get a better understanding of how they
Using Operator Interfaces Chapter 11VEE User’s Guide 435there are a number of tests and you want to see the results as they are returned. You will use
436 VEE User’s Guide11 Using Operator Interfaces ChapterSequencer sequence input pin. ShowPanel outputs a 1 if it succeeded.LogTest is the name of the
Using Operator Interfaces Chapter 11VEE User’s Guide 437Figure 249 The UserFunction LogTest (Panel)6 Select hidePanel from the Function & Object B
438 VEE User’s Guide11 Using Operator Interfaces ChapterFigure 251 The Status Panel Program (running)In summary, the showPanel object displays the Use
Using Operator Interfaces Chapter 11VEE User’s Guide 439Chapter ChecklistYou should now be able to perform the following tasks. Review, if necessary,
440 VEE User’s Guide11 Using Operator Interfaces Chapter
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 44112Optimizing Agilent VEE Programs Overview 443Basic Techniques for Optimizing Program
Using the Agilent VEE Development Environment 1VEE User’s Guide 191Using the Agilent VEE Development EnvironmentOverview 21Interacting with Agilen
442 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterOptimizing Agilent VEE ProgramsIn this chapter you will learn about:• Basic techniques f
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 443OverviewIn this chapter, you will learn how to improve the execution speed of VEE progra
444 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterBasic Techniques for Optimizing ProgramsTo optimize VEE programs, read the information i
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 445Figure 253 Calculating Square Roots using Math Array The difference in the execution spe
446 VEE User’s Guide12 Optimizing Agilent VEE Programs Chaptersuch as the Counter, instead of using open views. The example in Figure 254 operates abo
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 447function call to ramp is nested in the call to randomize, resulting in slightly faster p
448 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterFigure 256 Function Calls with OptimizationOther Ways to Optimize Agilent VEE ProgramsTh
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 449• Collect data for graphical displays and plot the entire array at once rather than plot
450 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterOverview of Compiled Functions You can use a compiled function in a VEE program, such as
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 451• You need to provide error checking within your compiled function, since VEE cannot tra
20 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterUsing the Agilent VEE Development EnvironmentIn this chapter you will learn
452 VEE User’s Guide12 Optimizing Agilent VEE Programs Chapter• Reconfigure the Call input and output terminals by selecting Configure Pinout in the o
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 453Using Dynamic Link LibrariesOn PCs, you can use the compiled functions from Dynamic Link
454 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterThe fields are described as follows: 2 Select Device ⇒ Call.When you have imported the l
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 455VEE automatically configures the Call object with the function name, and the proper numb
456 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterFigure 259 A Program Using a DLL (MANUAL49) Table 4 9 Elements of Figure 259Element Desc
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 457Run the program and notice that the second trace is one greater than the first trace at
458 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterFigure 260 The Shared Library Name UserObjectThe whichos() function has been used in a r
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 459Execute Program ObjectThe Execute Program object has these characteristics:• Easier to u
460 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterAgilent VEE Execution ModesAgilent VEE Execution Modes allow you to run programs that we
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 461Figure 261 Execution Mode Display in VEE Status BarThe Agilent VEE CompilerThe VEE compi
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 21OverviewIn this chapter, you will learn how to start VEE, how to use menus,
462 VEE User’s Guide12 Optimizing Agilent VEE Programs Chaptera new feature from VEE 6.0, you should change the execution mode to VEE 6. Otherwise, th
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 463Figure 262 Changing the Execution Mode in Default PreferencesEffect of Changing the Exec
464 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterFigure 263 Chaos.vee in VEE 3 Mode with Open DisplaysIn Figure 264, the displays are ico
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 465Figure 264 Chaos.vee in VEE 3 Mode with Closed DisplaysFinally, in Figure 265, the compi
466 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterFigure 265 Chaos.vee in VEE 4 or Higher Mode with Debugging DisabledIn Figure 266 and Fi
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 467Figure 266 Iterative Math Example in VEE 3 ModeFigure 267 Iterative Math Example Using V
468 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterThe Agilent VEE ProfilerThe Profiler is a feature in the Professional Development Enviro
Optimizing Agilent VEE Programs Chapter 12VEE User’s Guide 469Figure 268 An Example of the Profiler
470 VEE User’s Guide12 Optimizing Agilent VEE Programs ChapterChapter ChecklistYou should now be able to perform the following tasks. Review topics, i
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 47113Platform Specifics and Web Monitoring Overview 473The Callable VEE ActiveX Au
VEE User’s Guide 1Table of ContentsVEE Pro User’s GuideConventions Used in This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterInteracting with Agilent VEEThis section explains how to use the VEE graphic
472 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterPlatform Specifics and Web MonitoringIn this chapter you will learn about:• Callin
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 473OverviewIn this chapter, you will learn about one of the most important techniques
474 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterThe Callable VEE ActiveX Automation Server In VEE on Windows 98, Windows NT 4.0, W
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 475Web-enablement TechnologiesYou can use VEE to disseminate data you have collected
476 VEE User’s Guide13 Platform Specifics and Web Monitoring Chapter• The device under test (DUT), or sensor, or instrument sends information to the s
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 477The scripting language is an interpreted language supported by the browser. The sc
478 VEE User’s Guide13 Platform Specifics and Web Monitoring Chapterused to provide user interface functionality and is designed to run on the client
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 479Web Monitoring with Agilent VEEVEE includes a built- in Web server that can commun
480 VEE User’s Guide13 Platform Specifics and Web Monitoring Chapter4 Enable the Web Server by selecting the File ⇒ Default Preferences ⇒ Web Server d
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 481Web Server Dialog BoxWhen you select File ⇒ Default Preferences ⇒ Web Server, the
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 23Starting Agilent VEE Click Start ⇒ Programs ⇒ Agilent VEE ProThe Agilent VEE
482 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterTable 5 0 The Web Server Dialog Box FieldsField Name DescriptionEnable Server When
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 483How a Remote User Accesses Agilent VEE on Your SystemTo access VEE files on your s
484 VEE User’s Guide13 Platform Specifics and Web Monitoring Chapter3 The remote user must enter a URL address for your system. (You provide the addre
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 485Table 5 1 URL Commands and ParametersField Name DescriptionHostname (Required) Ide
486 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterDisplaying the Agilent VEE Web Server PageWhen you install VEE, it creates a defau
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 487displaying your VEE program. The default VEE Web Server Home Page is shown in Figu
488 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterWhen the remote user displays the menu shown in Figure 272, he or she can access v
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 489Figure 273 Viewing the Main Solitaire.vee Program in the BrowserFigure 273 display
490 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterFigure 274 Displaying a VEE Error Message, using the BrowserNotice that the VEE er
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 491Figure 275 Detail View of a UserFunction Displayed in the BrowserThe remote user i
24 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterTable 1 Descriptors for the VEE WindowScreen DescriptorsDescriptionTitle bar
492 VEE User’s Guide13 Platform Specifics and Web Monitoring Chaptersystem, you want to make sure that only certain remote users are able to access pa
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 493Figure 276 Example of Displaying HTML Message Instead of VEE Pro-gramYou could als
494 VEE User’s Guide13 Platform Specifics and Web Monitoring ChapterFigure 277 An Example of a Password Window
Platform Specifics and Web Monitoring Chapter 13VEE User’s Guide 495Chapter ChecklistYou should now be able to perform the following tasks:• Explain h
496 VEE User’s Guide13 Platform Specifics and Web Monitoring Chapter
AppendixVEE User’s Guide 497Appendix A: Additional Lab Exercises General Programming Techniques 499Using Strings and Globals 514Optimizing Techn
498 VEE User’s GuideAppendixAdditional Lab ExercisesThe following exercises give you a chance to practice the VEE concepts you have learned in this bo
AppendixVEE User’s Guide 499General Programming TechniquesApple BaggerYou want to know how many apples it takes to fill a ten pound basket. Create a V
500 VEE User’s GuideAppendixFigure 278 Apple Bagger, Solution 1Key PointsOptimal Solutions: To optimize the performance of programs, use fewer objec
AppendixVEE User’s Guide 501Figure 279 Apple Bagger, Solution 2 Key PointsStart: Using a Start object for this program is redundant, since you can
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 25Getting HelpVEE provides an online Help system for the VEE environment, and
502 VEE User’s GuideAppendixCreate a program that allows a user to enter a number between 0 and 100. If the number is greater than or equal to 50, dis
AppendixVEE User’s Guide 503Figure 280 Testing Numbers (pop-up shown)Testing Numbers, Step 2After the model is working with five objects (the Message
504 VEE User’s GuideAppendixFigure 281 shows the solution to the Testing Numbers exercise with four objects.Figure 281 Testing Numbers, Step 2 Key Poi
AppendixVEE User’s Guide 505want the value of A on the Result pin; otherwise, you want the string “FALSE” on the Result pin. You would use the followi
506 VEE User’s GuideAppendixThis program can be created with six or fewer objects. Choose from the following objects:Hint: To improve performance, sen
AppendixVEE User’s Guide 507Figure 283 Collecting Random NumbersKey PointsLogging AlphaNumeric vs. AlphaNumeric: Use Logging AlphaNumeric to display
508 VEE User’s GuideAppendixTiming Pins: The Do object controls which object executes first. The end of the program is timed from the sequence out p
AppendixVEE User’s Guide 509Layout of Slider Objects: You can select either a vertical or horizontal format for the screen image of the slider objec
510 VEE User’s GuideAppendixMovingAvg(x, numPts): Use this object located in the Function & Object Browser, Data Filtering category to smooth th
AppendixVEE User’s Guide 511Figure 286 The Mask Test, Step 1Using Masks, Step 2Add to the program to calculate and display the percentage of failures.
26 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterVEE online Help is designed for your operating system. Click Help and the me
512 VEE User’s GuideAppendixFigure 287 Mask Test, Step 2 Key PointsMask: The mask is created using the Data ⇒ Constant ⇒ Coord object, then configur
AppendixVEE User’s Guide 513Tot Size : This object simply gives you the number of elements in an array. Since this array contains the number of fail
514 VEE User’s GuideAppendixUsing Strings and GlobalsManipulating Strings and GlobalsUsing string objects or functions, create a program that accepts
AppendixVEE User’s Guide 515Key PointsString Objects and Functions: StrTrim(str) first strips off any spaces or tabs from the front and back of the
516 VEE User’s GuideAppendixOptimizing TechniquesFor this lab, you will build a VEE program two different ways and note the difference in execution sp
AppendixVEE User’s Guide 517Clone all of the objects from the first program. Modify the new set to collect the range into an array. Now, the sine and
518 VEE User’s GuideAppendixUserObjectsRandom Noise UserObjectRandom Noise UserObject, Step 1Create a UserObject that generates a random noise wavefor
AppendixVEE User’s Guide 519Figure 291 A Random Noise UserObjectSolution—NoiseGen Object in Random NoiseFigure 292 shows a solution for the NoiseGen U
520 VEE User’s GuideAppendixFigure 292 The NoiseGen UserObject Key PointsUserObject: Notice that the UserObjects you build are essentially customize
AppendixVEE User’s Guide 521Agilent VEE UserFunctionsUsing UserFunctionsUserFunctions, Step 1Create a function called NoiseGen that accepts an amplitu
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 27 Figure 4 VEE Help Contents TabThe Help Contents tab contains the following
522 VEE User’s GuideAppendixFigure 293 User Functions, Step 1Key PointsRamp(): Notice that the ramp() function is used to generate an array of 256 p
AppendixVEE User’s Guide 523In the same program, create another function called AddNoise that calls the first function NoiseGen. AddNoise should add t
524 VEE User’s GuideAppendixDebug ⇒ Show Data Flow. Leave the AddNoise window open and run the program. Notice how useful this capability is for debug
AppendixVEE User’s Guide 525Now change the program so that the slider sets a global variable called Amplitude. Have the NoiseGen function use that glo
526 VEE User’s GuideAppendixImporting and Deleting Libraries of UserFunctionsBuild a simple program to import the uflab.vee functions from the previou
AppendixVEE User’s Guide 527Select Function: Notice that this selection will configure the proper input and output pins for the function you select.
528 VEE User’s GuideAppendixCreating Operator Panels and Pop-upsCreating Operator Panels and Pop- ups, Step 1Create a panel to ask an operator to ente
AppendixVEE User’s Guide 529Figure 299 Panel for Operator to Enter A and BKey PointsUserObject Properties: In the UserObject Properties dialog box,
530 VEE User’s GuideAppendixFigure 300 UserObject to Ask Operator Whether to Display A or BFigure 301 Panel for Operator to Choose Whether to Display
AppendixVEE User’s Guide 531Gate: The Gate object only sends a value if the two numbers are equal.Junction: The JCT object allows multiple inputs
28 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterFor more information about using specific online Help features as you develo
532 VEE User’s GuideAppendixFigure 302 Generate an Error if Operator Does Not Enter a ChoiceKey PointsExit UserObject: If the user responds in under
AppendixVEE User’s Guide 533Working with FilesMoving Data To and From FilesCreate a VEE program to write the time of day to a file. Generate 100 rando
534 VEE User’s GuideAppendixGenerating an Array: Use randomize(ramp(100,0,1), 0, 1) in the Formula object to create an array of 100 random numbers.
AppendixVEE User’s Guide 535RecordsManipulating RecordsManipulating Records, Step 1Build a record with three fields holding an integer, the time right
536 VEE User’s GuideAppendixFigure 304 Manipulating Records, Step 1 Key PointsTime Stamp: Use the now() function within the To String object to crea
AppendixVEE User’s Guide 537Naming Fields: By renaming the input terminals on the Build Record object, you can give your record specific field names
538 VEE User’s GuideAppendixFigure 305 Manipulating Records, Step 2 Key PointsUsing a Conditional Expression: VEE supports a conditional expression,
AppendixVEE User’s Guide 539Replace the integer input for the first field with a For Count object and step through 10 iterations. Be certain to “ping”
540 VEE User’s GuideAppendixKey PointsThe To DataSet Object: The Clear File at PreRun option only clears the file before data is sent the first time
AppendixVEE User’s Guide 541Test SequencingUsing the Test Sequencer, Step 1Create a simple UserFunction called UpperLimit that is a pop- up panel with
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 29Working with ObjectsA VEE program consists of connected objects. To create a
542 VEE User’s GuideAppendixFigure 307 Using the Test Sequencer, Step 1Key PointsSetting Global Variables with a UserFunction: A typical use of the
AppendixVEE User’s Guide 543Disable the first test. Assuming that you do not need the global anywhere else, you can call the UpperLimit function direc
544 VEE User’s GuideAppendixFigure 309 Using the Test Sequencer, Step 2Key PointsThe UserFunction in an Expression Field: In this example, instead o
AppendixVEE User’s Guide 545Solution—Using the Test Sequencer, Step 3Figure 310 shows a solution to Step 3.Figure 310 Using the Test Sequencer, Step 3
546 VEE User’s GuideAppendixwhich can then be investigated. If you use the <record>[*].<record>.<field> format in the Formula object
AppendixVEE User’s Guide 547Figure 311 Add a Time Stamp to the Logging RecordSolution—Using the Test Sequencer, Step 4Figure 312 shows a solution to s
548 VEE User’s GuideAppendixFigure 312 Using the Test Sequencer, Step 4 Hint: To display a record, click on the Record ⇒ Record: Scaler field for one
AppendixVEE User’s Guide 549Figure 313 Checking a RecordUsing the Test Sequencer, Step 5Print the time stamp fields from the records on a Logging Alph
550 VEE User’s GuideAppendixFigure 314 shows the program thread to print the time stamps to a display, step 5 of using the test sequencer.Figure 314 U
AppendixVEE User’s Guide 551If the Sequencer includes many tests, it can become cumbersome to use many individual Formula objects connected to a Junct
30 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterFigure 5 Adding Objects to the Work AreaAn outline of the object appears in
552 VEE User’s GuideAppendixFormula Control Pin on the Formula Object: The Formula you want to evaluate is generated by the Formula inside the Loop.
AppendixVEE User’s Guide 553Solution—Using the Test Sequencer, Step 8Figure 317 shows a solution to the final step in using the test sequencer.Figure
554 VEE User’s GuideAppendixThe Conditional Expression in the From Data Set Object (Second Thread): The expression is (Rec.test1.pass==1) OR (Rec.tes
GlossaryVEE User’s Manual 555GlossaryThis Glossary defines terms used in this manual. For a complete glossary of VEE terms, select Help ⇒ Contents and
556 VEE User’s ManualGlossaryComponent Driver An instrument control object that reads and writes values to components you specifically select. Use co
GlossaryVEE User’s Manual 557Data Shape Each data container has both a shape and type. The data shape can be either a scalar or an array of one or mo
558 VEE User’s ManualGlossaryFont VEE allows you to change the font size and style of type used to display text for various VEE objects, titles, and
GlossaryVEE User’s Manual 559Minimize Button A button on an object, or the VEE window, that iconifies the object, or the VEE window.Object: 1 A graph
560 VEE User’s ManualGlossaryPointer The graphical image that maps to the movement of the mouse. The pointer allows you to make selections and provid
GlossaryVEE User’s Manual 561Scroll Bar A rectangular bar that, when dragged, scrolls through a list of data files or other choices in a dialog box,
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 31Figure 6 Adding a Function Generator ObjectHaving placed an object in the wo
562 VEE User’s ManualGlossaryToolbar The rectangular bar at the top of the VEE window which provides buttons for quick access to frequently used com
VEE User’s Guide 563Symbols*.dll file extension, 457*.h file extension, 454*.vxe files, 417, 426.NET and IVI Drivers, 311.NET Programming Tips, 3
564 VEE User’s Guidecall UserFunction, 332call UserFunction from expression, 339Calling a Shared/Static Method, 301Calling an Instance Method, 300
VEE User’s Guide 565date & time, time stamp format, 216debuggingadding Alphanumeric displays, 104breakpoints, 105examine data on line, 102exami
566 VEE User’s Guidedisplaying pop-up panels, 417Execute Program object, 458modes, 460order in program, 112Show Data flow, 69Show Execution Flow,
VEE User’s Guide 567II/OTo File object, 211transaction dialog box, 211transaction format (syntax), 212understanding I/O transactions, 210I/O confi
568 VEE User’s Guidelogging enabledSequencer transaction field, 370MMain windowdescription, 23displaying in VEE, 64managing the work space, 62mathD
VEE User’s Guide 569changing name, 38changing parameters, 55, 58changing title, 38changing views, 32cloning, 35Confirm (OK), 417connecting, 52cop
570 VEE User’s Guideadding object to, 400adding objects, 420aligning objects, 411Beep object, 427button on icon bar, 401create operator interface
VEE User’s Guide 571Sequencer transaction field, 369READ I/O transaction, 212reading data from instrument, 151real array, sending to file, 217Real
2 VEE User’s GuideThe Mouse and the Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32 VEE User’s Guide1 Using the Agilent VEE Development Environment Chapter Figure 7 Object in Open View and Icon View The iconic view conserves space
572 VEE User’s Guidedisplays, 196Spectrum data type, 175speed, execution, 468standard deviation lab, 180starting VEE, 23Static members, 286status
VEE User’s Guide 573differences from UserObjects, 333editing, 352Import and Delete Library objects, 351Import Library, 344libraries of, re-using,
574 VEE User’s GuideZzooming in on waveform, 198
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 33Selecting an Object MenuEach VEE object has an object menu that lets you per
34 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterMoving an Object1 To move the Function Generator object, click Move in the o
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 35Duplicating (or Cloning) an ObjectThe Clone operation creates a duplicate
36 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterCopying an Object This action copies an object to the clipboard, so you coul
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 37After an object has been copied or deleted, click Edit ⇒ Paste. An outline o
38 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterChanging the Name (Title) of an Object 1 Open the object menu and select Pro
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 39Selecting or Deselecting Objects1 To select an object, click on the object a
40 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterSelecting/Deselecting All Objects1 To select all objects, click Edit ⇒ Sele
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 41Editing ObjectsThere are several ways to edit objects in VEE. Different edit
VEE User’s Guide 3Changing Object Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterFigure 15. (A line appears behind the pointer as you move from one pin to th
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 43Moving the Entire Work Area(Make sure there is at least one icon in the work
44 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterClearing the Work AreaClick Edit ⇒ Select All and then click the Cut butto
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 45Figure 17 Default Preferences Dialog BoxThis dialog box has tabs that let yo
46 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterUnderstanding Pins and TerminalsA VEE program consists of the objects in the
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 47In an object’s open view, the data input and output pins appear as input and
48 VEE User’s Guide1 Using the Agilent VEE Development Environment Chapter Figure 20 Setting the ShowTerminals PropertySelect the property and set Sho
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 49Figure 21 Adding a TerminalEditing Terminal InformationTo obtain information
50 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterYou can now edit the terminal. The dialog box has three kinds of fields:Figu
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 51Required Shape fields set to Any. For more information, select Help ⇒ Cont
4 VEE User’s GuideUsing the Alphanumeric Displays for Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104U
52 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterConnecting Objects to Make a Program This section introduces VEE programs. I
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 53Figure 25 Creating a ProgramIn Figure 25, the Func label on the Function Ge
54 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterTry moving one of the objects by dragging on its title bar. (Do not drag a p
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 55Resume button (same as the Run button) to resume. You can use the Step Into
56 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterFigure 27 Changing the Function Field to Sine WaveSome fields in dialog boxe
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 57Figure 28 Highlighting a Frequency Field Number8 Press Delete to delete the
58 VEE User’s Guide1 Using the Agilent VEE Development Environment Chapter• Click Deg (or the arrow) in the Function Generator object and change the
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 59When you click OK, VEE prints the screen on the default printer named in the
60 VEE User’s Guide1 Using the Agilent VEE Development Environment Chapter11 By default, VEE for Windows saves files in the VEE Programs sub-directory
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 61Exiting (Quitting) Agilent VEESelect File ⇒ Exit to close the VEE applicatio
VEE User’s Guide 5Moving to Other Panels on the Same Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterRe-Starting Agilent VEE and Running a Program1 Click Start ⇒ Programs ⇒ Agi
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 63UserObjects and UserFunctions as subroutines or subprograms to the main prog
64 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterAs Figure 33 shows, the Program Explorer lists the hierarchy of the program.
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 65How Agilent VEE Programs WorkIn VEE, the general flow of execution through a
66 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterLab 1-2: Viewing Data Flow and Propagation To see how data flow works, open
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 67Figure 35 Example: Adding a Noise Generator Object1 Delete the line connecti
68 VEE User’s Guide1 Using the Agilent VEE Development Environment ChapterFigure 36 Function and Object Browser1 Connect the input and output pins as
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 69To see the order of execution, turn on the Debug commands Show Execution Flo
70 VEE User’s Guide1 Using the Agilent VEE Development Environment Chapter3 Add a Real64 Slider object (Data ⇒ Continuous ⇒ Real64 Slider) and conne
Using the Agilent VEE Development Environment Chapter 1VEE User’s Guide 71Figure 39 Displaying the Value on an Output Pin4 Re- save the program to sim
Comentarios a estos manuales