~ ARTISAN® with Experienced Engineers and Technicians on Staff
Total Page:16
File Type:pdf, Size:1020Kb
Full-service, independent repair center -~ ARTISAN® with experienced engineers and technicians on staff. TECHNOLOGY GROUP ~I We buy your excess, underutilized, and idle equipment along with credit for buybacks and trade-ins. Custom engineering Your definitive source so your equipment works exactly as you specify. for quality pre-owned • Critical and expedited services • Leasing / Rentals/ Demos equipment. • In stock/ Ready-to-ship • !TAR-certified secure asset solutions Expert team I Trust guarantee I 100% satisfaction Artisan Technology Group (217) 352-9330 | [email protected] | artisantg.com All trademarks, brand names, and brands appearing herein are the property o f their respective owners. Find the Measurement Computing / CEC PC-488 at our website: Click HERE Program and documentation copyrighted 1986, 1998, 2003 by Capital Equipment Corporation (CEC). The software interpreter contained in EPROM/ROM is copyrighted and all rights are reserved by Capital Equipment Corporation. Copying or duplicating this product is a violation of law. Application software libraries provided on disk are copyrighted by Capital Equipment Corporation. The purchaser is granted the right to include portions of this software in products which use one of CEC's IEEE-488 interface boards (including those sold through resellers such as Keithley Instruments, etc.). The software may not be distributed other than for the application just mentioned. Purchasers of this product may copy and use the programming examples contained in this book. No other parts of this book may be reproduced or transmitted in any form or by any means, electronic, optical, or mechanical, including photocopying and recording, or by any information storage and retrieval system, without permission in writing from Capital Equipment Corporation. For CEC contact information, please go to http://www.cec488.com on the World Wide Web Part number 370966A-01 November 2003 Warranty and other information All products are warranted against defective materials and workmanship for a period of one year from the date of delivery to the original purchaser. Any product that is found to be defective within the warranty period will, at the option of the manufacturer, be repaired or replaced. This warranty does not apply to products damaged by improper use. CEC and CEC resellers assume no liability for damages consequent to the use of this product. This product is not designed for use in life support applications. Information furnished by the manfacturer is believed to be accurate and reliable. However, CEC and CEC resellers assume no responsibility for the use of such information nor for any infringements of patents or other rights of third parties that may result from its use. No license is granted by implication or otherwise under any patent rights of Keithley Instruments or CEC. Table of Contents Introduction and Installation 1-1 Step 1: Install the Software............................................................... 1-3 Step 2: Install the Hardware ............................................................. 1-5 Step 3: Test the Interface.................................................................. 1-6 Step 4: Applications ......................................................................... 1-8 IEEE-488 Tutorial 2-1 GPIB Concepts ................................................................................. 2-2 About the IEEE-488 Standard.......................................................... 2-4 GPIB Device Addresses ................................................................... 2-5 Controllers, Listeners and Talkers.................................................... 2-6 Data Transfers .................................................................................. 2-7 GPIB Commands.............................................................................. 2-8 Programming IEEE-488 Interfaces 3-1 Beginning your program................................................................... 3-2 Initializing the GPIB......................................................................... 3-5 Sending Data to a Device ................................................................. 3-6 GPIB Addresses - Primary and Secondary....................................... 3-7 Reading Data from a Device ............................................................ 3-8 Checking the Device Status - Service Request................................. 3-13 Testing for the Presence of a Device................................................ 3-16 Testing for the Presence of the GPIB Board .................................... 3-17 Checking Hardware Features of the GPIB Board ............................ 3-18 Low-level GPIB Control using Transmit ......................................... 3-20 Sending a Device Clear Command................................................... 3-32 Sending a Device Trigger Command ............................................... 3-33 The Receive Routine ........................................................................ 3-34 Binary Data Transfers....................................................................... 3-36 Data Formats .................................................................................... 3-39 High Speed Data Transfers............................................................... 3-40 Configuring Board Parameters ......................................................... 3-42 Configuration Files........................................................................... 3-47 Advanced Programming 4-1 The Computer as a GPIB Device ..................................................... 4-2 Passing Control................................................................................. 4-18 Interrupt Processing.......................................................................... 4-19 Using Multiple Boards ..................................................................... 4-24 Programming Examples 5-1 BASICA/GWBASIC Examples ....................................................... 5-3 Turbo Pascal Examples .................................................................... 5-8 C Examples....................................................................................... 5-12 Technical Reference 6-1 Introduction ...................................................................................... 6-2 Electrical Specifications ................................................................... 6-4 Handshake Timing Sequence ........................................................... 6-5 Mechanical Specifications................................................................ 6-7 Bus Line Definitions......................................................................... 6-8 Cabling Information ......................................................................... 6-9 BASICA and GWBASIC Language Interface A-1 IEEE-488 Subroutine calls ............................................................... A-2 Examples .......................................................................................... A-8 QuickBASIC, QBASIC, and Visual BASIC Language Interface B-1 IEEE-488 Subroutine calls ............................................................... B-3 Using Tarray and Rarray with strings in DOS QuickBASIC........... B-9 Examples - QuickBASIC or QBASIC.............................................. B-10 Examples - Visual BASIC................................................................ B-11 Turbo Pascal and Delphi Language Interface C-1 IEEE-488 Subroutine calls ............................................................... C-2 Examples .......................................................................................... C-7 C and C++ Language Interface D-1 IEEE-488 Subroutine calls ............................................................... D-3 Examples .......................................................................................... D-8 FORTRAN Language Interface E-1 IEEE-488 Subroutine calls ............................................................... E-3 Examples .......................................................................................... E-9 Assembler and other language interfacing F-1 IEEE-488 Subroutine calls ............................................................... F-2 Examples .......................................................................................... F-10 OS/2 and IEEE-488 G-1 Troubleshooting I-1 Checklist for Solving 488 Programming Problems .......................... I-2 Hardware Configuration J-1 PC488 ............................................................................................... J-2 PC488 (revision C and earlier) ......................................................... J-6 488EX (16-bit ISA bus card)........................................................... J-11 PCI488 (PCI bus board) .................................................................. J-14 PS488 (Microchannel, PS/2 board) ................................................. J-15 Differences from earlier versions K-1 ASCII character table & GPIB codes L-1 Using PRINT and INPUT for GPIB control M-1 HP-style universal language driver O-1 Using the CECHP driver .................................................................. O-2 Converting old HP computer programs to use CECHP.................... O-3 Commands........................................................................................ O-5 Examples .........................................................................................