Appendix a Menus, Buttons, the Mouse, and Data Flow
Total Page:16
File Type:pdf, Size:1020Kb
Appendix A Menus, Buttons, the Mouse, and Data Flow Introduction This appendix explains instructions on how to use the mouse. The explanation is followed by a description of how data flows into, within, and out of an Object. This appendix concludes with the Object Order of Operation sequence. Menus and Buttons The menus for VEE Pro are the top line of words; this line is known as the Menu Bar. Pull down a Menu Bar that includes an arrow to the right of the listing. It indicates a submenu. Three dots … after a menu word indicate that one or more dialog boxes will follow. (File => Open … is an example.) The second line of icons (also known as buttons) is known as the Tool Bar. Their contents are given below: Menu Bar: Menus and Submenus File File (continued) New Ctrl + N Print Program… Open… Ctrl + O Print Objects… Merge… Print Setup… Merge Library… Programs (previously opened): Save Ctrl + S 1 Save As… Ctrl + W 2 Save Objects … 3 Create Secured RunTime Version… etc Save Documentation … Exit Ctrl + E Default Preferences Send Program by Email Edit Print Screen … Cut Ctrl + X Copy Ctrl + C A.2 Appendix A Menus, Buttons, the Mouse, and Data Flow File (continued) Debug (continued) Paste Ctrl + V Clear All Breakpoints Select All Ctrl + A Activate Breakpoints (toggle) Delete Lines Shift + Ctrl + LB Show Data Flow Clean Up Lines Show Execution Flow Find… Ctrl + F Line Probe Shift + LB Find Results Object Probe Shift + LB Add To Panel Align Flow Middles Start Tops If/Then/Else Bottoms Conditional Centers If A == B Lefts If A ~= B Rights If A != B Space Equally If A < B Undo Last Arrangement If A > B Create UserObject… If A <= B Create UserFunction… If A >= B Edit UserFunction Repeat For Count View For Range Variables… For Log Range Last Error Until Break Main Ctrl + M On Cycle Execution Window Next Program Explorer (toggle) Break Call Stack Junction Profiler Do Toolbar (toggle) Gate Status Bar (toggle) Sample & Hold Confirm (OK) Debug Delay Run/Resume Ctrl + G Exit Thread Pause Ctrl + P Exit UserObject Stop Stop Step Into Ctrl + T Raise Error Step Over Step Out Toggle Breakpoint Appendix A Menus, Buttons, the Mouse and Data Flow A.3 Device I/O; Bus I/O Monitor (continued) Formula From MATLAB Script File Function & Object Browser Ctrl + l DataSet UserObject String UserFunction StdIn (UNIX) Call To/From Named Pipe (UNIX) Import Library To/From Socket Delete Library To/From DDE (PC) Sequencer Rocky Mountain Basic (UNIX) Virtual Source Initialize Rocky M’tn Basic (UNIX) Function Generator To/From Rocky M’tn Basic (UNIX) Pulse Generator Execute Program (UNIX) Noise Generator Execute Program (PC) Regression Print Screen Counter Accumulator Data Timer Selection Control Shift Register Radio Buttons DeMultiplexer Cyclic Button Comparator List ActiveX Automation References… Drop-Down List ActiveX Control References… Pop-Up List ActiveX Controls (See Menu extensions) Slider List Toggle Control I/O Button Instrument Manager… Check Box Advanced I/O Vertical Paddle Interface Operations Horizontal Paddle Instrument Event Vertical Rocker Interface Event Horizontal Rocker MultiInstrument Direct I/O Vertical Slide Bus I/O Monitor Horizontal Slide To Dialog Box File Text Input DataSet Int32 Input Printer Real64 Input String Message Box StdOut (UNIX) List Box StdErr (UNIX) File Name Selection A.4 Appendix A Menus, Buttons, the Mouse, and Data Flow Data (continued) Data (continued) Continuous Allocate Array Int32 Slider Text ueal64 Slider UInt8 Int32 Knob Int16 Real64 Knob Int32 Constant Real32 Text Real64 UInt8 Coord Int16 Complex Int32 PComplex Real32 Access Array Real64 uet Values Coord Get Values Complex Set Mappings PComplex Get Mappings Date/Time Access Record Record Merge Record Variable SubRecord Set Variable Set Field Get Variable Get Field Delete Variable Concatenator Declare Variable Sliding Collector Build Data Collector Coord Complex Display PComplex AlphaNumeric Waveform Logging AlphaNumeric Arb Waveform Indicator Spectrum Meter Record Thermometer Unbuild Data Fill Bar Coord Tank Complex Color Alarm PComplex XY Trace Waveform Strip Chart Spectrum Complex Plane Record X vs Y Plot Polar Plot Waveform (Time) Appendix A Menus, Buttons, the Mouse and Data Flow A.5 Display (continued) Help (continued) Spectrum (Freq) Agilent Technologies Home Page Magnitude Spectrum Open Example… Phase Spectrum About VEE Pro Magnitude vs Phase (Polar) Magnitude vs Phase (Smith) Tool Bar Buttons Picture Label New (Ctrl + N) Beep Open (Ctrl + O) Note Pad Save (Ctrl + S) Print Screen Window Tool Bar Buttons (continued) Cascade Run (Ctrl + G) Tile Horizontally Pause (Ctrl + P) Tile Vertically Stop (and reset from the latest run) Arrange Icons Step Into (Ctrl + T) by Position Step Over by Name Step Out Minimize All Toggle Breakpoint (Ctrl + B) Close All Show/Hide Call Stack 1 Main Show Execution Flow Show Data Flow Help View Variables Contents and Index Find… (Ctrl + F) Welcome Previous Find Results (Ctrl + R) MATLAB Script Default Preferences Help Desk Instrument Manager MATLAB on the Web Function & Object Browser (Ctrl + 1) (See Menu Extensions) Cut (Ctrl + X) Agilent VEE on the Web Copy (Ctrl + C) Product Registration Paste (Ctrl + V) Support Add to Panel Instrument Drivers Delete Line (Ctrl + Shift + LB) Education/Training Show/Hide Program Explorer Agilent VEE Home Page Show/Hide Profiler A.6 Appendix A Menus, Buttons, the Mouse, and Data Flow Mouse Instructions These instructions are for the left-hand mouse button: This statement: means you should: Click on an item Place the mouse pointer over the desired item and press the left mouse button. Double-click on an item Place the mouse pointer over the desired item and press the left mouse button twice quickly. Drag an item Place the mouse pointer over the desired item, hold the left mouse button down, and move the item to the appropriate location. Then, release the mouse button. The right-hand mouse button is to be depressed only when specifically noted in the text. Programming When solution steps for solving a decision portion of a program become complex, then it can first be prepared as a flow chart or as pseudo code. Flow charts are either structured (single entry at the beginning with a single exit at the end) or unstructured which consists of boxes connected by lines with multiple entry and exit points. Pseudo code is programming-like notation, ranging from simple English words to programming steps. A Pascal pseudo-code example for calculating interest is: Pseudo Code Pascal BEGIN PROGRAM SIMPLEINTEREST (OUTPUT); Set the PRINCIPAL amount invested at $620 VAR Set the interest RATE at 0.075 (7.5%) PRINCIPAL, RATE, INTEREST, REAL; Calculate the INTEREST as RATE * PRINCIPAL BEGIN WRITE the PRINCIPAL and the interest RATE PRINCIPAL := 620; WRITE the amount of INTEREST earned RATE := 0.075; Appendix A Menus, Buttons, the Mouse and Data Flow A.7 Pseudo Code (continued) Pascal (continued) INTEREST := RATE * PRINCIPAL; WRITELN (PRINCIPAL, RATE); WRITELN (INTEREST) END END. VEE Pro Data Flow Data flows from left to right through an object. On all the objects with data pins, the left data pins are inputs and the right data pins are outputs. All of an object’s data-input pins must be connected. Otherwise, an error will occur when the program is run. If you do not wish to use them, then delete those pins. An object will not execute until all of its data-input pins have received new data. An object finishes executing only after all connected and appropriate data-output pins have been activated. You can change the order of execution by using sequence input and output pins. You do not normally need to use these pins except to ensure the order of execution (when controlling external devices such as instruments). Let data flow control the execution of your program. Object Order of Operation The order in which things happen within a VEE Pro object is: 1a. If the object’s Sequence Input pin is connected, then the object will wait for both the Data Input and Sequence Input to receive data (or a ping) before it goes to step 2 below. A.8 Appendix A Menus, Buttons, the Mouse, and Data Flow 1b. The object accepts data on its Data Input Pin(s). It will wait until there is data on all Data Input Pins. 2. The object performs its designated function. 3. The object sends data out its Data Output Pin(s). 4. The object waits for a “receipt acknowledged” signal. The “receipt acknowledged” is then sent when every object “down-thread” from this object has completed its operation. 5. The object sends its signal out its Sequence-Out pin. The object then deactivates. Appendix B Partial Programming Sequences Introduction This appendix identifies those portions of programs that will help you during the preparation of your programs. They are known as Partial Program Sequences. This is a different type of index; reference to these portions of programs is listed alphabetically. Thus, you may quickly reference partial programs that you use infrequently. VEE Pro Subprograms Subprogram Titles Lesson Page Number 34970A data acquisition switch unit, installing the 4.5 Access many picture files, using one UserFunction 18.15 Accessing logged “record of records” test data 15.4 Active instrument, sending a single text command to an 4.8 Active instrument, sending an expression list to an 4.8 ActiveX, sending VEE Pro data to an Excel™ spreadsheet via 9.2 Adding and restricting the parameters of a virtual device 2.5 Adding delta markers to a display 5.11 Adding or inserting a configured test 15.3 Adding two device waveforms together 2.7 Agilent digital filter