Measurement-computing GPIB-488 Manuale Utente

Navigare online o scaricare Manuale Utente per Hardware Measurement-computing GPIB-488. Measurement Computing GPIB-488 User Manual Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa

Sommario

Pagina 1 - GPIB-488

GPIB-488GPIB-488 Programming Reference ManualProgramming Reference ManualJuly 2006371930C-01

Pagina 2

GPIB-488 2-1 Programming Reference Manual2Programming with the GPIB LibraryThe GPIB library contains two different and complete GPIB libraries.Origina

Pagina 3 - Conventions

Appendix A Multiline Interface MessagesProgramming Reference Manual A-2 GPIB-48815 21 NAK PPU 35 53 5 MLA2116 22 SYN 36 54 6 MLA2217 23 ETB 37 55 7 ML

Pagina 4

Appendix A Multiline Interface MessagesGPIB-488 A-3 Programming Reference Manual47 71 G MTA7 67 103 g MSA7,PPE48 72 H MTA8 68 104 h MSA8,PPE49 73 I MT

Pagina 5 - Contents

Appendix A Multiline Interface MessagesProgramming Reference Manual A-4 GPIB-48857 87 W MTA23 77 119 w MSA23,PPD58 88 X MTA24 78 120 x MSA24,PPD59 89

Pagina 6 - GPIB 488.2 Library Reference

GPIB-488 B-1 Programming Reference ManualBIBSTAEvery GPIB library routine returns a 16-bit status word to the variable ibsta. This status word describ

Pagina 7 - Contents

Appendix B IBSTAProgramming Reference Manual B-2 GPIB-488Table B-1. Bit DefinitionsBit DescriptionERR GPIB Error. If this bit = 1, an error has occu

Pagina 8 - GPIB Software Overview

Appendix B IBSTAGPIB-488 B-3 Programming Reference ManualRQS Device Requesting Service. If this bit = 1, a device is requesting service. RQS is set in

Pagina 9 - GPIB Library Utility Programs

Appendix B IBSTAProgramming Reference Manual B-4 GPIB-488TACS Talker. If this bit = 1, the GPIB Interface Board has been addressed as a talker. This b

Pagina 10 - Programming with the GPIB

GPIB-488 C-1 Programming Reference ManualCIBERRIf the ERR bit in the status word (ibsta) has been set (= 1), an error code describing the exact error

Pagina 11 - General Concepts

Appendix C IBERRProgramming Reference Manual C-2 GPIB-48820 ETAB The return buffer is full.23 EHDL The input handle is invalidEDVR—Driver errorCause:

Pagina 12 - Device Handles

Appendix C IBERRGPIB-488 C-3 Programming Reference ManualENOL—No listening device(s)Cause: The routine detected no listeners.Solution: Verify the foll

Pagina 13 - Global Variables

Chapter 2 Programming with the GPIB LibraryProgramming Reference Manual 2-2 GPIB-488General ConceptsThis section explains the difference between routi

Pagina 14 - GPIB 488.1 Library Reference

Appendix C IBERRProgramming Reference Manual C-4 GPIB-488EABO—I/O operation abortedCause: I/O operation aborted. (time-out)Solution: Check that the de

Pagina 15

Appendix C IBERRGPIB-488 C-5 Programming Reference ManualEFSO—File system errorCause: A problem was encountered while performing a file operation.Solu

Pagina 16 - Parameters

Appendix C IBERRProgramming Reference Manual C-6 GPIB-488ESRQ—SRQ in "ON" positionCause: A wait for an RQS can not occur because the GPIB SR

Pagina 17

GPIB-488 I-1 Programming Reference ManualIndexNumerics488.1library reference (table), 3-1library routinesIBASK, 3-3options (table), 3-3IBCAC, 3-6IBCLR

Pagina 18

IndexProgramming Reference Manual I-2 GPIB-488TestSys, 4-27Trigger, 4-28TriggerList, 4-29WaitSRQ, 4-30AAllSpoll, 4-2Bbit definitions (table), B-2board

Pagina 19 - Usage Notes

IndexGPIB-488 I-3 Programming Reference ManualIBPPC, 3-32values for P2-P0 (table), 3-32IBRD, 3-34IBRDA, 3-36IBRDF, 3-37IBRPP, 3-39IBRSC, 3-40IBRSP, 3-

Pagina 20

IndexProgramming Reference Manual I-4 GPIB-488supported languages (table), 1-1TTestSRQ, 4-26TestSys, 4-27Trigger, 4-28TriggerList, 4-29Uutility progra

Pagina 21

Chapter 2 Programming with the GPIB LibraryGPIB-488 2-3 Programming Reference ManualBoard l/OIn comparison, the Board I/O routines are low-level routi

Pagina 22 - 10) to listen

Chapter 2 Programming with the GPIB LibraryProgramming Reference Manual 2-4 GPIB-488Global VariablesThe following global variables are used in all pro

Pagina 23

GPIB-488 3-1 Programming Reference Manual3GPIB 488.1 Library ReferenceThis chapter describes each of the 488.1 GPIB library routines. A short descript

Pagina 24 - IBCONFIG

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-2 GPIB-488ibpadChange Primary addressibpctPass ControlibppcParallel Poll Configur

Pagina 25

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-3 Programming Reference ManualIBASKReturns software configuration information.SyntaxC ibask (int boar

Pagina 26

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-4 GPIB-488IbaEOSrd bd/dev0 = ignore EOS char during readsnon zero = terminate rea

Pagina 27 - C int device;

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-5 Programming Reference ManualReturns ibsta will contain a 16-bit status word; refer to Appendix B, I

Pagina 28

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-6 GPIB-488IBCACMakes the specified board the Active Controller.SyntaxC ibcac (int

Pagina 29

© Copyright 1996-2006 by Measurement Computing Corporation’s licensor(s). All rights reserved.Support

Pagina 30

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-7 Programming Reference ManualIBCLRClears a specified device.SyntaxC ibclr (int device)Parametersdev

Pagina 31

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-8 GPIB-488IBCMDSends GPIB commands.SyntaxC ibcmd (int board, char cmnd[], long b

Pagina 32

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-9 Programming Reference ManualExampleThis example prepares the board to talk and addresses three devi

Pagina 33

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-10 GPIB-488IBCMDATransfers GPIB commands asynchronously from a string.SyntaxC ib

Pagina 34

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-11 Programming Reference ManualIBCONFIGChanges configuration parameters.SyntaxC ibconfig (int boardd

Pagina 35

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-12 GPIB-488IbcAUTOPOLL bdEnable/Disable Automatic Serial Polling. If value is 0,

Pagina 36 - C int gpib1;

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-13 Programming Reference ManualReturnsibsta will contain a 16-bit status word as described in Appendi

Pagina 37

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-14 GPIB-488ExampleThis example illustrates how to change the timeout value for GP

Pagina 38

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-15 Programming Reference ManualIBDEVObtains a device handle for a device whose name is unknown. It op

Pagina 39

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-16 GPIB-488ExampleThis example opens an available device, associates it with GPIB

Pagina 40

ConventionsThe following conventions are used in this manual:[ ] Square brackets indicate the key to be pressed.» The » symbol leads you through neste

Pagina 41

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-17 Programming Reference ManualIBDMAEnables/Disables DMA.SyntaxC ibdma (int board, int dma)Parameters

Pagina 42

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-18 GPIB-488IBEOSChanges or disables End-Of-String termination mode.SyntaxC ibeos

Pagina 43

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-19 Programming Reference ManualThis call remains in effect until one of the following occurs:• Anothe

Pagina 44

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-20 GPIB-488IBEOTEnables/Disables assertion of EOI on write operations.SyntaxC ib

Pagina 45

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-21 Programming Reference ManualIBFINDOpens a board or device and returns the handle associated with a

Pagina 46

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-22 GPIB-488IBGTSPuts an Active Controller in Standby mode.SyntaxC ibgts (int boa

Pagina 47

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-23 Programming Reference ManualC int gpib1;gpib1 = ibfind ("GPIB1");ibcmd (gpib1, "?Z+

Pagina 48 - C int dev5;

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-24 GPIB-488IBISTSets/Clears the IST (Individual Status) Bit of the GPIB board for

Pagina 49

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-25 Programming Reference ManualIBLINESReturns the status of the GPIB control lines.SyntaxC iblines (i

Pagina 50

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-26 GPIB-488• IFC = Interface Clear• REN = Remote Enable• SRQ = Service Request• E

Pagina 51

controller is designated at system initialization either through the use of hardware switches or by some type of configuration software, and is not ch

Pagina 52

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-27 Programming Reference ManualIBLNCheck that a device is present on the bus.SyntaxC ibln (int board

Pagina 53

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-28 GPIB-488IBLOCForces the specified board/device to go to local program mode.Syn

Pagina 54

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-29 Programming Reference ManualIBONLEnables/Disables a device/interface board for operation.SyntaxC i

Pagina 55

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-30 GPIB-488IBPADChanges the primary address assigned to a device or interface boa

Pagina 56

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-31 Programming Reference ManualIBPCTPasses control to another device.SyntaxC ibpct (int device)Param

Pagina 57

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-32 GPIB-488IBPPCEnables/Disables parallel polling of the specified device.SyntaxC

Pagina 58

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-33 Programming Reference ManualFor example, if the PPE byte 01101011 (hex 6B) is sent, the device wil

Pagina 59

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-34 GPIB-488IBRDReads data from a device/interface board into a string.SyntaxC ib

Pagina 60

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-35 Programming Reference ManualExampleThis example reads 90 characters of data from a device at PAD 5

Pagina 61 - C int plotter;

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-36 GPIB-488IBRDAReads data asynchronously from a device/interface board into a st

Pagina 62

GPIB-488 v Programming Reference Manual ContentsChapter 1GPIB Software OverviewSupported Languages...

Pagina 63

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-37 Programming Reference ManualIBRDFReads data from the GPIB into a file.SyntaxC ibrdf (int boarddev

Pagina 64

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-38 GPIB-488ExampleThis program sends the command "DUMP" to a device. Th

Pagina 65

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-39 Programming Reference ManualIBRPPInitiates a parallel poll.SyntaxC ibrpp (int boarddev, char *com

Pagina 66 - C int ptr;

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-40 GPIB-488IBRSCRequest/Release System Control.SyntaxC ibrsc (int board, int cont

Pagina 67

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-41 Programming Reference ManualIBRSPSerial polls a device.SyntaxC ibrsp (int device, char *serialpoll

Pagina 68

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-42 GPIB-488IBRSVChanges the serial poll response byte.SyntaxC ibrsv (int board,

Pagina 69

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-43 Programming Reference ManualIBSADAssigns/unassigns a secondary address to a board or device.Syntax

Pagina 70 - AllSpoll

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-44 GPIB-488IBSICAsserts IFC (Interface Clear) signal. This re-initializes the GPI

Pagina 71 - DevClear

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-45 Programming Reference ManualIBSREAsserts/Unasserts the REN (Remote Enable) line.SyntaxC ibsre (int

Pagina 72 - DevClearList

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-46 GPIB-488IBSTOPTerminate an asynchronous operation.SyntaxC ibstop (int boarddev

Pagina 73 - EnableLocal

ContentsProgramming Reference Manual vi GPIB-488IBPAD ...

Pagina 74 - EnableRemote

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-47 Programming Reference ManualIBTMOChanges timeout value.SyntaxC int ibtmo (int boarddev, int timeou

Pagina 75 - FindLstn

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-48 GPIB-488The new timeout is used until it is redefined (by calling ibtmo again)

Pagina 76

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-49 Programming Reference ManualIBTRGTriggers the specified device.SyntaxC ibtrg (int device)Parameter

Pagina 77 - PassControl

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-50 GPIB-488IBWAITForces application program to wait for a specified event(s) to o

Pagina 78 - Usage notes

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-51 Programming Reference ManualExampleThis example forces your program to wait indefinitely for the s

Pagina 79 - PPollConfig

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-52 GPIB-488IBWRTWrites data from a string to the specified device or GPIB Interfa

Pagina 80 - PPollUnconfig

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-53 Programming Reference ManualIf you want to send an EOS character at the end of the data string, yo

Pagina 81 - RcvRespMsg

Chapter 3 GPIB 488.1 Library ReferenceProgramming Reference Manual 3-54 GPIB-488IBWRTAWrites data asynchronously from a string to the specified device

Pagina 82 - ReadStatusByte

Chapter 3 GPIB 488.1 Library ReferenceGPIB-488 3-55 Programming Reference ManualIBWRTFWrites data from a file to the specified device or GPIB Interfac

Pagina 83

GPIB-488 4-1 Programming Reference Manual4GPIB 488.2 Library ReferenceThis chapter describes each of the 488.2 GPIB library routines. A short descript

Pagina 84 - ReceiveSetup

ContentsGPIB-488 vii Programming Reference ManualSendList ...

Pagina 85 - ResetSys

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-2 GPIB-488AllSpollPerforms a serial poll on specified devices.SyntaxC AllSpoll (i

Pagina 86

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-3 Programming Reference ManualDevClearClears one device.SyntaxC DevClear(int board, short address)Par

Pagina 87 - SendCmds

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-4 GPIB-488DevClearListClears specified devices.SyntaxC DevClearList(int board, sh

Pagina 88 - SendDataBytes

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-5 Programming Reference ManualEnableLocalPlaces specified devices in local mode (Can be "program

Pagina 89

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-6 GPIB-488EnableRemoteAllow remote programming (by sending messages over the GPIB

Pagina 90 - SendList

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-7 Programming Reference ManualFindLstnFinds all listeners on the GPIB.SyntaxC FindLstn(int board, sho

Pagina 91

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-8 GPIB-488FindRQSIdentify the device requesting service.SyntaxC FindRQS(int board

Pagina 92 - SendSetup

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-9 Programming Reference ManualPassControlMakes another device the Active Controller.SyntaxC PassContr

Pagina 93

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-10 GPIB-488PpollPerforms a parallel poll.SyntaxC PPoll(int board, short *result)P

Pagina 94

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-11 Programming Reference ManualPPollConfigConfigures a device for parallel polls.SyntaxC PPollConfig(

Pagina 95

GPIB-488 1-1 Programming Reference Manual1GPIB Software OverviewThe GPIB software includes the 488.1 library, the 488.2 library, and a set of utility

Pagina 96

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-12 GPIB-488PPollUnconfigUnconfigures devices for parallel polls.SyntaxC PPollUnco

Pagina 97 - TriggerList

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-13 Programming Reference ManualRcvRespMsgReads data from a previously addressed device.SyntaxC RcvRes

Pagina 98

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-14 GPIB-488ReadStatusByteSerial poll a single device and read its status byte.Syn

Pagina 99 - Multiline Interface Messages

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-15 Programming Reference ManualReceiveReads data from a GPIB device.SyntaxC Receive(int board, int ad

Pagina 100

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-16 GPIB-488ReceiveSetupAddress a GPIB Interface Board as a Listener and a GPIB de

Pagina 101

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-17 Programming Reference ManualResetSysInitializes GPIB System.SyntaxC ResetSys(int board, short addr

Pagina 102

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-18 GPIB-488SendSends data to one GPIB device.SyntaxC Send (int board, short addre

Pagina 103

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-19 Programming Reference ManualSendCmdsSend GPIB commands.SyntaxC SendCmds (int board, char commands[

Pagina 104 - Table B-1. Bit Definitions

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-20 GPIB-488SendDataBytesSends data to previously addressed devices.SyntaxC SendDa

Pagina 105 - Appendix B IBSTA

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-21 Programming Reference ManualSendIFCClears the GPIB bus by asserting the IFC (Interface Clear) line

Pagina 106

Chapter 1 GPIB Software OverviewProgramming Reference Manual 1-2 GPIB-488GPIB Library Utility ProgramsThe following utility programs are installed wit

Pagina 107 - Table C-1. Error codes

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-22 GPIB-488SendListSends data to multiple GPIB devices.SyntaxC SendList(int board

Pagina 108 - Appendix C IBERR

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-23 Programming Reference ManualSendLLOSends Local Lockout (LLO) message to all GPIB devices.SyntaxC S

Pagina 109

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-24 GPIB-488SendSetupAddresses a GPIB board as a Talker and the specified GPIB dev

Pagina 110

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-25 Programming Reference ManualSetRWLSPuts all devices in Remote state with Local Lockout and address

Pagina 111

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-26 GPIB-488TestSRQEvaluate state of SRQ line.SyntaxC TestSRQ(int board, short *re

Pagina 112 - FindLstn, this is a warning

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-27 Programming Reference ManualTestSysActivate self-test procedures of specified devices.SyntaxC Send

Pagina 113 - Numerics

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-28 GPIB-488TriggerTriggers one device.SyntaxC Trigger(int board, short address)Pa

Pagina 114

Chapter 4 GPIB 488.2 Library ReferenceGPIB-488 4-29 Programming Reference ManualTriggerListTriggers multiple GPIB devicesSyntaxC void TriggerList(int

Pagina 115

Chapter 4 GPIB 488.2 Library ReferenceProgramming Reference Manual 4-30 GPIB-488WaitSRQWait until a device asserts SRQ.SyntaxC WaitSRQ(int board, shor

Pagina 116

GPIB-488 A-1 Programming Reference ManualAMultiline Interface MessagesTable A-1. Multiline Interface Messages (Hex 00-3F)HEX DEC ASCII MSG HEX DEC AS

Commenti su questo manuale

Nessun commento