Agilent Technologies E2094S Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour Logiciel Agilent Technologies E2094S. Agilent Technologies E2094S User`s guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 146
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Libraries Suite 15.5

Agilent TechnologiesAgilent IO Libraries SuiteE2094SAgilent VISA User’s Guide for IO Libraries Suite 15.5

Page 2

10 Agilent VISA User’s Guide1 IntroductionVISA SupportThis 32-bit version of VISA is supported on Microsoft Windows 2000, Windows XP and Windows Vista

Page 3 - Agilent VISA User’s Guide

100 Agilent VISA User’s Guide4 Programming via GPIB and VXIUsing Low/High-Level Memory I/O MethodsVISA supports three different memory I/O methods for

Page 4 - 4 Agilent VISA User’s Guide

Programming via GPIB and VXI 4Agilent VISA User’s Guide 101• Only one active viMapAddress is allowed per vi session. • There may be a limit to the num

Page 5 - Agilent VISA User’s Guide 5

102 Agilent VISA User’s Guide4 Programming via GPIB and VXIThe disadvantage of viMoveIn/viMoveOut calls is that they have higher initial overhead than

Page 6 - 6 Agilent VISA User’s Guide

Programming via GPIB and VXI 4Agilent VISA User’s Guide 103/* ================================================= Using viPeek ==================

Page 7 - Introduction

104 Agilent VISA User’s Guide4 Programming via GPIB and VXI /* Unmap memory space */ viUnmapAddress (vi); /*===================================

Page 8 - What’s in This Guide?

Programming via GPIB and VXI 4Agilent VISA User’s Guide 105/* Demonstrate block read. Read instrument id register and device type register int

Page 9 - VISA Overview

106 Agilent VISA User’s Guide4 Programming via GPIB and VXIUsing the Memory Access ResourceFor VISA 1.1 and later, the Memory Access (MEMACC) resource

Page 10 - VISA Documentation

Programming via GPIB and VXI 4Agilent VISA User’s Guide 107Although the resource handles the allocation and operation of the window, the programmer mu

Page 11 - Agilent VISA User’s Guide 11

108 Agilent VISA User’s Guide4 Programming via GPIB and VXI ViUInt16*addr16; ViStatusstatus; ViUInt16offset; status = viOpenDefaultRM ( &

Page 12 - Contacting Agilent

Programming via GPIB and VXI 4Agilent VISA User’s Guide 109 /* Print the results. */ printf( "inData16 : 0x%04hx\n", inData16 ); pri

Page 13 - Agilent Technologies

Introduction 1Agilent VISA User’s Guide 11VXIbus Consortium specifications (when using VISA over LAN)TCP/IP Instrument Protocol Specification - VXI-11

Page 14 - Linking to VISA Libraries

110 Agilent VISA User’s Guide4 Programming via GPIB and VXIVXI and GPIB-VXI Specific MEMACC AttributesThe following attributes, most of which are read

Page 15 - Sample VISA Program (C/C++)

Programming via GPIB and VXI 4Agilent VISA User’s Guide 111GPIB-VXI Specific MEMACC AttributesThe following read-only attributes provide specific addr

Page 16

112 Agilent VISA User’s Guide4 Programming via GPIB and VXIMEMACC Resource Event AttributeThe following read-only events provide notification that an

Page 17 - C/C++ Sample Program Contents

Programming via GPIB and VXI 4Agilent VISA User’s Guide 113Using VXI-Specific Attributes VXI-specific attributes can be useful to determine the state

Page 18

114 Agilent VISA User’s Guide4 Programming via GPIB and VXISample: Determining Window MappingViAddr address; Vi UInt16 access; ViUInt16 value; . . .vi

Page 19 - Numeric Arrays

Programming via GPIB and VXI 4Agilent VISA User’s Guide 115The above function sets the VXI trigger line to TTL trigger line 0 (VI_TRIG_TTL0). The foll

Page 20 - Steps to Running the Program

116 Agilent VISA User’s Guide4 Programming via GPIB and VXI

Page 21 - Sample Program Source Code

117Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies5Programming via LANThis chapter provides guidelines for programming via a L

Page 22

118 Agilent VISA User’s Guide5 Programming via LANLAN and Remote Interfaces OverviewThis section provides an overview of LAN (Local Area Network) inte

Page 23 - Sample Program Contents

Programming via LAN 5Agilent VISA User’s Guide 119As shown in the following figure, a remote I/O client (a Windows PC) makes VISA requests over the ne

Page 24 - 24 Agilent VISA User’s Guide

12 Agilent VISA User’s Guide1 IntroductionContacting Agilent• In the USA, you can reach Agilent Technologies by telephone at:USA: 1-800-829-4444 • Out

Page 25 - Logging Error Messages

120 Agilent VISA User’s Guide5 Programming via LAN Windows PCsClientLANRemoteI/OServerSeries 700workstation orWindows PCGPIBbusGPIBInstrumentGPIBInst

Page 26

Programming via LAN 5Agilent VISA User’s Guide 121Addressing LAN-Connected DevicesVISA can communicate with LAN-connected devices in one of two ways:•

Page 27 - Programming with VISA

122 Agilent VISA User’s Guide5 Programming via LANSome examples of TCPIP resource strings follow.Table 28 Example TCPIP Resource StringsString Descrip

Page 28 - VISA Resources and Attributes

Programming via LAN 5Agilent VISA User’s Guide 123Addressing a Session Using the TCPIP Interface TypeThis sample shows one way to open a device sessio

Page 29 - VISA Attributes

124 Agilent VISA User’s Guide5 Programming via LANviClose(defaultRM);Using a Remote Interface for LAN AccessAgilent VISA provides three types of VISA

Page 30 - Using Sessions

Programming via LAN 5Agilent VISA User’s Guide 125Remote USB Interface (USB VISA LAN Client)A remote USB interface can use only the SICL-LAN protocol.

Page 31 - Opening a Session

126 Agilent VISA User’s Guide5 Programming via LAN

Page 32 - 3 Programming with VISA

127Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies6Programming via USBThis chapter provides guidelines for VISA programming of

Page 33 - Addressing a Session

128 Agilent VISA User’s Guide6 Programming via USBUSB Interfaces OverviewUSBTMC/USBTMC-USB488 instruments are detected and automatically configured by

Page 34

Programming via USB 6Agilent VISA User’s Guide 129Communicating with a USB Instrument Using VISATo establish communications with a USB device using VI

Page 35 - Agilent VISA User’s Guide 35

13Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies2Building a VISA Application in WindowsThis chapter provides guidelines for b

Page 36

130 Agilent VISA User’s Guide6 Programming via USBAlthough the case of a VISA alias is preserved, case is ignored when the alias is used in place of t

Page 37 - Searching for Resources

131Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent TechnologiesGlossaryaccess boardThe GPIB interface to which a particular device is conne

Page 38

132 Agilent VISA User’s GuideGlossaryattributeIn VISA and SICL, a value that indicates the operational state of a resource. Some attributes can be cha

Page 39

GlossaryAgilent VISA User’s Guide 133commanderIn test-system architectures, a device that has the ability to control another device. In a specialized

Page 40 - Sending I/O Commands

134 Agilent VISA User’s GuideGlossarydeviceA unit that receives commands from a Controller. A device is typically an instrument, but can also be a com

Page 41 - Using Formatted I/O

GlossaryAgilent VISA User’s Guide 135explorer viewThe tree view within the Connection Expert window that shows all devices connected to a test system.

Page 42

136 Agilent VISA User’s GuideGlossaryinterface messagesGPIB commands encoded as individual bytes. Also called GPIB commands or command bytes.interface

Page 43

GlossaryAgilent VISA User’s Guide 137logical unitA number associated with an interface. A logical unit, in SICL and Agilent VEE, uniquely identifies a

Page 44 - Using Non-Formatted I/O

138 Agilent VISA User’s GuideGlossaryprogramming aliasSee VISA alias.refreshIn Connection Expert, the action that invokes the discovery mechanism for

Page 45

GlossaryAgilent VISA User’s Guide 139secondary VISAA VISA installation that does not install visa32.dll in the standard VISA location. The secondary V

Page 46 - Using Events and Handlers

14 Agilent VISA User’s Guide2 Building a VISA Application in WindowsBuilding a VISA Program (C/C++)This section provides guidelines for building VISA

Page 47 - Events that can be Enabled

140 Agilent VISA User’s GuideGlossarystatus byteA byte of information returned from a remote device that shows the current state and status of the dev

Page 48

GlossaryAgilent VISA User’s Guide 141test systemAn entire test setup including a controller (often a PC), instruments, interfaces, software, and any r

Page 49 - Agilent VISA User’s Guide 49

142 Agilent VISA User’s GuideGlossaryVISA aliasA string that can be used instead of a resource descriptor in VISA programs. Using VISA aliases rather

Page 50

GlossaryAgilent VISA User’s Guide 143Windows notification areaSee notification area.

Page 51 - Agilent VISA User’s Guide 51

144 Agilent VISA User’s GuideGlossary

Page 52

Agilent VISA User’s Guide 145IndexAaddressingaddressing device sessions, 33devices, 33Agilent 488, 131Agilent web site, 12attributessetting VXI tr

Page 53 - Agilent VISA User’s Guide 53

146 Agilent VISA User’s GuideIndexLLANhardware architecture, 118interfaces overview, 118locking, 32, 74locksusing, 74low-level memory functions,

Page 54 - Using the Callback Method

Building a VISA Application in Windows 2Agilent VISA User’s Guide 15• Click at the bottom of the list box and type: C:\Program Files\IVIfoundation\IV

Page 55 - Installing Handlers

16 Agilent VISA User’s Guide2 Building a VISA Application in WindowsAGILENT TECHNOLOGIES,54622A,987654312,A.01.50If the program does not run, see the

Page 56

Building a VISA Application in Windows 2Agilent VISA User’s Guide 17C/C++ Sample Program ContentsA summary of the VISA function calls used in the prec

Page 57

18 Agilent VISA User’s Guide2 Building a VISA Application in WindowsBuilding a VISA Program (Visual Basic)This section provides guidelines for buildin

Page 58

Building a VISA Application in Windows 2Agilent VISA User’s Guide 19VISA cannot call back to a VB function. Thus, you can only use the VI_QUEUE mechan

Page 59

# Agilent VISA User’s GuideNotices© Agilent Technologies, Inc. 71995-1996, 1998, 2000-2009No part of this manual may be reproduced in any form or by a

Page 60

20 Agilent VISA User’s Guide2 Building a VISA Application in WindowsStringsWhen reading in a string value with viVScanf or viVQueryf, you must pass a

Page 61

Building a VISA Application in Windows 2Agilent VISA User’s Guide 21Libraries Suite\ProgrammingSamples\VB6\VISA\idn.5 Select the file idn.bas and clic

Page 62 - Using the Queuing Method

22 Agilent VISA User’s Guide2 Building a VISA Application in WindowsIf the program does not run, see the Event Viewer for a list of run-time errors. T

Page 63 - Enabling Events

Building a VISA Application in Windows 2Agilent VISA User’s Guide 23 Sample Program ContentsA summary of the VISA function calls used in the preceding

Page 64

24 Agilent VISA User’s Guide2 Building a VISA Application in WindowsviOpen This function establishes a communication channel with the device specified

Page 65

Building a VISA Application in Windows 2Agilent VISA User’s Guide 25Logging Error MessagesWhen developing or debugging your VISA application, you may

Page 66

26 Agilent VISA User’s Guide2 Building a VISA Application in Windowsprogram using an application such as Microsoft Visual Studio. In this case, VISA m

Page 67

27Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies3Programming with VISAThis chapter describes how to program with VISA. The ba

Page 68 - Trapping Errors

28 Agilent VISA User’s Guide3 Programming with VISAVISA Resources and AttributesThis section introduces VISA resources and attributes, including:• VIS

Page 69 - Exception Events

Programming with VISA 3Agilent VISA User’s Guide 29VISA AttributesAttributes are associated with resources or sessions. You can use attributes to dete

Page 70

Agilent VISA User’s Guide 3Agilent VISA User’s Guide1 IntroductionWhat’s in This Guide? 8VISA Overview 9Using VISA, VISA COM, and SICL

Page 71

30 Agilent VISA User’s Guide3 Programming with VISAUsing SessionsThis section shows how to use VISA sessions, including:• Including the VISA Declarati

Page 72

Programming with VISA 3Agilent VISA User’s Guide 31Opening a SessionA session is a channel of communication. Sessions must first be opened on the defa

Page 73

32 Agilent VISA User’s Guide3 Programming with VISAYour program may have several sessions open at the same time after creating multiple session identi

Page 74 - Using Locks

Programming with VISA 3Agilent VISA User’s Guide 33The example again uses the session returned from the resource manager, with another VISA address, t

Page 75 - VISA Lock Types

34 Agilent VISA User’s Guide3 Programming with VISAThe following table describes the parameters used above.Table 6 The Format of the rsrcName (VISA Ad

Page 76

Programming with VISA 3Agilent VISA User’s Guide 35Some examples of valid VISA addresses follow.manufacturer ID Manufacturer’s ID for a USB Test &

Page 77

36 Agilent VISA User’s Guide3 Programming with VISAExample: Opening a Session This sample shows one way to open a VISA session with the GPIB device a

Page 78

Programming with VISA 3Agilent VISA User’s Guide 37Closing a SessionYou must use the viClose function to close each session. Closing the specific reso

Page 79

38 Agilent VISA User’s Guide3 Programming with VISAThe parameters are defined as follows.The handle returned from viFindRsrc should be closed to free

Page 80 - General Interface Information

Programming with VISA 3Agilent VISA User’s Guide 39Example: Searching the VXI Interface for Resources This code sample searches the VXI interface for

Page 81 - GPIB Interfaces Overview

4 Agilent VISA User’s GuideClosing a Session 37Searching for Resources 37Sending I/O Commands 40Types of I/O 40Using Non-Formatte

Page 82 - 82350 GPIB Card #2

40 Agilent VISA User’s Guide3 Programming with VISASending I/O CommandsThis section provides guidelines for sending I/O commands, including:• Types of

Page 83 - Agilent VISA User’s Guide 83

Programming with VISA 3Agilent VISA User’s Guide 41Using Formatted I/OAs noted, the VISA formatted I/O functions are viPrintf, viQueryf, and viScanf.•

Page 84 - VXI Interfaces Overview

42 Agilent VISA User’s Guide3 Programming with VISAFormatted I/O BuffersThe VISA software maintains both a read and write buffer for formatted I/O ope

Page 85 - GPIB-VXI Interfaces Overview

Programming with VISA 3Agilent VISA User’s Guide 43Example: Sending and Receiving Formatted I/O The following C sample program demonstrates sending a

Page 86 - GPIB-VXI (E1406A) Interfaces

44 Agilent VISA User’s Guide3 Programming with VISAUsing Non-Formatted I/OThere are two non-buffered, non-formatted I/O functions that synchronously t

Page 87

Programming with VISA 3Agilent VISA User’s Guide 45/*nonfmtio.c This example program measures the AC voltage on a multimeter and prints the results. Y

Page 88 - Programming the Registers

46 Agilent VISA User’s Guide3 Programming with VISAUsing Events and Handlers This section provides guidelines to using events and handlers, including:

Page 89 - Using viIn and viOut

Programming with VISA 3Agilent VISA User’s Guide 47The queuing and callback mechanisms are suitable for different programming styles. The queuing mech

Page 90 - Using viMoveIn and viMoveOut

48 Agilent VISA User’s Guide3 Programming with VISAEvent Attribute Description APData Type RangeVI_ATTR_EVENT_TYPE Unique logical identifier of the ev

Page 91 - Functions

Programming with VISA 3Agilent VISA User’s Guide 49VI_ATTR_RET_COUNT Actual number of elements that were asynchronously transferred.ROViUInt32 0 to FF

Page 92

Agilent VISA User’s Guide 5Using Low-Level viPeek/viPoke 100Using High-Level viIn/viOut 101Using High-Level viMoveIn/viMoveOut 101Using

Page 93

50 Agilent VISA User’s Guide3 Programming with VISATable 12 Memory Access (MEMACC) Resource EventVI_EVENT_IO_COMPLETIONNotification that an asynchrono

Page 94

Programming with VISA 3Agilent VISA User’s Guide 51Event Attribute Description APData Type RangeVI_ATTR_EVENT_TYPE Unique logical identifier of the ev

Page 95 - Mapping Memory Space

52 Agilent VISA User’s Guide3 Programming with VISAEvent Attribute Description APData Type RangeVI_ATTR_EVENT_TYPE Unique logical identifier of the ev

Page 96 - Sample: Using viPeek16

Programming with VISA 3Agilent VISA User’s Guide 53VI_ATTR_EVENT_TYPE Unique logical identifier of the event.ROViEventTypeVI_EVENT_VXI_VME_ SYSFAILVI_

Page 97

54 Agilent VISA User’s Guide3 Programming with VISAExample: Reading Event Attributes Once you have decided which attribute to check, you can read the

Page 98

Programming with VISA 3Agilent VISA User’s Guide 55. . viInstallHandler(vi, VI_EVENT_SERVICE_REQ, my_handler, addr); viEnableEvent(vi, VI_EVENT_SERV

Page 99

56 Agilent VISA User’s Guide3 Programming with VISAThe userHandle parameter allows you to assign a value to be used with the handler on the specified

Page 100 - Using Low-Level viPeek/viPoke

Programming with VISA 3Agilent VISA User’s Guide 57Using VI_QUEUE in the mechanism parameter specifies a queuing method for the events to be handled.

Page 101 - Using High-Level viIn/viOut

58 Agilent VISA User’s Guide3 Programming with VISAExample: Trigger Callback This sample program installs an event handler and enables the trigger ev

Page 102 - Sample: Using VXI Memory I/O

Programming with VISA 3Agilent VISA User’s Guide 59 printf("TTL0"); break; default: printf("<other 0x%x>"

Page 103

6 Agilent VISA User’s Guide

Page 104

60 Agilent VISA User’s Guide3 Programming with VISAExample: SRQ Callback This program installs an event handler and enables an SRQ event. When the ev

Page 105

Programming with VISA 3Agilent VISA User’s Guide 61 printf( "\nStray event of type 0x%lx\n", eventType ); return VI_SUCCESS; } /*

Page 106 - Memory I/O Services

62 Agilent VISA User’s Guide3 Programming with VISA /* Send a bogus command to the message-based device to cause an SRQ. Note: 'IDN' caus

Page 107

Programming with VISA 3Agilent VISA User’s Guide 63• When ready to query, use the viWaitOnEvent function to check for queued events. If the specified

Page 108

64 Agilent VISA User’s Guide3 Programming with VISAWhen you use VI_QUEUE in the mechanism parameter, you are specifying that the events will be put in

Page 109 - MEMACC Attribute Descriptions

Programming with VISA 3Agilent VISA User’s Guide 65Example: Wait on Event for SRQ This example shows how to install a wait on event for service reque

Page 110

66 Agilent VISA User’s Guide3 Programming with VISAvoid main(){ ViSession defaultRM,vi; ViEventType eventType; ViEvent eventVi; ViStatus err;

Page 111

Programming with VISA 3Agilent VISA User’s Guide 67 printf("TTL0"); break; default: printf("<other 0x%x>",trigI

Page 112

68 Agilent VISA User’s Guide3 Programming with VISATrapping ErrorsThis section provides guidelines for trapping errors, including:• Trapping Errors• E

Page 113 - VI_ATTR_WIN_ACCESS Settings

Programming with VISA 3Agilent VISA User’s Guide 69 char err_msg[1024]={0}; viStatusDesc (vi, err, err_msg); printf ("ERROR = %s\n", er

Page 114 - Setting the VXI Trigger Line

7Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies1IntroductionThis Agilent VISA User’s Guide describes the Agilent Virtual Inst

Page 115

70 Agilent VISA User’s Guide3 Programming with VISAException Handling ModelThe exception-handling model follows the event-handling model for callbacks

Page 116 - Programming via GPIB and VXI

Programming with VISA 3Agilent VISA User’s Guide 713 Code in any operation (after calling an exception handler) may not be called if the handler does

Page 117 - Programming via LAN

72 Agilent VISA User’s Guide3 Programming with VISAhandler must be installed and exception events enabled on all sessions where the exception handler

Page 118 - Connection

Programming with VISA 3Agilent VISA User’s Guide 73 status = viOpenDefaultRM( &drm ); if ( status < VI_SUCCESS ) { printf( "ERROR:

Page 119 - Gateway Operation

74 Agilent VISA User’s Guide3 Programming with VISAUsing Locks In VISA, applications can open multiple sessions to a VISA resource simultaneously. App

Page 120 - 5 Programming via LAN

Programming with VISA 3Agilent VISA User’s Guide 75VISA Lock TypesVISA defines two different types of locks: Exclusive Lock and Shared Lock.Exclusive

Page 121

76 Agilent VISA User’s Guide3 Programming with VISASee the VISA Online Help for function descriptions to determine which are applicable for locking an

Page 122

Programming with VISA 3Agilent VISA User’s Guide 77 /* Print results */ printf ("Instrument identification string: %s\n", buf); /* C

Page 123

78 Agilent VISA User’s Guide3 Programming with VISA /* at this time, we can make 'lockkey' available to other processes that we know ab

Page 124

79Agilent IO Libraries SuiteAgilent VISA User’s GuideAgilent Technologies4Programming via GPIB and VXIVISA supports three interfaces you can use to ac

Page 125

8 Agilent VISA User’s Guide1 IntroductionWhat’s in This Guide?This guide shows VISA programming techniques using C/C++ and Visual Basic. This chapter

Page 126

80 Agilent VISA User’s Guide4 Programming via GPIB and VXIGPIB and VXI Interfaces OverviewThis section provides an overview of the GPIB, GPIB-VXI, and

Page 127 - Programming via USB

Programming via GPIB and VXI 4Agilent VISA User’s Guide 81message-based device interprets the SCPI command. In this case you can use the VISA formatte

Page 128 - USB Interfaces Overview

82 Agilent VISA User’s Guide4 Programming via GPIB and VXIExample: GPIB (82350) InterfaceThe GPIB interface system in the following figure consists of

Page 129

Programming via GPIB and VXI 4Agilent VISA User’s Guide 83582350 GPIB Card #1Windows PC33GPIB InstrumentsGPIB CableInterface VISA Names82350 GPIB Card

Page 130 - 6 Programming via USB

84 Agilent VISA User’s Guide4 Programming via GPIB and VXIVXI Interfaces OverviewAs shown in the following figure, a typical VXI (E8491) interface con

Page 131 - Glossary

Programming via GPIB and VXI 4Agilent VISA User’s Guide 85GPIB-VXI Interfaces OverviewAs shown in the following figure, a typical GPIB-VXI interface c

Page 132

86 Agilent VISA User’s Guide4 Programming via GPIB and VXIExample: GPIB-VXI (E1406A) InterfaceThe GPIB-VXI interface system in the following figure co

Page 133

Programming via GPIB and VXI 4Agilent VISA User’s Guide 87The Connection Expert utility has been used to assign the GPIB-VXI driver a VISA name of GPI

Page 134

88 Agilent VISA User’s Guide4 Programming via GPIB and VXIUsing High-Level Memory FunctionsHigh-level memory functions allow you to access memory on t

Page 135

Programming via GPIB and VXI 4Agilent VISA User’s Guide 89Using viIn and viOutWhen using the viIn and viOut high-level memory functions to program to

Page 136

Introduction 1Agilent VISA User’s Guide 9VISA OverviewVISA is an application programming interface (API) for instrument control. It allows you to prog

Page 137

90 Agilent VISA User’s Guide4 Programming via GPIB and VXIThe val32 parameter is a pointer to where the data read will be stored. If instead you write

Page 138

Programming via GPIB and VXI 4Agilent VISA User’s Guide 91The first program uses the VXI interface; the second program accesses the backplane with the

Page 139

92 Agilent VISA User’s Guide4 Programming via GPIB and VXISample: Using GPIB-VXI Interface (High-Level) Memory FunctionsThis program uses high-level m

Page 140

Programming via GPIB and VXI 4Agilent VISA User’s Guide 93 /* Print results */ printf ("ID Register = 0x%4X\n", id_reg); printf (&q

Page 141

94 Agilent VISA User’s Guide4 Programming via GPIB and VXIUsing Low-Level Memory Functions Low-level memory functions allow direct access to memory on

Page 142

Programming via GPIB and VXI 4Agilent VISA User’s Guide 95Mapping Memory SpaceWhen using VISA to access the device's registers, you must map memo

Page 143 - Windows notification area

96 Agilent VISA User’s Guide4 Programming via GPIB and VXI/* Maps to A24 address space */ viMapAddress(vi, VI_A24_SPACE, 0x00, 0x80, VI_FALSE, VI_N

Page 144 - 144 Agilent VISA User’s Guide

Programming via GPIB and VXI 4Agilent VISA User’s Guide 97Low-Level Memory Functions: Code SamplesTwo sample programs follow that use the low-level me

Page 145 - Agilent VISA User’s Guide 145

98 Agilent VISA User’s Guide4 Programming via GPIB and VXI /* Read device type register contents */ /* ViAddr is defined as a void so we must cas

Page 146 - 146 Agilent VISA User’s Guide

Programming via GPIB and VXI 4Agilent VISA User’s Guide 99 /* Open session to VXI device at address 24 */ viOpenDefaultRM(&defaultRM); v

Commentaires sur ces manuels

Pas de commentaire