Agilent Technologies E2094S Guía de usuario

Busca en linea o descarga Guía de usuario para Software Agilent Technologies E2094S. Agilent Technologies E2094S User`s guide Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Libraries Suite 15.5

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 6 - 6 Agilent VISA User’s Guide

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

Pagina 7 - Introduction

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

Pagina 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

Pagina 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

Pagina 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

Pagina 11 - Agilent VISA User’s Guide 11

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

Pagina 12 - Contacting Agilent

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

Pagina 13 - Agilent Technologies

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

Pagina 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

Pagina 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

Pagina 16

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

Pagina 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

Pagina 18

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

Pagina 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

Pagina 20 - Steps to Running the Program

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

Pagina 21 - Sample Program Source Code

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

Pagina 22

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

Pagina 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

Pagina 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

Pagina 25 - Logging Error Messages

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

Pagina 26

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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.

Pagina 31 - Opening a Session

126 Agilent VISA User’s Guide5 Programming via LAN

Pagina 32 - 3 Programming with VISA

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

Pagina 33 - Addressing a Session

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

Pagina 34

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

Pagina 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

Pagina 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

Pagina 37 - Searching for Resources

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

Pagina 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

Pagina 39

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

Pagina 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

Pagina 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.

Pagina 42

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

Pagina 43

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

Pagina 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

Pagina 45

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

Pagina 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

Pagina 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

Pagina 48

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

Pagina 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

Pagina 50

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

Pagina 51 - Agilent VISA User’s Guide 51

144 Agilent VISA User’s GuideGlossary

Pagina 52

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

Pagina 53 - Agilent VISA User’s Guide 53

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

Pagina 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

Pagina 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

Pagina 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

Pagina 57

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 64

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

Pagina 65

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

Pagina 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

Pagina 67

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

Pagina 68 - Trapping Errors

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

Pagina 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

Pagina 70

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

Pagina 71

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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 &

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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.•

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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:

Pagina 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

Pagina 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

Pagina 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

Pagina 92

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

Pagina 93

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

Pagina 94

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

Pagina 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

Pagina 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_

Pagina 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

Pagina 98

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

Pagina 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

Pagina 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.

Pagina 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

Pagina 102 - Sample: Using VXI Memory I/O

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

Pagina 103

6 Agilent VISA User’s Guide

Pagina 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

Pagina 105

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 110

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

Pagina 111

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

Pagina 112

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

Pagina 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

Pagina 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

Pagina 115

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

Pagina 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

Pagina 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

Pagina 118 - Connection

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

Pagina 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

Pagina 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

Pagina 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

Pagina 122

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

Pagina 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

Pagina 124

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 129

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 136

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

Pagina 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

Pagina 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

Pagina 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

Pagina 140

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Comentarios a estos manuales

Sin comentarios