VEE Advanced Techniques Notice
Total Page:16
File Type:pdf, Size:1020Kb
VEE Advanced Techniques Notice The information contained in this document is subject to change without notice. Agilent Technologies shall not be liable for any errors contained in this document. Agilent Technologies makes no warranties of any kind with regard to this document, whether express or implied. Agilent Technologies specifically disclaims the implied warranties of merchantability and fitness for a particular purpose. Agilent Technologies shall not be liable for any direct, indirect, special, incidental, or consequential damages, whether based on contract, tort, or any other legal theory, in connection with the furnishing of this document or the use of the information in this document. Warranty Information A copy of the specific warranty terms applicable to your Agilent Technologies product and replacement parts can be obtained from your local Sales and Service Office. U.S. Government Restricted Rights The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as commercial computer software as defined in DFARS 252.227-7013 (Oct 1988), DFARS 252.211-7015 (May 1991) or DFARS 252.227-7014 (Jun 1995), as a “commercial item” as defined in FAR 52.101(a), or as Restricted computer software as defined in FAR 52.227-19 (Jun 1987) (or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for such Software and Documentation by the applicable FAR or DFARS clause or the HP standard software agreement for the product involved. Copyright 2004 Agilent Technologies. All rights reserved. This document contains information which is protected by copyright. All rights are reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except as allowed under the copyright laws. ii Microsoft®, MS-DOS®, Windows®, MS Windows®, and Windows NT® are U.S. registered trademarks of Microsoft Corporation. UNIX® is a registered trademark of The Open Group. VEE and VEE Pro are trademarks of Agilent Technologies. Printing History Edition 2...............................March 2004 Part Number E2120-90002 iii Conventions Used in This Manual This manual uses the following typographical conventions: Advanced Italicized text is used for book titles and for Techniques emphasis. Dialog Box Bold text is used for the first instance of a word that is defined in the glossary. File Computer font represents text that you will see on the screen, including menu names, features, buttons, or text that you have to enter. dir filename In this context, the text in computer font represents an argument that you type exactly as shown, and the italicized text represents an argument that you must replace with an actual value. File ⇒ Open The “⇒” is used in a shorthand notation to show the location of VEE Pro features in the menu. For example, “File ⇒ Open” means to select the File menu and then select Open. Sml | Med | Lrg Choices in computer font, separated with bars (|), indicate that you should choose one of the options. Press Enter In this context, bold represents a key to press on the keyboard. Press Ctrl + O Represents a combination of keys on the keyboard that you should press at the same time. iv Contents 1. Introduction About This Manual ...................................................................................3 Configuring VEE ......................................................................................5 Configuring VEE for Windows...........................................................5 Color and Font Settings..................................................................5 Customizing Icon Bitmaps.............................................................6 Selecting a Bitmap for a Panel View .............................................6 Configuring VEE for UNIX ................................................................7 Color and Font Settings..................................................................7 Changing X11 Attributes (UNIX)..................................................7 Screen Colors Change (UNIX) ................................................8 Attempt to Use Too Many Colors (UNIX) ....................................8 Applications that Use a Local Color Map (UNIX) ........................9 Using Non-USASCII Keyboards (UNIX).........................................11 Using HP-GL Plotters (UNIX)..........................................................11 Using VEE Example Programs ..............................................................14 The Example Directories...................................................................14 Running the Examples.......................................................................14 Using Library Objects.............................................................................15 Formula Objects ...........................................................................15 Supported I/O Interfaces.........................................................................16 Using VEE Execution Modes.................................................................17 Setting Execution Modes...................................................................17 What is an Execution Mode? .......................................................17 Why should I want to change Execution Modes?........................18 How do I know when to change Execution Modes?....................18 Guidelines to Switching Execution Modes ..................................19 About the Compiler......................................................................19 Execution Mode Changes: VEE 3 to VEE 4 ....................................21 Line Colors in Compiler Mode ....................................................21 Potential Compatibility Problems ................................................21 Contents-1 Execution Mode Changes: VEE 4 to VEE 5..................................... 29 About the VEE 5 Execution Mode .............................................. 29 Converting Programs to VEE 5 Execution Mode........................ 29 VEE 5 Execution Mode Changes................................................. 30 Using VEE 5 Mode in HP-UX..................................................... 34 Execution Mode Changes: VEE 5 to VEE 6..................................... 35 About the VEE 5 Execution Mode .............................................. 35 New Data Types........................................................................... 35 Variant to VEE Data Type Conversion - Improved Array Handling 35 Updated Functions ....................................................................... 37 Related Reading...................................................................................... 38 2. Instrument Control Fundamentals Introduction to Direct I/O.................................................................. 44 An Example of Direct I/O............................................................ 44 MultiInstrument Direct I/O ................................................................................ 44 Introduction to VXIplug&play ........................................................... 46 Getting Started ............................................................................. 46 What You Need............................................................................ 47 Installing the VXIplug&play Driver Software............................. 47 Location of Files (WIN95 and WINNT Frameworks)................. 47 Location of Files (HP-UX Framework)....................................... 48 Summary of Terminology............................................................ 48 A VXIplug&play Example Program............................................ 48 Further Information...................................................................... 49 Introduction to Panel Drivers and Component Drivers..................... 49 Panel Drivers................................................................................ 49 Component Drivers...................................................................... 50 Further Information...................................................................... 52 Support For Register-Based VXI Devices ........................................ 52 3. Configuring Instruments Using the Instrument Manager ............................................................... 58 Overview ........................................................................................... 58 Contents-2 Auto Discovery..................................................................................60 The Instrument List ...........................................................................61 Instrument Configuration ..................................................................63 Renaming an Instrument....................................................................65 Adding an Instrument Configuration ...........................................67 Adding a Panel Driver or Component Driver....................................72 Editing an Instrument Configuration............................................73 Editing an Interface Configuration...............................................75 Configuring for a Direct I/O Object ..................................................76 Configuring for a VXIplug&play Driver ..........................................79 Configuring for a PC PlugIn Card.....................................................83 Details of the Properties Dialog Boxes...................................................85