ADL-GPIB. for PC Compatibles. Function Reference Manual

Similar documents
Model KPCI-488LPA GPIB Controller Interface Card and Model KUSB-488B USB to GPIB Converter

NI-488.2M TM Software for Windows 95 Quick Reference Card

Quick Reference Card. NI-488.2M TM Software for Win32. Status Word Conditions (ibsta) Error Codes (iberr) NATIONAL INSTRUMENTS

NI TM. Function Reference Manual for DOS/Windows. August 1996 Edition Part Number A-01

Using NI-488.2M Software with 32-Bit Delphi Applications

NI-488 and NI Subroutines for NKR BASIC. August 1992 Edition Part Number

Programming with NI Software

NI-488 and NI Subroutines for FORTRAN. November 1993 Edition Part Number

ESP-488 Software Reference Manual for the GPIB-ENET

Using Your NI Software with NEC Windows

GP-IB(PCI) GP-IB(PCI)L

Using Your NI-488 and NI Subroutines for Visual Basic for Windows

PC-HELPER. High Speed IEEE I/F Micro Converter for USB2.0 GP-IB(USB)FL. User s Manual CONTEC CO.,LTD.

ESP-488 Software Reference Manual for LynxOS and the AT-GPIB

GPIB Library Software User's Guide

NI-488M. Software Reference Manual. National Instruments IEEE 488 Multitasking UNIX Device Driver. July 1994 Edition Part Number

Supplement to the NI-488M Software Reference Manual for AIX

NI-488DDK Software Reference Manual

GPIB. NI-488DDK Software Reference Manual. January 2003 Edition Part Number B-01

User s Manual. High Speed & Function IEEE I/F Board for PCI GP-IB(PCI)F. High Speed IEEE I/F Board for PCI GP-IB(PCI)FL

NI NI User Manual for Windows

gpib-ctypes Documentation

GPIB Analyzer Help Contents Index Search

TABLE OF FIGURES... II A - DISCUSSION...1

NI NI User Manual. NI User Manual. March 2004 Edition Part Number B-01

5 The GP Interface Bus

NI-488.2TM. NI User Manual. NI User Manual. June W-01

Getting Started with Your GPIB-PCII/IIA and the NI Software for MS-DOS

The GPIB Interface. Last modified Week 4 - part 1. What we have here is a failure to communicate - Cool Hand Luke

GPIB Tutorial. GPIB Tutorial. GPIB Instrument Control. National Instruments Phone: (512) Fax: (512)

Data Acquisition ATDAQ DLL. Windows 3.11/95/98/NT/2000 Software Drivers for ATAO and ATDAQ Cards FUNCTION REFERENCE MANUAL

NI-488.2TM. NI User Manual. NI User Manual. January N-01

ines-ieee488.2 igpib Device Driver Software Manual 1998 ines GmbH

Remote Control Manual

PROLOGIX GPIB-ETHERNET CONTROLLER USER MANUAL VERSION September 14, 2009 PROLOGIX.BIZ

ICS ICS ELECTRONICS division of Systems West Inc.

PCA9665; PCA9665A. 1. General description. 2. Features and benefits. Fm+ parallel bus to I 2 C-bus controller

PCI Advance Technologies; Automate the World. IEEE488 GPIB Interface Card User s Manual. Manual Rev Revision Date: April 14, 2005

NDS-DLL6. Dynamic Linking Library for NuDAM 6000 Modules. User Guide

GPIB ASIC Reference Manual Errata

Designing a GPIB Device Using the NAT9914

SOFTMARK. USB to GPIB Interface. SOFTMARK PO Box 1609 Hornsby NSW 2077 Australia

Using Measurement Studio GPIB to Accelerate Development with Visual Basic

ICS ICS ELECTRONICS division of Systems West Inc.

IEEE 488/USB BUS INTERFACES

8013/8013V. ICS ICS ELECTRONICS division of Systems West Inc. A flexible interface between any computer and devices with digital signals.

Internal GPIB Interface for LHP Series Power Supplies

LPCI/PXI-3488A. Advance Technologies; Automate the World. IEEE488 GPIB Interface Card Series User s Manual. Manual Rev. 2.00

2002 by LeCroy Corporation. All rights reserved. Information in this publication supersedes all earlier versions. Specifications subject to change.

ACLS-LVIEW. LabVIEW Interfaces for NuDAQ ISA-Bus Cards, Windows 3.1/95/NT User s Guide

For CEC contact information, please go to on the World Wide Web

OM-Link. User guide. Version: 2.1. Copyright 2005, 2006 ORBIT MERRET, s r.o.

Implementation of an IBM-PC/AT as a GPIB controller.

DDA-RCM-E Rev D ISSUED: December 1999 $²

NEW PULSE COMMANDS Interface Card. Host Chassis. TTL/CMOS Input Signals or Contact Closures. High Current TTL Output Lines.

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Advance Technologies; Automate the World.

IEEE 488/GPIB BUS INTERFACES

TMS9914A General Purpose Interface Bus (GPIB) Controller

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

SILICON COMPOSERS INC

DQP-3100 IEQ11 Compatible Option Module for NuVAX and NuPDPq Owner s Manual. DQP-3100-OM Revision C

Using MATLAB with KEITHLEY Instrument Devices through GPIB Page 1 of 6

Objectives. Introduction

THE BBC MICROCOMPUTER IEEE488 INTERFACE USER GUIDE

int result; int waitstat; int stat = PmcaAsyncGetGain(&result); // stat receives request id

GPIB HARDWARE MANUAL. For Use With: PCI-GPIB PCI-GPIB-1M PCI-GPIB-300K ISA-GPIB ISA-GPIB/LC PCM-GPIB CPCI-GPIB PC104-GPIB

DGILib USER GUIDE Atmel-42771A-DGILib_User Guide-09/2016

ATC-AD8100K. 8 Channel 100 khz Simultaneous Burst A/D in 16 bits IndustryPack Module REFERENCE MANUAL Version 1.

Command Processor For MPSSE and MCU Host Bus Emulation Modes

IP-AD Channel 500 khz Simultaneous IndustryPack Module REFERENCE MANUAL Version 1.4 June 2003

488 Controller TALK LISTEN SRQ ERROR POWER

Computer Labs: I/O and Interrupts

Module 5. Embedded Communications. Version 2 EE IIT, Kharagpur 1

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision )

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

SERIES MG369XB SYNTHESIZED SIGNAL GENERATOR SCPI PROGRAMMING MANUAL

TRIO MP-245 Quick Reference

National Instruments Model GPIB-MAC User Manual Part Number

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

NAT4882 Programmer Reference Manual

8032 MCU + Soft Modules. c = rcvdata; // get the keyboard scan code

DebugDelphi DebugDelphi64 User Guide

AQ6370C/AQ6370D/AQ6373/ AQ6375 Optical Spectrum Analyzer Remote Control

GPIB-100A User Manual

Section 5 SERCOM. Tasks SPI. In this section you will learn:

AN ABSTRACT OF THE THESIS OF. Unibus- CP1100 /GPIB Interface. Bus described in IEEE Standard , and Unibus.

Using the Xtrinsic FXLS8471CQ Transient-Acceleration Function

B Interface description 12.01/

DYNAMIC ENGINEERING 150 DuBois St. Suite C, Santa Cruz, CA Fax Est.

GPIB Parallel. A flexible interface between the IEEE 488 Bus and devices with digital signals. Description. The Model 4803 GPIB <-> Digital Interface

FULCRU COMPUTER PRODUCTS

SignalMaster Manual Version PN: M072005

Microcontroller Systems. ELET 3232 Topic 8: Structures, Arrays, & Pointers

Table of Contents POSTGRESQL DATABASE OBJECT MANAGEMENT 4. POSTGRESQL SCHEMAS 5 PostgreSQL Schema Designer 7. Editing PostgreSQL Schema General 8

DYNAMIC ENGINEERING 150 DuBois, Suite C Santa Cruz, CA (831) Fax (831) Est

Digital488 and Digital488/32/OEM

Model 3916C. IEEE-488 Programmable Filter Mainframe. Operating and Maintenance Manual

Octopus F270 IT Octopus F100/200/400/650 Octopus F IP-Netpackage Octopus F470 UC AFT F Operating Instructions ================!

User Manual for Application Software Type 7300

Transcription:

ADL-GPIB f PC Compatibles Function Reference Manual

@Copyright 1997-2005 ADLink Technology Inc. All Rights Reserved. Manual Rev 4.06: Jul. 30, 2004 The infmation in this document is subject to change without pri notice in der to improve reliability, design and function and does not represent a commitment on the part of the manufacturer. In no event will the manufacturer be liable f direct, indirect, special, incidental, consequential damages arising out of the use inability to use the product documentation, even if advised of the possibility of such damages. This document contains proprietary infmation protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, other means in any fm without pri written permission of the manufacturer. Trademarks IBM PC is a registered trademark of International Business Machines Cpation. Intel is a registered trademark of Intel Cpation. Other product names mentioned herein are used f identification purposes only and may be trademarks and/ registered trademarks of their respective companies.

CONTENTS How to Use This Manual... iv Using ADL-GPIB Functions...5 1.1 The Fundamentals of Building Windows 2000/NT/98 Application with ADL-GPIB 5 1.1.1 Creating a Windows 2000/NT/98 ADL-GPIB Application Using Microsoft Visual C/C++... 5 1.1.2 Creating a Windows 2000/NT/98 ADL-GPIB Application Using Microsoft... 5 1.2 ADL-GPIB Functions Overview...7 Function Description 10 2.1 Data Types 10 2.2 IEEE 488 Function Reference...11 2.2.1 ibask 11 2.2.2 ibbna 14 2.2.3 ibcac 14 2.2.4 ibclr 15 2.2.5 ibcmd 15 2.2.6 ibcmda 16 2.2.7 ibconfig 16 2.2.8 ibdev 19 2.2.9 ibdma 20 2.2.10 ibeot 20 2.2.11 ibeos 21 2.2.12 ibfind 22 2.2.13 ibgts 22 2.2.14 ibist 23 2.2.15 iblines 23 2.2.16 ibln 24 2.2.17 ibloc 25 2.2.18 ibonl 25 2.2.19 ibnotify 26 2.2.20 ibpad 27 2.2.21 ibsad 27 2.2.22 ibpct 28 2.2.23 ibppc 29 i

2.2.24 ibrd 29 2.2.25 ibrda 30 2.2.26 ibrdf 31 2.2.27 ibrpp 32 2.2.28 ibrsc 32 2.2.29 ibrsp 33 2.2.30 ibrsv 33 2.2.31 ibsic 34 2.2.32 ibsre 34 2.2.33 ibstop 35 2.2.34 ibtmo 35 2.2.35 ibtrg 36 2.2.36 ibwait 37 2.2.37 ibwrt 38 2.2.38 ibwrta 38 2.2.39 ibwrtf 39 2.3 Multi-Device IEEE 488.2 Function Reference...41 2.3.1 AllSpoll 41 2.3.2 DevClear... 41 2.3.3 DevClearList... 41 2.3.4 EnableLocal... 42 2.3.5 EnableRemote... 42 2.3.6 FindLstn 42 2.3.7 FindRQS... 43 2.3.8 PassControl... 43 2.3.9 PPoll 44 2.3.10 PPollConfig... 44 2.3.11 PPollUnConfig... 45 2.3.12 RcvRespMsg... 45 2.3.13 ReadStatusByte... 46 2.3.14 Receive 46 2.3.15 ReceiveSetup... 47 2.3.16 ResetSys 47 2.3.17 Send 47 2.3.18 SendCmds... 48 2.3.19 SendDataBytes... 48 2.3.20 SendList 49 2.3.21 SendIFC 49 2.3.22 SendLLO... 50 ii Contents

2.3.23 SendSetup... 50 2.3.24 SetRWLS... 51 2.3.25 TestSRQ 51 2.3.26 TestSys 51 2.3.27 Trigger 52 2.3.28 TriggerList... 52 2.3.29 WaitSRQ... 53 Appendix A Status Codes... 54 Appendix B Err Codes... 55 iii

How to Use This Manual This manual is designed to help you use the ADL-GPIB software driver f ADLINK GPIB interface. The manual describes how to install and use the software library to meet your requirements and help you program your own software applications. It is ganized as follows: Chapter 1, "Using ADL-GPIB Functions" gives the imptant infmation about how to apply the function descriptions in this manual to your programming language and environment. Chapter 2, "Function Description" gives the detailed description of each function call ADL-GPIB provided. Appendix A, "Status Codes" lists the status codes of ibsta f GPIB, as well as their meanings. Appendix B, "Err Codes " lists all the err codes of iberr f GPIB. iv Using ADL-GPIB Functions

1 Using ADL-GPIB Functions ADL-GPIB is a software driver f ADLINK GPIB interface. 1.1 The Fundamentals of Building Windows 2000/NT/98 Application with ADL-GPIB 1.1.1 Creating a Windows 2000/NT/98 ADL-GPIB Application Using Microsoft Visual C/C++ To create a data acquisition application using ADL-GPIB and Microsoft Visual C/C++, follow these steps after entering Visual C/C++: step 1. Open the project in which you want to use ADL-GPIB. This can be a new existing project step 2. Include header file ADGPIB.H in the C/C++ source files that call ADL-GPIB functions. ADGPIB.H contains all the function declarations and constants that you can use to develop your data acquisition application. Incpate the following statement in your code to include the header file. #include ADGPIB.H step 3. Build your application. Setting the appropriate compile and link options, then build your application by selecting the Build command from Build menu (Visual C/C++ 4.0). Remember to link ADL-GPIB s impt library GPIB-32.LIB. 1.1.2 Creating a Windows 2000/NT/98 ADL-GPIB Application Using Microsoft Visual Basic To create a data acquisition application using ADL-GPIB and, follow these steps after entering : step 1. Open the project in which you want to use ADL-GPIB. This can be a new existing project Using ADL-GPIB Functions 5

Open a new project by selecting the New Project command from the File menu. If it is an existing project, open it by selecting the Open Project command from the File menu. Then the Open Project dialog box appears. Changed directy to the place the project file located. Double-click the project file name in the File Name list to load the project. step 2. Add file ADGPIB.BAS into the project if this file is not included in the project. This file contains all the procedure declarations and constants that you can use to develop your data acquisition application. step 3. Design the interface f the application. To design the interface, you place the desired elements, such as command button, list box, text box, etc., on the fm. These are standard controls from the Toolbox. To place a control on a fm, you just move pointer to Toolbox, select the desired control and draw it on the fm. Or you can double-click the control icon in the Toolbox to place it on the fm. step 4. Set properties f the controls. To view the property list, click the desired control and then choose the Properties command from the View menu press F4, you can also click the Properties button on the toolbar. step 5. Write the event code. The event code defines the action you want to perfm when an event occurs. To write the event code, double-click the desired control fm to view the code module and then add code you want. You can call the functions that declared in the file ADGPIB.BAS to perfm data acquisition operations. step 6. Run your application. To run the application, choose Start from the Run menu, click the Start icon (you can also press F5). on the toolbar step 7. Distribute your application. 6 Using ADL-GPIB Functions

Once you have finished a project, you can save the application as an executable (.EXE) file by using the Make EXE File command on the File menu. And once you have saved your application as an executable file, you've ready to distribute it. When you distribute your application, remember also to include the ADL-GPIB s DLL and driver files. 1.2 ADL-GPIB Functions Overview ADL-GPIB functions are grouped to the following classes: IEEE 488 Device Level Function Group Function Description ibask Return the current setting value of the selected configuration item ibbna Set the access board of a device ibclr Clear a specific device ibconfig Set the software configuration parameters ibdev Open and initialize a device ibeos Configure the end-of-string (EOS) termination mode character ibeot Enable disable the automatic assertion of the GPIB EOI line atthe end of write I/O operations ibln Check f the presence of a device on the bus ibloc Go to local ibonl Place the device online offline ibpad Set the primary address ibpct Pass control to another GPIB device with Controller capability ibppc Configure Parallel polling ibrd Read data from a device into a buffer ibrda Read data asynchronously from a device into a buffer ibrdf Read data from a device into a file ibrdi Read data from a device into a buffer ibrdia Read data asynchronously from a device into a buffer ibrpp Perfm a parallel poll ibrsp Perfm a serial poll ibsad Set disable the secondary address ibstop Abt asynchronous I/O operation ibtmo Set disable the I/O timeout period ibtrg Trigger selected device ibwait Wait f GPIB events ibwrt Write data to a device from a buffer ibwrta Write data asynchronously to a device from a buffer ibwrtf Write data to a device from a file IEEE 488 Board Level Function Group Function Purpose ibask Return the current setting value of the selected configuration item ibcac Become Active Controller state ibcmd Send GPIB commands ibcmda Send GPIB commands asynchronously ibconfig Set the software configuration parameters ibdma Enable disable DMA Using ADL-GPIB Functions 7

ibeos ibeot ibfind ibgts ibist iblines ibln ibloc ibonl ibpad ibppc ibrd ibrda ibrdf ibrdi ibrdia ibrpp ibrsc ibrsv ibsad ibsic ibsre ibstop ibtmo ibwait ibwrt ibwrta ibwrtf Configure the end-of-string (EOS) termination mode character Enable disable the automatic assertion of the GPIB EOI line atthe end of write I/O operations Open and initialize a GPIB board Go from Active Controller state to Standby Controller state Set clear the board individual status bit f parallel polls Return the status of the GPIB control lines Check f the presence of a device on the bus Go to local Place the interface board online offline Set the primary address Configure Parallel polling Read data from a device into a buffer Read data asynchronously from a device into a buffer Read data from a device into a file Read data from a device into a buffer Read data asynchronously from a device into a buffer Perfm a parallel poll Request release system control Request service and change the serial poll status byte Set disable the secondary address Assert interface clear Set clear the Remote Enable (REN) line Abt asynchronous I/O operation Set disable the I/O timeout period Wait f GPIB events Write data to a device from a user buffer Write data asynchronously to a device from a user buffer Write data to a device from a file IEEE 488.2 Function Group Routine Purpose AllSpoll Serial polling all devices DevClear Clear a single device DevClearList Clear multiple devices EnableLocal Enable operations from the front panel of devices (leave remote programming mode) EnableRemote Enable remote GPIB programming f devices FindLstn Find listening devices on the GPIB FindRQS Determine which device is requesting service PassControl Pass control to another device with Controller capability PPoll Perfm a parallel poll on the GPIB PPollConfig Configure a device f parallel polls PPollUnconfig Unconfigure devices f parallel polls RcvRespMsg Read data bytes from a device addressed to talk ReadStatusByte Conduct serial polling single device Receive Read data bytes from a device ReceiveSetup Address a device to be a Talker and the interface board to bea Listener ResetSys Reset and initialize devices Send Send data bytes to a device SendCmds Send GPIB command bytes SendDataBytes Send data bytes to devices addressed to listen 8 Using ADL-GPIB Functions

SendIFC SendList SendLLO SendSetup SetRWLS TestSRQ TestSys Trigger TriggerList WaitSRQ Reset the GPIB by sending interface clear Send data bytes to multiple GPIB devices Send the Local Lockout (LLO) message to all devices Set up devices to receive data in preparation f SendDataBytes Place devices in remote with lockout state Determine the current state of the GPIB Service Request (SRQ) line Trigger a devices to conduct self-tests Trigger a device Trigger multiple devices Wait until a device asserts the GPIB Service Request (SRQ) line Using ADL-GPIB Functions 9

2 Function Description This chapter contains the detailed description of ADL-GPIB functions, including the ADL-GPIB data types and function reference. The functions are arranged alphabetically in 3.2 Function Reference. 2.1 Data Types We defined some data types in ADGPIB.H. These data types are used by ADL-GPIB library. We suggest you to use these data types in your application programs. The following table shows the data type names, their ranges and the cresponding data types in C/C++, and Delphi (We didn t define these data types in ADGPIB.BAS and ADGPIB.PAS. Here they are just listed f reference) Type Name Description Range Type C/C++ Pascal (Delphi) ( f 32- bit compiler ) U8 8-bit ASCII character 0 to 255 unsigned char Byte Byte I16 16-bit signed integer -32768 to 32767 sht Integer SmallInt U16 Addr4882_t 16-bit unsigned integer 0 to 65535 unsigned sht Not suppted by BASIC, use the signed integer (I16) instead Wd I32 ssize_t 32-bit signed integer -2147483648 to 2147483647 long Long LongInt U32 size_t 32-bit unsigned integer 0 to 4294967295 unsigned long Not suppted by BASIC, use the signed long integer (I32) instead Cardinal F32 32-bit singleprecision floating-point -3.402823E38 to 3.402823E38 float Single Single F64 64-bit doubleprecision floating-point - 1.797683134862315E308 to 1.797683134862315E309 double Double Double 10 Function Description

2.2 IEEE 488 Function Reference 2.2.1 ibask Return the current setting value of the selected configuration item. Board / Device level int ibask (int ud, int option, int *value ) ilask (ByVal ud As Integer, ByVal opt As Integer, rval As Integer) As Integer call ibask (ByVal ud As Integer, ByVal opt As Integer, rval As Integer) option : value: board device unit descript the configuration item whose value is being returned. The valid option items are listed in the table 2.1 and 2.2. returns current value of the specified configuration item. EARG, ECAP, EDVR Table 1-3. ibask Board Configuration Parameter Options Options(Constants) Options(Values) Returned Infmation ibapad 0x0001 The current primary address of the board ibasad 0x0002 The current secondary address of the board. ibatmo 0x0003 The current I/O timeout of the board. ibaeot 0x0004 0: The GPIB EOI line is not asserted at the end of a write operation. 1: EOI is asserted at the end of a write. ibappc 0x0005 The current parallel poll configuration settings the board ibaautopoll 0x0007 0: Automatic serial polling is disabled. 1: Automatic serial polling is enabled. ibacicprot 0x0008 0: The CIC protocol is disabled. 1: The CIC protocol is enabled. ibairq 0x0009 0: Interrupts are not enabled. 1: Interrupts are enabled. ibasc 0x000A 0: The board is not the GPIB SystemController. 1: The board is the System Controller.. ibasre 0x000B 0: The board does not automatically Function Description 11

12 Function Description assert the GPIB REN line when it becomes the System Controller. 1: The board automatically asserts REN when it becomes the System Controller. ibaeosrd 0x000C 0: The EOS character is igned during read operations. 1: Read operation is terminated by the EOS character. ibaeoswrt 0x000D 0: The EOI line is not asserted when the EOS character is sent during a write operation. 1: The EOI line is asserted when the EOS character is sent during a write operation. ibaeoscmp 0x000E 0: A 7-bit compare is used f all EOS comparisons. 1: An 8-bit compare is used f all EOS comparisons. ibaeoschar 0x000F The current EOS character of the board. ibapp2 0x0010 0: The board is in PP1 mode remote parallel poll configuration. 1: The board is in PP2 mode local parallel poll configuration. ibatiming 0x0011 The current bus timing of the board. 1: Nmal timing (T1 delay of 2 µs.) 2: High speed timing (T1 delay of 500 ns.) 3: Very high speed timing (T1 delay of 350 ns.) ibadma 0x0012 0: The board will not use DMA f GPIB transfers. 1: The board will use DMA f GPIB transfers ibaspollbit 0x0016 0: The SPOLL bit of ibsta is disabled. 1: The SPOLL bit of ibsta is enabled. ibasendllo 0x0017 0: The GPIB LLO command is not sent when a device is put online-ibfind ibdev. 1: The LLO command is sent. ibappolltime 0x0019 0: The board uses the standard duration (2 µs) when conducting a parallel poll. 1 to 17 = The board uses a variable length duration when conducting a parallel poll. The duration values crespond to the ibtmo timing values. ibaendbitisnmal al0x001a 0: The END bit of ibsta is set only when EOI EOI plus the EOS character is received. If the EOS character is received without EOI, the END bit is not set. 1: The END bit is set whenever EOI, EOS, EOI plus EOS is received. ibaist 0x0020 The individual status (ist) bit of the board. ibarsv 0x0021 The current serial poll status byte of the board.

Table 1-4. ibask Device Configuration Parameter Options Options(Constants) Options(Value Returned Infmation s) ibapad 0x0001 The current primary address of the device. ibasad 0x0002 The current secondary address of the device. ibatmo 0x0003 The current I/O timeout of the device. ibaeot 0x0004 0: The GPIB EOI line is not asserted at the end of a write operation. 1: EOI is asserted at the end of a write. ibareaddr 0x0006 0: No unnecessary addressing is perfmed between device-level read and write operations. 1: Addressing is always perfmed befe a device-level read write operation. ibaeosrd 0x000C 0: The EOS character is igned during read operations. 1: Read operation is terminated by the EOS character. ibaeoswrt 0x000D 0: The EOI line is not asserted when the EOS character is sent during a write operation. 1: The EOI line is asserted when the EOS character is sent during a write operation. ibaeoscmp 0x000E 0: A 7-bit compare is used f all EOS comparisons. 1: An 8-bit compare is used f all EOS comparisons. ibaeoschar 0x000F The current EOS character of the board. ibaspolltime 0x0018 The length of time the driver waits f a serial poll response when polling the device. The length of time is represented by the ibtmo timing values. ibaendbitisnmal al0x001a 0: The END bit of ibsta is set only when EOI EOI plus the EOS character is received. If the EOS character is received without EOI, the END bit is not set. 1: The END bit is set whenever EOI, EOS, EOI plus EOS is received. ibabna 0x0200 The index of the GPIB access board used by the given device descript. Function Description 13

2.2.2 ibbna Assign the access board of the specified device. Device level int ibbna( int ud, char *board_name ) ilbna (ByVal ud As Integer, ByVal udname As String) As Integer call ibbna(byval ud As Integer, ByVal udname As String) device unit descript board_name : the name of the access board, e.g. gpib0. EARG, ECAP, EDVR, EOIP, ENEB 2.2.3 ibcac Set the specified gpib board to be the active controller. After take control (tcs tca) command is sent, ATN line is asserted. Befe making a board to be the controller, it has to already be CIC. If it is not CIC, using ibsic function. The board can take control synchronously asynchronously. F taking control synchronously, in der not to crupt transferred data, the GPIB board attempts to assert the ATN signal while the board perfms RFD holdoff. If this attempt (taking control synchronously) is failed, the board takes control asynchronously. F taking control asynchronously, the GPIB board asserts ATN immediately without regard f any data transfer currently on GPIB bus. board level Int ibcac( int ud, int synchronous ) ilcac(byval ud As Integer, ByVal v As Integer) As Integer call ibcac(byval ud As Integer, ByVal v As Integer) 14 Function Description

v : board unit descript takes control asynchronously synchronously 0: asynchronously 1: synchronously EARG, ECIC, EDVR, EOIP, ENEB 2.2.4 ibclr Clear the selected device by sending SDC message. Device level Int ibclr( int ud ) ilclr(byval ud As Integer) As Integer call ibclr(byval ud As Integer) device unit descript EARG, EBUS, ECIC, EDVR, EOIP, ENEB 2.2.5 ibcmd Send GPIB commands. This function is used to send GPIB interface messages but not to send device-specific instructions to GPIB devices. To send device-specific instructions, using ibwrt/ibwrta. The global variable ibcntl returns the number of command bytes transferred. Board level Int ibcmd( int ud, const void *cmd, long cnt ) Function Description 15

ilcmd(byval ud As Integer, ByVal buf As String, ByVal cnt As Long) As Integer call ibcmd(byval ud As Integer, ByVal buf As String) buf : cnt : device unit descript the buffer contains command string to sent number of command bytes to sent EARG, ECIC, EDVR, EOIP, ENEB, EABO, ENOL 2.2.6 ibcmda Send GPIB commands asynchronously. This function is used to send GPIB interface messages but not to send device-specific instructions to GPIB devices. To send device-specific instructions, using ibwrt/ibwrta. The global variable ibcntl returns the number of command bytes transferred. Board level Int ibcmda ( int ud, const void *cmd, long cnt ) Ilcmda (ByVal ud As Integer, ByVal buf As String, ByVal cnt As Long) As Integer call ibcmda (ByVal ud As Integer, ByVal buf As String) buf : cnt : device unit descript the buffer contains command string to sent number of command bytes to sent EARG, ECIC, EDVR, EOIP, ENEB, EABO, ENOL 2.2.7 ibconfig Set the value of the selected configuration item. Board / Device level 16 Function Description

Int ibconfig( int ud, int option, int value ) ilconfig(byval ud As Integer, ByVal opt As Integer, ByVal v As Integer) As Integer call ibconfig(byval ud As Integer, ByVal opt As Integer, ByVal v As Integer) opt : board device unit descript the configuration item wishing to be changed. The valid option items are listed in the following tables. Board Configuration Parameter Options Options(Constants) Options(Values) Legal Values ibcpad 0x0001 Set the primary address of the board. ibcsad 0x0002 Set the secondary address of the board. ibctmo 0x0003 Set the I/O timeout limit of the board. ibceot 0x0004 Set the data termination mode f write operations. ibcppc 0x0005 Configures the board f parallel polls. Default: zero ibcautopoll 0x0007 0: Disable automatic serial polling. 1: Enable automatic serial polling. ibcsc 0x000A Request release system control. Identical to ibrsc. ibcsre 0x000B Assert the Remote Enable (REN) line. Identical to ibsre. Default: zero. ibceosrd 0x000C 0: Igne EOS character during read operations. 1: Terminate reads when the EOS character is read match occurs. ibceoswrt 0x000D 0: Do not assert EOI with the EOS character during write operations. 1: Assert EOI with the EOS character during writes operations. ibceoscmp 0x000E 0: Use 7 bits f the EOS character comparison. 1: Use 8 bits f the EOS character comparison. ibceoschar 0x000F Any 8-bit value. This byte becomes the new EOS character. ibcpp2 0x0010 0: PP1 mode-remote parallel poll configuration. 1: PP2 mode-local parallel poll configuration. Default: zero. ibctiming 0x0011 1: Nmal timing (T1 delay of 2 µs.) 2: High speed timing (T1 delay of 500 ns.) 3: Very high speed timing (T1 delay of 350 ns.). The T1 delay is the GPIB source handshake timing. Default : 3 Function Description 17

ibcreadadjust 0x0013 0 = No byte swapping. 1 = Swap pairs of bytes during a read. Default: zero. ibcwriteadjust 0x0014 0 = No byte swapping. 1 = Swap pairs of bytes during a write. Default: zero. ibcspollbit 0x0016 0: The SPOLL bit of ibsta is disabled. 1: The SPOLL bit of ibsta is enabled. Default: zero. ibcsendllo 0x0017 0: Do not send LLO when putting a device online ibfind ibdev. 1: Send LLO when putting a device online ibfind ibdev. Default: zero. ibcppolltime 0x0019 0: Use the standard duration (2 µs) when conducting a parallel poll. 1 to 17: Use a variable length duration when conducting a parallel poll. The duration represented by 1 to 17 cresponds to the ibtmo values. Default: zero. ibcendbitisnmal 0x001A 0: Do not set the END bit of ibsta when an EOS match occurs during a read. 1: Set the END bit of ibsta when an EOS match occurs during a read. Default: 1. ibcist 0x0020 Sets the individual status (ist) bit of the board. ibcrsv 0x0021 Sets the serial poll status byte of the board. Default: zero. Device Configuration Parameter Options Options(Constants) Options(Values) Legal Values ibcpad 0x0001 Set the primary address of the board. ibcsad 0x0002 Set the secondary address of the board. ibctmo 0x0003 Set the I/O timeout limit of the board. ibceot 0x0004 Set the data termination mode f write operations. IbcREADDR 0x0006 0: No unnecessary readdressing is perfmed between device-level reads and writes. 1: Addressing is always perfmed befe a device-level read write. ibceosrd 0x000C 0: Igne EOS character during read operations. 1: Terminate reads when the EOS character is read match occurs. ibceoswrt 0x000D 0: Do not assert EOI with the EOS character during write operations. 1: Assert EOI with the EOS character during writes operations. ibceoscmp 0x000E 0: Use 7 bits f the EOS character comparison. 18 Function Description

1: Use 8 bits f the EOS character comparison. ibceoschar 0x000F Any 8-bit value. This byte becomes the new EOS character. ibcspolltime 0x0018 0 to 17 : Sets the length of time the driver waits f a serial poll response byte when polling the given device. The length of time represented by 0 to 17 cresponds to the ibtmo values. Default: 11. ibcendbitisnmal 0x001A 0: Do not set the END bit of ibsta when an EOS match occurs during a read. 1: Set the END bit of ibsta when an EOS match occurs during a read. Default: 1. value: the value wish to be changed to the specified configuration item. EARG, ECAP, EDVR, EOIP 2.2.8 ibdev Open and initialize a device descript. If ibdev is unable to get a valid device descript, a -1 is returned; the ERR bit is set in ibsta and iberr contains EDVR. Device level Int ibdev( int board_index, int pad, int sad, int timo, int send_eoi, int eosmode ) ildev(byval bdid As Integer, ByVal pad As Integer, ByVal sad As Integer, ByVal tmo As Integer, ByVal eot As Integer, ByVal eos As Integer) As Integer call ibdev(byval bdid As Integer, ByVal pad As Integer, ByVal sad As Integer, ByVal tmo As Integer, ByVal eot As Integer, ByVal eos As Integer, ud As Integer) board_index : the index of the access board f the device pad : the primary GPIB address of the device sad : the second GPIB address of the device tmo : the I/O timeout value eot : enable disable EOI mode of the devcie eos : configure EOS character and EOS modes of the devcie The device descript -1. Function Description 19

EARG, EDVR, ENEB, 2.2.9 ibdma This fucntion is not suppted in adlgpib. Board level Int ibdma( int ud, int v ) ildma(byval ud As Integer, ByVal v As Integer) As Integer call ibdma(byval ud As Integer, ByVal v As Integer) dma : the board descript enable disable dma mode EARG, ECAP, EDVR, ENEB, EOIP 2.2.10 ibeot Enable disable the assertion of the GPIB EOI line (by a talker) to indicate the end of a multiple byte transfer sequence. Board / Device level Int ibeot ( int ud, int v ) Ileot (ByVal ud As Integer, ByVal v As Integer) As Integer call ibeot (ByVal ud As Integer, ByVal v As Integer) v : the board device descript enable disable eot mode 20 Function Description

EDVR, ENEB, EOIP 2.2.11 ibeos Configure the end-of-string (EOS) termination mode character. Note: Defining an EOS byte does not cause the driver to automatically send that byte at the end of write I/O operations. Your application is responsible f placing the EOS byte at the end of the data strings that it defines. Board / Device level Int ibeot (int ud, int v) ileos (ByVal ud As Integer, ByVal v As Integer) As Integer call ibeos (ByVal ud As Integer, ByVal v As Integer) v : the board device descript EOS mode and character infmation. If v is zero, the EOS configuration is disabled. Otherwise, the low byte is the EOS character and the upper byte contains flags defining the EOS mode. The different EOS configurations and the cresponding values of v as the following table: EOS mode Terminate read when EOS is detected. value of v Bit High Byte Low Byte A 00000100 EOS character Set EOI with EOS on write function. B 00001000 EOS character Compare all 8 bits of EOS byte rather than low 7 bits (all read and write functions). C 00010000 EOS character Configuration bits A and C determine how to terminate read I/O operations. If bit A is set and bit C is clear, a read ends when a byte that matches the low seven bits of the EOS character is received. If bits A and C are both set, a read ends when a byte that matches all eight bits of the EOS character is received. Configuration bits B and C determine when a write I/O operation asserts the GPIB EOI line. If bit B is set and bit C is clear, EOI is asserted when the written character matches the low seven bits of the EOS character. If bits B and C are both set, EOI is asserted when the written character matches all eight bits of the EOS character. Function Description 21

EARG, EDVR, ENEB, EOIP 2.2.12 ibfind Open and initialize a GPIB board descript. The returned board descript can be used in subsequent calls. ibfind perfms the equivalent of an ibonl 1 to initialize the board descript. The descript returned by ibfind is valid until the board is put offline using ibonl 0. If ibfind is unable to get a valid descript, a -1 is returned; the ERR bit is set in ibsta and iberr contains EDVR. Board level Int ibfind (const char *boardname ) ilfind(byval boardname As String) As Integer call ibfind (ByVal boardname As String, ud As Integer) boardname : the board name, e.g. gpib0. The board descript -1. EBUS, ECIC, EDVR, ENEB 2.2.13 ibgts Set the board from active controller state to Standby Controller state. ibgts causes the GPIB interface to go to Standby Controller and the GPIB ATN line to be unasserted. Board level Int ibgts (int ud, int shadow_handshake) ilgts (ByVal ud As Integer, ByVal v As Integer) As Integer call ibgts (ByVal ud As Integer, ByVal v As Integer) 22 Function Description

v : the board descript determines whether to perfm accept handshaking EADR, EARG, ECIC, EDVR, ENEB, EOIP 2.2.14 ibist Set clear the board individual status (ist) bit f parallel polls. Board level Int ibist ( int ud, int ist ) ilist (ByVal ud As Integer, ByVal v As Integer) As Integer call ibist (ByVal ud As Integer, ByVal v As Integer) v : the board descript indicates whether to set clear the ist bit EARG, EDVR, ENEB, EOIP 2.2.15 iblines Return the status of the GPIB control lines. The low-der byte (bits 0 through 7) of lines indicating the capability of the GPIB interface to sense the status of each GPIB control line. The upper byte (bits 8 through 15) indicates the GPIB control line state infmation. The following is the description of each byte. 7 6 5 4 3 2 1 0 EOI ATN SRQ REN IFC NRFD NDAC DAV To determine if a GPIB control line is asserted, first check the appropriate bit in the lower byte to determine if the line can be monited. If the line can be monited (indicated by a 1 in the appropriate bit position), check the cresponding bit in the upper byte. If the bit is set (1), the cresponding control line is asserted. If the bit is clear (0), the control line is unasserted. Board level Function Description 23

Int iblines( int ud, sht *line_status ) illines(byval ud As Integer, lines As Integer) As Integer call iblines(byval ud As Integer, lines As Integer) line_status : the board descript return GPIB control line state infmation EARG, EDVR, ENEB, EOIP 2.2.16 ibln Checks whether a device is present on the bus. Board / Device level Int ibln( int ud, int pad, int sad, sht *found_listener ) illn (ByVal ud As Integer, ByVal pad As Integer, ByVal sad As Integer, found_listener As Integer) As Integer call ibln (ByVal ud As Integer, ByVal pad As Integer, ByVal sad As Integer, found_listener As Integer) the board device descript. If ud is a board descript, the bus associated with that board is tested f Listeners. If ud is a device descript, ibln uses the access board associated with that device to test f Listeners. If a Listener is detected, a non-zero value is returned in found_listener. If no Listener is found, zero is returned pad : the primary address of the device (a value between 0 and 30). sad : the secondary address of the device (a value between 96 to 126 NO_SAD ALL_SAD, where NO_SAD is no secondary address is to be tested, i.e. only a primary address is tested and ALL_SAD designates that all secondary addresses are to be tested), found_listener : indicates if a device is present 24 Function Description

EARG, ECIC, EDVR, ENEB, EOIP 2.2.17 ibloc F a board, ibloc place the board in local mode, if it is not in a lockout state. The board is in a lockout state if LOK does not appear in the status wd ibsta. If the board is in a lockout state, the call has no effect. The ibloc function is used to simulate a front panel RTL (Return to Local) switch if the computer is used as an instrument. F a device, unless the REN (Remote Enable) line has been unasserted with the ibsre function, all device-level calls automatically place the specified device in remote program mode. ibloc is used to move devices temparily from a remote program mode to a local mode until the next device function is executed on that device. Board / Device level Int ibloc ( int ud ) illoc(byval ud As Integer) As Integer call ibloc (ByVal ud As Integer) the board device descript. EBUS, ECIC, EDVR, ENEB, EOIP 2.2.18 ibonl Resets the board device, sets all its software configuration parameters in their pre-configured state and place the device online offline. If a device an interface is taken offline, the board device descript is no longer valid. You have to call ibdev ibfind to access the board device again. Board / Device level Int ibonl ( int ud, int onl ) Function Description 25

ilonl (ByVal ud As Integer, ByVal onl As Integer) As Integer call ibonl (ByVal ud As Integer, ByVal onl As Integer) the board device descript. onl : online (1) offfline (0). EARG, ENEB 2.2.19 ibnotify Notify user of one me GPIB events by invoking the user specified callback. After an asynchronous I/O operation has completed, resynchronization of the handler is required and the global variables passed into the Callback after I/O has completed contain the status of the I/O operation. Board / Device level Int ibnotify (int ud, int mask, GpibNotifyCallback_t Callback, void *RefData) mask : the board device descript. bit mask of GPIB events. The valid event mask are the following: 0: no mask TIMO : the timeout period (see ibtmo) to limit the notify period END : END EOS is detected SRQI : SRQ is asserted (board-level only) RQS : Device requested service (device-level only) CMP : I/O is complete LOK : GPIB interface is in Lockout State (board-level only) REM : GPIB interface is in Remote State (board-level only) CIC : GPIB interface is CIC (board-level only) ATN : Attention is asserted (board-level only) TACS : GPIB interface is Talker (board-level only) LACS : GPIB interface is Listener (board-level only) DTAS : GPIB interface is in Device Trigger State (board-level only) DCAS: GPIB interface is in Device Clear State (board-level only). If mask is non-zero, ibnotify monits the events specified by mask, and when one me of the events is true, the Callback is invoked. F a board-level ibnotify call, all mask bits are valid except f ERR and RQS. F a device-level ibnotify call, the only valid mask bits are CMPL, TIMO, END, and RQS. If TIMO is set in the notify mask, ibnotify calls the callback function when the timeout period has elapsed, if one me of the other specified events have not already occurred. If TIMO is not 26 Function Description

Callback : RefData : set in the notify mask, the callback is not called until one me of the specified events occur. the address callback function. Callback Prototype f ibnotify int std call Callback (int LocalUd, int LocalIbsta, int LocalIberr, long LocalIbcntl, void *RefData) Callback Parameters LocalUd : Board device descript LocalIbsta : Value of ibsta LocalIberr : Value of iberr LocalIbcntl : Value of ibcntl RefData : User-defined reference data f the callback Callback Return Value Bit mask of the GPIB events to notice next. Possible Err Code EDVR user-defined reference data f the callback. EARG, ECAP, EDVR, ENEB, EOIP 2.2.20 ibpad Set primary GPIB address of a board a device. Board / Device level Int ibpad ( int ud, int v ) ilpad(byval ud As Integer, ByVal v As Integer) As Integer call ibpad(byval ud As Integer, ByVal v As Integer) the board device descript. v : the GPIB primary address. The valid range of value is 0 through 30. EARG, EDVR, ENEB, EOIP 2.2.21 ibsad Function Description 27

Set disable secondary GPIB address of a board a device. Board / Device level Int ibsad( int ud, int v ) ilsad(byval ud As Integer, ByVal v As Integer) As Integer call ibsad (ByVal ud As Integer, ByVal v As Integer) v : the board device descript. set disable the GPIB secondary address. If If v is zero, secondary addressing is disabled. If v is non-zero, the secondary address is enabled and valid range of value is 96 to 126 (0x60 to 0x7E). EARG, EDVR, ENEB, EOIP 2.2.22 ibpct Pass Controller-in-Charge (CIC) status to another GPIB device with Controller capability. The access board automatically unasserts the ATN line and goes to Controller Idle State (CIDS). Device level Int ibpct ( int ud ) ilpct (ByVal ud As Integer) As Integer call ibpct (ByVal ud As Integer) the device descript. EARG, EBUS, ECIC, EDVR, ENEB, EOIP 28 Function Description

2.2.23 ibppc Configure Parallel Polling. If ud is a device descript, ibppc enables disables the device from responding to parallel polls. The device is addressed and sent the appropriate parallel poll message parallel Poll Enable (PPE) Disable (PPD). Valid parallel poll messages are 96 to 126 (hex 60 to hex 7E) zero to send PPD. If ud is a board descript, ibppc perfms a local parallel poll configuration using the parallel poll configuration value v. Valid parallel poll messages are 96 to 126 (hex 60 to hex 7E) zero to send PPD. If no err occurs during the call, iberr contains the previous value of the local parallel poll configuration. Board / Device level Int ibppc ( int ud, int v ) ilppc (ByVal ud As Integer, ByVal v As Integer) As Integer call ibppc (ByVal ud As Integer, ByVal v As Integer) v : the device descript. parallel poll enable/disable value. EARG, EBUS, ECAP, ECIC, EDVR, ENEB, EOIP 2.2.24 ibrd Reads data from a device into the user specified buffer. If ud is a device descript, ibrd addresses the GPIB, reads up to count bytes of data, and places the data into the user buffer. The operation terminates nmally when count bytes have been received END is received. The operation terminates with an err if the transfer could not complete within the timeout period. The actual number of bytes transferred is returned in the global variable ibcntl. If ud is a board descript, ibrd reads up to count bytes of data and places the data into the buffer. A board-level ibrd assumes that the GPIB is already properly addressed. The operation terminates nmally when count bytes have been received END is received. The operation terminates with an err if the transfer could not complete within the timeout period, if the board is not CIC, the CIC sends a Device Clear on the GPIB. The actual number of bytes transferred is returned in the global variable ibcntl. Function Description 29

Board / Device level Int ibrd ( int ud, void *buf, long cnt ) ilrd (ByVal ud As Integer, buf As String, ByVal cnt As Long) As Integer call ibrd (ByVal ud As Integer, buf As String) buf : cnt : the device descript. the buffer to ste the data read from the GPIB. number of bytes to be read from the GPIB. EABO, EADR, EBUS, ECIC, EDVR, ENEB, EOIP 2.2.25 ibrda Reads data asynchronously from a device into the user specified buffer. If ud is a device descript, ibrda addresses the GPIB, reads up to count bytes of data, and places the data into the buffer. The operation terminates nmally when count bytes have been received END is received. The operation terminates with an err if the transfer could not complete within the timeout period. The actual number of bytes transferred is returned in the global variable ibcntl. If ud is a board descript, ibrda reads up to count bytes of data and places the data into the buffer. A board-level ibrda assumes that the GPIB is already properly addressed. The operation terminates nmally when count bytes have been received END is received. The operation terminates with an err if the transfer could not complete within the timeout period, if the board is not CIC, the CIC sends a Device Clear on the GPIB. The actual number of bytes transferred is returned in the global variable ibcntl. The asynchronous I/O calls (ibcmda, ibrda, ibwrta) are designed so that applications can perfm other non-gpib operations while the I/O is in progress. Once the asynchronous I/O has begun, further GPIB calls are strictly limited. Any calls that would interfere with the I/O in progress are not allowed, the driver returns EOIP in this case. Once the I/O is complete, the application must resynchronize with the adlgpib driver. Resynchronization is accomplished by using one of the following three functions: ibwait If the returned ibsta mask has the CMPL bit set, the driver and application are resynchronized. ibnotify If the ibsta value passed to the ibnotify callback contains CMPL, the driver and application are resynchronized. ibstop The I/O is canceled; the driver and application are resynchronized. ibonl The I/O is canceled and the interface is reset; the driver and application are resynchronized. 30 Function Description

Board / Device level Int ibrda ( int ud, void *buf, long cnt ) ilrda (ByVal ud As Integer, buf As String, ByVal cnt As Long) As Integer call ibrda (ByVal ud As Integer, buf As String) buf : cnt : the device descript. the buffer to ste the data read from the GPIB. number of bytes to be read from the GPIB. EABO, EADR, EBUS, ECIC, EDVR, ENEB, EOIP 2.2.26 ibrdf Reads data from a device into a file. If ud is a device descript, ibrdf addresses the GPIB, reads data from a GPIB device, and places the data into the file. The operation terminates nmally when END is received. The operation terminates with an err if the transfer could not complete within the timeout period. The actual number of bytes transferred is returned in the global variable ibcntl. If ud is a board descript, ibrdf reads data from a GPIB device and places the data into the file. A board-level ibrdf assumes that the GPIB is already properly addressed. The operation terminates nmally when END is received. The operation terminates with an err if the transfer could not complete within the timeout period, if the board is not CIC, the CIC sends a Device Clear on the GPIB. The actual number of bytes transferred is returned in the global variable ibcntl. Board / Device level Int ibrdf ( int ud, const char *filename ) ilrdf (ByVal ud As Integer, ByVal filename As String) As Integer call ibrdf (ByVal ud As Integer, ByVal filename As String) filename : the device descript. the name of the file where the read data are sted. Function Description 31

EABO, EADR, EBUS, ECIC, EDVR, EFSO, ENEB, EOIP 2.2.27 ibrpp Perfm a parallel poll. Board / Device level Int ibrpp ( int ud, char *ppr ) ilrpp (ByVal ud As Integer, ppr As Integer) As Integer call ibrpp (ByVal ud As Integer, ppr As Integer) ppr : the device descript. the result of parallel poll. EBUS, ECIC, EDVR, ENEB, EOIP 2.2.28 ibrsc Request release the System Controller capability by sending Interface Clear (IFC) and Remote Enable (REN) messages to devices. If the board releases system control, perfn opertions requiring System Controller capability are not allowed. If the board requests system control, calls operation requiring System Controller capability are subsequently allowed. Board level Int ibrsc ( int ud, int v ) ilrsc (ByVal ud As Integer, ByVal v As Integer) As Integer call ibrsc(byval ud As Integer, ByVal v As Integer) v : the device descript. 0: release system control 32 Function Description

1: request system control. EARG, EDVR, ENEB, EOIP 2.2.29 ibrsp Perfm a serial poll. If bit 6 (hex 40) of the response is set, the device is requesting service. When the automatic serial polling feature is enabled, the device might have already been polled. In this case, ibrsp returns the previously acquired status byte. Device level Int ibrsp ( int ud, char *spr ) ilrsp (ByVal ud As Integer, spr As Integer) As Integer call ibrsp(byval ud As Integer, spr As Integer) spr : the device descript. the result of serial poll. EABO, EARG, EBUS, ECIC, EDVR, ENEB, EOIP, ESTB 2.2.30 ibrsv Request service and change the serial poll status byte. Board level ibrsv ( int ud, int v ) ilrsv (ByVal ud As Integer, ByVal v As Integer) As Integer call ibrsv (ByVal ud As Integer, ByVal v As Integer) Function Description 33

v : the device descript. Serial poll status byte. EARG, EDVR, ENEB, EOIP 2.2.31 ibsic Asserts the GPIB interfaces clear (IFC) line f at least 100 ns if the GPIB interface is System Controller. This initializes the GPIB and makes the interface CIC and Active Controller with ATN asserted. Board level Int ibsic ( int ud ) ilsic (ByVal ud As Integer) As Integer call ibsic (ByVal ud As Integer) the device descript. EARG, EDVR, ENEB, EOIP, ESAC 2.2.32 ibsre Set clear the Remote Enable (REN) line. If remote enable line is set, the GPIB Remote Enable (REN) line is asserted. If remote enable line is cleared, REN is unasserted. REN is used by devices to choose between local and remote modes of operation. A device should not actually enter remote mode until it receives its listen address and REN is asserted. Board level Int ibsre( int ud, int v ) 34 Function Description

ilsre (ByVal ud As Integer, ByVal v As Integer) As Integer call ibsre(byval ud As Integer, ByVal v As Integer) v : the board descript. 0: clear REN line. 1: set REN line EARG, EDVR, ENEB, EOIP, ESAC 2.2.33 ibstop Abt asynchronous mode of I/O operation. If asynchronous I/O is in progress, the err bit is set in the status wd, ibsta, and EABO is returned, indicating that the I/O was successfully stopped. Board / Device level Int ibstop( int ud ) ilstop (ByVal ud As Integer) As Integer call ibstop(byval ud As Integer) the board device descript. EABO, EBUS, EDVR, ENEB 2.2.34 ibtmo Set the timeout period of the board device. The timeout period is the maximum duration allowed f a synchronous I/O operation (f example, ibrd and ibwrt) f an ibwait ibnotify operation with TIMO in the wait mask. If the operation does not complete befe the timeout period elapses, the operation is abted and TIMO is returned in ibsta. Board / Device level Function Description 35

Int ibtmo( int ud, int v ) iltmo (ByVal ud As Integer, ByVal v As Integer) As Integer call ibtmo (ByVal ud As Integer, ByVal v As Integer) the board device descript. v : timeout code. The valid timeout codes are the following: Constant Value of v MinimumTimeout TNONE 0 Disabled - no timeout T10us 1 10 µs T30us 2 30 µs T100us 3 100 µs T300us 4 300 µs T1ms 5 1 ms T3ms 6 3 ms T10ms 7 10 ms T30ms 8 30 ms T100ms 9 100 ms T300ms 10 300 ms T1s 11 1 s T3s 12 3 s T10s 13 10 s T30s 14 30 s T100s 15 100 s T300s 16 300 s T1000s 17 1000 s EARG, EDVR, ENEB, EOIP 2.2.35 ibtrg Send the Group Execute Trigger (GET) message to the device. Device level Int ibtrg ( int ud ) iltrg (ByVal ud As Integer) As Integer call ibtrg(byval ud As Integer) 36 Function Description

the device descript. EARG, EBUS, ECIC, EDVR, ENEB, EOIP 2.2.36 ibwait Monit the events specified by mask and delays processing until one me of the events occurs. If the wait mask is zero, ibwait returns immediately with the updated ibsta. If TIMO is set in the wait mask, ibwait returns when the timeout period has elapsed, if one me of the other specified events have not already occurred. If TIMO is not set in the wait mask, the function waits indefinitely f one me of the specified events to occur. The existing ibwait mask bits are identical to the ibsta bits. If ud is a device descript, the only valid wait mask bits are TIMO, END, RQS, and CMPL. If ud is a board descript, all wait mask bits are valid except f RQS. You can configure the timeout period using the ibtmo function. Board / Device level Int ibwait ( int ud, int mask ) ilwait (ByVal ud As Integer, ByVal mask As Integer) As Integer call ibwait (ByVal ud As Integer, ByVal mask As Integer) the board device descript. mask : GPIB events to wait f. The valid mask codes are listed in the following table: Mask Bit Pos. Hex Description Value ERR 15 8000 GPIB err TIMO 14 4000 Time limit exceeded END 13 2000 GPIB board detected END EOS SRQI 12 1000 SRQ asserted (board only) RQS 11 800 Device requesting service (device only) SPOLL 10 400 The board has been serial polled by thecontroller EVENT 9 200 A DTAS, DCAS, IFC event has occurred CMPL 8 100 I/O completed LOK 7 80 GPIB board is in Lockout State REM 6 40 GPIB board is in Remote State CIC 5 20 GPIB board is CIC ATN 4 10 Attention is asserted TACS 3 8 GPIB board is Talker Function Description 37

LACS 2 4 GPIB board is Listener DTAS 1 2 GPIB board is in Device Trigger State DCAS 0 1 GPIB board is in Device Clear State EARG, EBUS, ECIC, EDVR, ENEB, ESRQ 2.2.37 ibwrt Write data to a device from a data buffer. If ud is a device descript, ibwrt addresses the GPIB and writes count bytes from the memy to a GPIB device. The operation terminates nmally when count bytes have been sent. The operation terminates with an err if count bytes could not be sent within the timeout period. The actual number of bytes transferred is returned in the global variable ibcntl. If ud is a board descript, ibwrt writes count bytes of data from the buffer to a GPIB device; a board-level ibwrt assumes that the GPIB is already properly addressed. The operation terminates nmally when count bytes have been sent. The operation terminates with an err if count bytes could not be sent within the timeout period, if the board is not CIC, the CIC sends Device Clear on the GPIB. The actual number of bytes transferred is returned in the global variable ibcntl. Board / Device level Int ibwrt ( int ud, const void *buf, long count ) ilwrt (ByVal ud As Integer, ByVal buf As String, ByVal cnt As Long) As Integer call ibwrt (ByVal ud As Integer, ByVal buf As String) buf : cnt : device unit descript the buffer contains data bytes to sent number of data bytes to sent EADR, EABO, EBUS, ECIC, EDVR, EOIP, ENEB, ENOL 2.2.38 ibwrta Write data asynchronously to a device from a data buffer. 38 Function Description