HP Sander 16501A Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Imprimer et scanner HP Sander 16501A. HP Sander 16501A User's Manual Manuel d'utilisatio

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

Résumé du contenu

Page 1

Programmer’s GuidePublication number 16500-97018First edition, December 1996For Safety information, Warranties, and Regulatoryinformation, see the pag

Page 2

REName 12–22STORe [:CONFig] 12–23UPLoad 12–24VOLume 12–2513 INTermodule Subsystem:INTermodule 13–5DELete 13–6HTIMe 13–7INPort 13–8INSert 13–9OUTDrive

Page 3

Figure 7-3Parallel Poll Data StructureStatus ReportingParallel Poll7–10

Page 4

Polling HP-IB DevicesParallel poll is the fastest means of gathering device status when severaldevices are connected to the bus. Each device (with th

Page 5 - Contents

The value of Mask (any numeric expression can be specified) is first roundedand then used to configure the device’s parallel response. The leastsigni

Page 6 - 4 Programming Over LAN

Disabling Parallel Poll ResponsesThe PPU (Parallel Poll Unconfigure) statement gives the controller thecapability of disabling the parallel poll respo

Page 7 - 7 Status Reporting

Parallel Poll Enable CommandThe parallel poll enable secondary command (PPE) configures the deviceswhich have received the PPC command to respond to a

Page 9 - 12 MMEMory Subsystem

IntroductionThis chapter lists the error messages that relate to the HP 16500CLogic Analysis System.8–2

Page 10 - 14 TGTctrl Subsystem

Device Dependent Errors200 Label not found201 Pattern string invalid202 Qualifier invalid203 Data not available300 RS-232-C errorComman

Page 11 - 15 Programming Examples

Execution Errors–200 Can not do (generic execution error)–201 Not executable in local mode–202 Settings lost due to return-to-local or power on–203

Page 12 - Contents–8

–320 ROM error–321 ROM checksum–322 Hardware and firmware incompatible–330 Power on test failed–340 Self Test failed–350 Too many errors (error

Page 13 - General Information

Part 3 Programming Examples15 Programming ExamplesTransferring the Mainframe Configuration 15–3Checking for Intermodule Measurement Completion 15–6S

Page 14

8–6

Page 15 - Introduction to Programming

Part 29 Common Commands 9-110 Mainframe Commands 10-111 SYSTem Subsystem 11-112 MMEMory Subsystem 12-113 INTermodule Subsystem 13-114 TGTctrl Sub

Page 17

9Common Commands

Page 18 - Initialization

IntroductionThe common commands are defined by the IEEE 488.2 standard.These commands must be supported by all instruments that complywith this standa

Page 19

Example This program message initializes the disk, selects the module in slot A,then stores the file. In this example, :MMEMORY must be sent againin

Page 20 - Output Command

Figure 9-1 Common Commands Syntax DiagramCommon Commands9–4

Page 21 - Instructions

Table 9-1 Common Command Parameter ValuesParameter Valuesmask An integer, 0 through 255. pre_mask An integer, 0 through 65535.*CLS (Clear Status)Comma

Page 22 - Instruction Terminator

*ESE (Event Status Enable)Command *ESE <mask>The *ESE command sets the Standard Event Status Enable Register bits.The Standard Event Status Enab

Page 23 - Header Types

Table 9-2 Standard Event Status Enable Register Bit Position Bit Weight Enables7 128 PON - Power On6 64 URQ - User Request5 32 CME - Command Error4 16

Page 25 - Query Usage

Table 9-3 shows the Standard Event Status Register. The table details themeaning of each bit position in the Standard Event Status Register and thebi

Page 26 - Program Header Options

*IDN (Identification Number)Query *IDN?The *IDN? query allows the instrument to identify itself. It returns the string:"HEWLETT-PACKARD,16500C,

Page 27 - Parameter Data Types

Figure 9-2*IST Data StructureCommon Commands*IST (Individual Status)9–10

Page 28

*OPC (Operation Complete)Command *OPCThe *OPC command will cause the instrument to set the operation completebit in the Standard Event Status Register

Page 29 - Selecting Multiple Subsystems

*OPT (Option Identification)Query *OPT?The *OPT query identifies the software installed in the HP 16500C. Thisquery returns nine parameters. The fi

Page 30 - ENTER XXX; Setting

*PRE (Parallel Poll Enable Register Enable)Command *PRE <mask>The *PRE command sets the parallel poll register enable bits. The ParallelPoll En

Page 31 - Response Header Options

Table 9-4 HP 16500C Parallel Poll Enable Register Bit Position Bit Weight Enables15 -8 Not used7 128 Not used6 64 MSS - Master Summary Status5 32 ESB

Page 32 - Response Data Formats

*SRE (Service Request Enable)Command *SRE <mask>The *SRE command sets the Service Request Enable Register bits. TheService Request Enable Regis

Page 33 - String Variables

Table 9-5 HP 16500C Service Request Enable RegisterBit Position Bit Weight Enables15-8 not used7 128 not used6 64 MSS - Master Summary Status (always

Page 34 - Numeric Variables

Table 9-6 The Status Byte RegisterBit Position Bit Weight Bit Name Condition7 128 not used6 64 MSS 0 = instrument has no reason for service1 = instrum

Page 35 - 40 PRINT Rang

Part 11 Introduction to Programming 1-12 Programming Over HP-IB 2-13 Programming Over RS-232-C 3-14 Programming Over LAN 4-15 Programming and Docu

Page 36 - Multiple Queries

*TST (Test)Query *TST?The *TST query returns the results of the power-up self-test. The result ofthat test is a 9-bit mapped value which is placed in

Page 37 - System Status

*WAI (Wait)Command *WAIThe *WAI command causes the device to wait until completing all of theoverlapped commands before executing any further commands

Page 38

9–20

Page 40

IntroductionMainframe commands control the basic operation of the instrumentfor both the HP 16500C mainframe alone or with the HP 16501Aexpansion fram

Page 41 - Talk/Listen Addressing

Figure 10-1Mainframe Commands Syntax DiagramMainframe Commands10–3

Page 42 - HP-IB Bus Addressing

Figure 10-1 (continued)Mainframe Commands Syntax Diagram (continued)Mainframe Commands10–4

Page 43 - Address)

Table 10-1 Mainframe Parameter ValuesParameter Valuesvalue An integer from 0 to 65535module An integer from –2 through 5 for an HP 16500C alone or fr

Page 44 - Bus Commands

BEEPerCommand :BEEPer [{ON|1}|{OFF|0}]The BEEPer command sets the beeper mode, which turns the beeper soundof the instrument on and off. When BEEPer

Page 45 - Programming Over RS-232-C

CAPabilityQuery :CAPability?The CAPability query returns the IEEE 488.1 "Interface Requirements forDevices" capability sets implemented in t

Page 47 - RS-232-C Cables

CARDcageQuery :CARDcage?The CARDcage query returns a series of integers which identify the modulesthat are installed in the mainframe. For an HP 16500

Page 48

Table 10-3 Card Identification NumbersId Number Card1 HP 16515A 1GHz Timing Master Card2 HP 16516A 1GHz Timing Expansion Card4 HP 16517A 4GHz Timing/1

Page 49

CESE (Combined Event Status Enable)Command :CESE <value>The CESE command sets the Combined Event Status Enable register. Thisregister is the en

Page 50 - Cable Examples

Table 10-4 HP 16500C Combined Event Status Enable RegisterBit Weight Enables11-15 not used10 1024 Module in slot J9 512 Module in slot I8 256 Module i

Page 51 - 9-pin (F) to 25-pin (M) Cable

Table 10-5 HP 16500C Combined Event Status RegisterBit Bit Weight Bit Name Condition11-15 not used10 1024 Module J 0 = No new status1 = Status to repo

Page 52

EOI (End Or Identify)Command :EOI {{ON|1}|{OFF|0}}The EOI command specifies whether the last byte of a reply from theHP 16500C is to be sent with the

Page 53 - RS-232-C Bus Addressing

LOCKoutCommand :LOCKout {{ON|1}|{OFF|0}}The LOCKout command locks out or restores front panel operation. Whenthis function is on, all controls (excep

Page 54 - Lockout Command

MENUCommand :MENU <module>[,<menu>]The MENU command puts a menu on the display. The first parameterspecifies the desired module. The optio

Page 55 - Programming Over LAN

Table 10-7 System Menu ValuesMenu Command Parameters MenuMENU 0,0 System Configuration menuMENU 0,1 Hard disk menu MENU 0,2 Flexible disk menuMENU 0,3

Page 56

Example OUTPUT XXX;":MESE1 3"Query :MESE<N>?The query returns the current setting. Table 10-8 lists the Module EventStatus Enable reg

Page 57 - LAN Addressing

1Introduction to Programming

Page 58 - \system directory

MESR<N> (Module Event Status Register)Query :MESR<N>? The MESR query returns the contents of the Module Event Status register.The <N>

Page 59 - Controlling the HP 16500C

RMODeCommand :RMODe {SINGle|REPetitive}The RMODe command specifies the run mode for the selected module (orIntermodule). If the selected module is in

Page 60 - Echoing Commands

RTC (Real-time Clock)Command :RTC <day>,<month>,<year>,<hour>,<minute>,<second>The real-time clock command allows

Page 61 - Copying Command Files

SELectCommand :SELect <module>The SELect command selects which module (or system) will have parsercontrol. The appropriate module (or system) m

Page 62

Figure 10-2Select Command TreeOnly available whenan HP 16501A isconnectedMainframe CommandsSELect10–22

Page 63

SETColorCommand :SETColor {<color>,<hue>,<sat>,<lum>|DEFault}The SETColor command is used to change one of the color selection

Page 64

Query :SETColor? <color>The SETColor query returns the hue, saturation, and luminosity values for aspecified color. Returned Format [:SETColor]

Page 65

STOPCommand :STOPThe STOP command stops the selected module (or Intermodule). If thespecified module is in the Intermodule configuration, then the In

Page 66

XWINdowCommand :XWINdow {{OFF|0} | {ON|1}[,<display>]}The XWINdow command opens or closes a window on an X Window displayserver, that is, a netw

Page 67

11SYSTem Subsystem

Page 68

IntroductionThis chapter introduces you to the basics of remote programming andis organized in two sections. The first section, "Talking to the

Page 69 - Documentation Conventions

IntroductionSYSTem subsystem commands control functions that are common tothe entire logic analysis system, including formatting query responsesand en

Page 70

Figure 11-1System Subsystem Commands Syntax DiagramSYSTem Subsystem11–3

Page 71 - Truncation Rule

Table 11-1 SYSTem Parameter ValuesParameter Valuesblock_data Data in IEEE 488.2 format.string A string of up to 68 alphanumeric characters.pathname A

Page 72 - Syntax Diagrams

DATACommand :SYSTem:DATA <block_data>The DATA command allows you to send and receive acquired data to andfrom a controller in block form. This

Page 73

Query :SYSTem:DATA?The SYSTem:DATA query returns the block data. The data sent by theSYSTem:DATA query reflects the configuration of the selected mod

Page 74 - The Command Tree

ERRorQuery :SYSTem:ERRor? [NUMeric|STRing]The ERRor query returns the oldest error from the error queue. The optionalparameter determines whether the

Page 75 - Figure 5-1

HEADerCommand :SYSTem:HEADer {{ON|1}|{OFF|0}}The HEADer command tells the instrument whether or not to output aheader for query responses. When HEADe

Page 76 - Tree Traversal Rules

LONGformCommand :SYSTem:LONGform {{ON|1}|{OFF|0}}The LONGform command sets the long form variable, which tells theinstrument how to format query respo

Page 77 - DESCRIPTION’"

PRINtCommands :SYSTem:PRINt ALL[,DISK, <pathname>[,<msus>]]:SYSTem:PRINt PARTial,<start>,<end>[,DISK, <pathname>[,<ms

Page 78 - Subsystems

Example This instruction prints the screen to the printer:OUTPUT XXX;":SYSTEM:PRINT SCREEN"This instruction prints the entire state listing

Page 79 - Table 5-1

Talking to the Logic Analysis SystemIn general, computers acting as controllers communicate with the instrumentby sending and receiving messages over

Page 80 - Program Examples

SETupCommand :SYSTem:SETup <block_data>The :SYSTem:SETup command configures the logic analysis system asdefined by the block data sent by the co

Page 81 - System Functions

Query :SYSTem:SETup?The SYSTem:SETup query returns a block of data that contains the currentconfiguration to the controller.Returned Format [:SYSTem:S

Page 82

11–14

Page 83 - Protocols

12MMEMory Subsystem

Page 84

IntroductionThe MMEMory (mass memory) subsystem commands provide accessto both the hard and flexible disk drives. The HP 16500C LogicAnalysis System s

Page 85

Figure 12-1MMEMory Subsystem Commands Syntax DiagramMMEMory Subsystem12–3

Page 86 - Figure 6-1

Figure 12-1 (Continued)MMEMory Subsystem Commands Syntax Diagram (Continued)MMEMory Subsystem12–4

Page 87 - Syntax Overview

Figure 12-1 (Continued)MMEMory Subsystem Commands Syntax Diagram (Continued)MMEMory Subsystem12–5

Page 88 - Figure 6-2

Table 12-1 MMEMory Parameter ValuesParameter Valuesauto_file A string of up to 10 alphanumeric characters for LIF in thefollowing form: "NNNNNNNN

Page 89

AUToloadCommand :MMEMory:AUToload {{OFF|0}|{<auto_file>}}[,<msus>]The AUToload command controls the autoload feature which designates a se

Page 90 - S Second

Talking to Individual System ModulesTalking to individual system modules within the HP 16500C Logic AnalysisSystem is done by preceding the module com

Page 91

CATalogQuery :MMEMory:CATalog? [[ALL|FULL][,<msus>]]The FULL option is available with version 1.01 or higher of the HP 16500Coperating system o

Page 92

CD (Change Directory)Command :MMEMory:CD <directory_name> [,<msus>]The CD command allows you to change the current working directory on th

Page 93 - Figure 7-1

COPYCommand :MMEMory:COPY <name>[,<msus>],<new_name>[,<msus>]The COPY command copies one file to a new file. Wildcards are sup

Page 94 - Bit Definitions

Example To copy the contents of "FILE1" to "FILE2":OUTPUT XXX;":MMEMORY:COPY ’FILE1’,’FILE2’"To copy the contents of &qu

Page 95

ExampleOUTPUT XXX;":MMEMORY:DOWNLOAD ’SETUP ’,INTERNAL0,’FILE CREATED FROM SETUPQUERY’,-16127,#800000643..."Table 12-2 File Types File F

Page 96 - Key Features

IDENtifyCommand :MMEMory:IDENtify? [<msus>]The IDENtify query is available with version 1.01 or higher of the HP 16500Coperating system only.

Page 97 - Figure 7-2

INITializeCommand :MMEMory:INITialize [{LIF|DOS}[,<msus>]]The INITialize command formats the disk in DOS (Disk Operating System) onthe hard driv

Page 98 - Serial Poll

LOAD[:CONFig]Command :MMEMory:LOAD[:CONfig] <name>[,<msus>][,<module>]The LOAD command loads a configuration file from the disk into

Page 99

LOAD :IASSemblerCommand :MMEMory:LOAD:IASSembler <IA_name>[,<msus>],{1|2}[,<module>]This variation of the LOAD command allows invers

Page 100 - Parallel Poll

MKDir (Make Directory)Command :MMEMory:MKDir <directory_name> [,<msus>]The MKDir command allows you to make a directory on the hard drive

Page 101 - Polling HP-IB Devices

Example This BASIC statement would load the configuration file "DEFAULT " (if itexists) into the system.OUTPUT XXX;":MMEMORY:LOAD:CONF

Page 102 - Conducting a Parallel Poll

MSI (Mass Storage Is)Command :MMEMory:MSI [<msus>]The MSI command selects a default mass storage device. INTernal0 selectsthe hard disk drive a

Page 103 - HP-IB Commands

PACKCommand :MMEMory:PACK [<msus>]The PACK command packs the files on the LIF disk the disk in the drive. If aDOS disk is in the drive when the

Page 104

PURGeCommand :MMEMory:PURGe <name>[,<msus>]The PURGe command deletes files and directories from the disk in thespecified drive. The PURge

Page 105 - Error Messages

PWD (Present Working Directory)Query :MMEMory:PWD? [<msus>] The PWD query returns the present working directory for the specified drive.If the &

Page 106 - Introduction

RENameCommand :MMEMory:REName <name>[,<msus>],<new_name>The REName command renames a file on the drive. The <name> parameters

Page 107 - Command Errors

STORe [:CONFig]Command :MMEMory:STORe[:CONfig] <name>[,<msus>],<description>[,<module>]The STORe command stores configurations

Page 108 - Internal Errors

UPLoadQuery :MMEMory:UPLoad? <name>[,<msus>]The UPLoad query uploads a file. The <name> parameter specifies the file tobe uploaded

Page 109 - Query Errors

VOLumeQuery :MMEMory:VOLume? [<msus>]The VOLume query returns the volume type of the disk. The volume typesare DOS or LIF. Question marks (???

Page 110

12–26

Page 111 - Commands

13INTermodule Subsystem

Page 113 - Common Commands

Instruction SyntaxTo program the system remotely, you must have an understanding of thecommand format and structure. The IEEE 488.2 standard governs s

Page 114

IntroductionThe INTermodule subsystem commands specify intermodule armingfrom the rear-panel input BNC (ARMIN) or to the rear-panel outputBNC (ARMOUT)

Page 115 - Status Registers

Figure 13-1Intermodule Subsystem Commands Syntax DiagramINTermodule Subsystem13–3

Page 116 - Figure 9-1

Figure 13-1 (continued)Intermodule Subsystem Commands Syntax Diagram (continued)INTermodule Subsystem13–4

Page 117 - *CLS (Clear Status)

Table 13-1 INTermodule Parameter ValuesParameter Valuemodule An integer, 1 through 5 for HP 16500C alone. 1 through 10with the HP 16501A connected.use

Page 118 - *ESE (Event Status Enable)

DELeteCommand :INTermodule:DELete {ALL|OUT|<module>}The DELete command is used to remove a module, PORT OUT, or an entireintermodule tree from a

Page 119 - *ESR (Event Status Register)

HTIMeQuery :INTermodule:HTIMe? The HTIMe query returns a value representing the internal hardware skew inthe Intermodule configuration. If there is n

Page 120

INPortCommand :INTermodule:INPort {{ON|1}|{OFF|0}}The INPort command causes intermodule acquisitions to be armed from thePort In, the same as Group Ru

Page 121 - *IST (Individual Status)

INSertCommand :INTermodule:INSert{<module>|OUT},{GROUP|<module>}The INSert command adds a module or PORT OUT to the Intermoduleconfigurati

Page 122 - Figure 9-2

OUTDrive Command :INTermodule:OUTDrive {{0|NORMal}|{1|OPENcllctr}}The OUTDrive command sets the Port Out BNC to put out either a normal(TTL-type) or

Page 123 - *OPC (Operation Complete)

Query :INTermodule:OUTPolar?The OUTPolar query returns the current Port Out polarity setting.Returned Format[:INTermodule:OUTPolar] {1|0}<NL>Exa

Page 124 - *OPT (Option Identification)

Device AddressThe location where the device address must be specified also depends on thehost language that you are using. In some languages, this co

Page 125 - *PRE <mask>

PORTEDGECommand :INTermodule:PORTEDGE <edge_spec>This command does not obey the truncation rules.The PORTEDGE command sets the Port In BNC to re

Page 126 - *RST (Reset)

PORTLEVCommand :INTermodule:PORTLEV {TTL|ECL|<user_lev>}This command does not obey the truncation rules.The PORTLEV (port level) command sets th

Page 127 - *SRE (Service Request Enable)

SKEW<N>Command :INTermodule:SKEW<N> <setting>The SKEW command sets the skew value for a module. The <N> index valueis the mod

Page 128 - *STB (Status Byte)

TREECommand :INTermodule:TREE <module>,<module>,<module>,<module>,<module>[,<module>,<module>,<module>

Page 129 - *TRG (Trigger)

Query :INTermodule:TREE?The TREE? query returns a string that represents the intermodule tree. A −1means the module is not in the intermodule tree, a

Page 130 - *TST (Test)

TTIMeQuery :INTermodule:TTIMe? The TTIMe query returns five values for the HP 16500C alone or ten with anHP 16501A connected representing the absolute

Page 132

14TGTctrl Subsystem

Page 133 - Mainframe Commands

IntroductionThe TGTctrl subsystem commands specify the signals put out by theTarget Control Port. Refer to figure 14-1 and table 14-1 for theTGTctrl S

Page 134

Figure 14-1Targetcontrol Subsystem Commands Syntax DiagramTGTctrl Subsystem14–3

Page 135 - Figure 10-1

When you look up a query in this programmer’s reference, you’ll find aparagraph labeled "Returned Format" under the one labeled "Query.

Page 136 - Figure 10-1 (continued)

Figure 14-1 (continued)Targetcontrol Subsystem Commands Syntax DiagramTGTctrl Subsystem14–4

Page 137

Table 14-1 TGTctrl Parameter ValuesParameter ValueN An integer, 0 through 7, indicating signalbits An integer, 0 though 255state An integer, 0 through

Page 138 - :BEEPer?

ALLQuery :TGTctrl:ALL<N>?The ALL query returns all parameters of the signal specified by <N>. Thesevalues may be individually queried usi

Page 139 - CAPability

AVAILableQuery :TGTctrl:AVAILable?This command does not obey the truncation rule.The AVAILable query returns an integer whose binary form indicatesun

Page 140 - CARDcage

BITSCommand :TGTctrl:BITS<N> <mask>The BITS command assigns bits to a signal. A 1 in the mask’s bit positionassigns the bit to the signal

Page 141

CURSTateQuery :TGTctrl:CURSTate<N>?This command does not obey the truncation rule.The CURSTate query returns the current state of the specified

Page 142 - :CESE <value>

LASTstateCommand :TGTctrl:LASTstate<N> <state>The LASTstate command sets a signal’s last state. LASTstate has no effectunless the signal

Page 143

NAMeCommand :TGTctrl:NAMe<N> <name>The LASTstate command sets a signal name. <N> An integer, 0 through 7, specifying signal.<name

Page 144

PULseCommand :TGTctrl:PULse<N>This command does not obey the truncation rule.The PULse command pulses the specified signal. If the signal type

Page 145 - LER (LCL Event Register)

SIGSTatusQuery :TGTctrl:SIGSTatus<N>?This command does not obey the truncation rule.The SIGSTatus query returns two values. The first is the cu

Page 146 - :LOCKout?

Header TypesThere are three types of headers: simple command, compound command,and common command.Simple Command HeaderSimple command headers contain

Page 147

STATEsCommand :TGTctrl:STATEs<N> <value_0>[,<value_1>,<value_2>,<value_3>,<value_4>,<value_5>,<value_6>

Page 148

STEPCommand :TGTctrl:STEP<N>The STEP command sets the specified signal to the next state. If the signaltype is pulse, it briefly pulses the sig

Page 149 - :MESE<N>?

TYPeCommand :TGTctrl:TYPe<N> {{TOGgle|0} | {PULse|1} |{SEQuence|2}}The TYPe command sets the signal type for the specified signal. It does nott

Page 150 - :MESR<N>?

Part 315 Programming Examples 15-1Programming Examples

Page 152 - RTC (Real-time Clock)

15Programming Examples

Page 153 - :SELect?

IntroductionThis chapter contains short, usable, and tested program examplesthat cover the most frequently requested examples. The examplesare writte

Page 154 - Figure 10-2

Transferring the Mainframe ConfigurationThis program uses the SYSTem:SETup? query to transfer the configurationof the mainframe to your controller. T

Page 155 - SETColor

270 ! *********************** SEND THE SETUP QUERY **************************280 OUTPUT 707;":SYSTEM:HEADER ON"290 OUTPUT 707;":S

Page 156 - :SETColor? <color>

730 !740 ! ********************* SEND THE SETUP COMMAND **************************750 ! Send the Setup command760 !770 OUTPUT @Comm USING &q

Page 157 - OUTPUT XXX;":STOP"

Common Command HeaderCommon command headers control IEEE 488.2 functions within the logicanalyzer such as clear status. The syntax is: *<command h

Page 158 - "12.3.47.11:0.0"

Checking for Intermodule Measurement CompletionThis program can be appended to or inserted into another program when youneed to know when an intermodu

Page 159 - SYSTem Subsystem

Sending Queries to the Logic Analysis SystemThis program example contains the steps required to send a query to thelogic analysis system. Sending the

Page 160

310 ! Send the query. In this example the MENU? query is sent. All320 ! queries except the SYSTem:DATA and SYSTem:SETup can be sent with330 !

Page 161 - Figure 11-1

Getting ASCII Data with PRINt? ALL QueryThis program example shows you how to get ASCII data from a listingdisplay, like the disk catalog or state lis

Page 162

Reading the disk with the CATalog? ALL queryThe following example program reads the catalog of the currently selecteddisk drive. The CATALOG? ALL que

Page 163

Reading the Disk with the CATalog? QueryThis example program uses the CATALOG? query without the ALL optionto read the catalog of the currently selec

Page 164 - DSP (Display)

Printing to the diskThis program prints acquired data to a disk file. The file can be either on aLIF or DOS disk. If you print the file to a flexibl

Page 165

Index*CLS command, 9–5*ESE command, 9–6*ESR command, 9–7*IDN command, 9–9*IST command, 9–9*OPC command, 9–11*OPT command, 9–12*PRE command, 9–13*RST c

Page 166 - :SYSTem:HEADer?

DDATA, 11–5Data bits, 3–8level, 4–4mode, 2–3types, 1–13 to 1–14Data Carrier Detect (DCD), 3–5DATA command/query, 11–5Data Communications Equipment,see

Page 167 - LONGform

Module identification number, 10–9Mounting, 4–4MSB, 7–6MSG, 7–5MSI, 12–18MSS, 7–4, 9–16Msus, 12–2Multiple numeric variables, 1–22program commands, 1–1

Page 168 - {BTIF

Query UsageLogic analysis system instructions that are immediately followed by aquestion mark (?) are queries. After receiving a query, the Logic Ana

Page 169 - :SYSTem:PRINt? {SCReen

RReal numbers, 1–14Real-time clock, 10–20Receive Data (RD), 3–4 to 3–5Remote enable (REN), 2–5REName, 12–22Request To Send (RTS), 3–5Response data, 1–

Page 170

© Copyright Hewlett-Packard Company 1987,1990, 1993, 1994, 1996All Rights Reserved.Reproduction, adaptation, ortranslation without priorwritten permis

Page 171 - :SYSTem:SETup?

Product WarrantyThis Hewlett-Packardproduct has a warrantyagainst defects in materialand workmanship for a periodof one year from date ofshipment. Du

Page 172

Program Header OptionsProgram headers can be sent using any combination of uppercase orlowercase ASCII characters. System responses, however, are alw

Page 173 - MMEMory Subsystem

Parameter Data TypesThere are three main types of data which are used in parameters. The typesare numeric, string, and keyword. A fourth type, block d

Page 174

You may not specify a base in conjunction with either exponents or unitsuffixes. Additionally, negative numbers must be expressed in decimal.When a s

Page 175 - Figure 12-1

Selecting Multiple SubsystemsYou can send multiple program commands and program queries for differentsubsystems within the same selected module on the

Page 176 - Figure 12-1 (Continued)

In This BookThis programmer’s guide contains generalinformation, mainframe level commands,and programming examples forprogramming the HP 16500C/16501

Page 177

Receiving Information from the Logic AnalysisSystemAfter receiving a query (logic analysis system instruction followed bya question mark), the system

Page 178

Response Header OptionsThe format of the returned ASCII string depends on the current settings ofthe SYSTEM HEADER and LONGFORM commands. The general

Page 179 - AUToload

Response Data FormatsBoth numbers and strings are returned as a series of ASCII characters, asdescribed in the following sections. Keywords in the da

Page 180

String VariablesBecause there are so many ways to code numbers, the HP 16500C LogicAnalysis System handles almost all data as ASCII strings. Dependin

Page 181 - CD (Change Directory)

Example The following example shows logic analyzer module data being returned to astring variable with headers off:10 OUTPUT XXX;":SYSTEM:HEADER

Page 182

Example The following example shows logic analyzer module data being returned to anumeric variable.10 OUTPUT XXX;":SYSTEM:HEADER OFF"20 OUTP

Page 183 - DOWNload

For example, for transmitting 80 bytes of data, the syntax would be:Figure 1-2Definite-length Block Response DataThe "8" states the number o

Page 184 - Table 12-2 File Types

Example The response of the query :SYSTEM:HEADER?:LONGFORM? with HEADERand LONGFORM turned on is::SYSTEM:HEADER 1;:SYSTEM:LONGFORM 1If you do not need

Page 186 - INITialize

2Programming Over HP-IB

Page 187 - LOAD[:CONFig]

Part 1 Part 1 consists of chapters 1 through 8 and contains generalinformation about programming basics, HP-IB, RS-232-C, and LANinterface requirement

Page 188 - LOAD :IASSembler

IntroductionThis section describes the interface functions and some generalconcepts of HP-IB. In general, these functions are defined by IEEE488.1 (HP

Page 189 - MKDir (Make Directory)

Interface CapabilitiesThe interface capabilities of the HP 16500C, as defined by IEEE 488.1 areSH1, AH1, T5, TE0, L3, LE0, SR1, RL1, PP0, DC1, DT1, C0

Page 190 - MSI (Mass Storage Is)

•An instrument, therefore, may be talk-addressed, listen-addressed, orunaddressed by the controller.If the controller addresses the instrument to talk

Page 191 - :MMEMory:PACK [<msus>]

Example For example, if the instrument address is 4 and the interface select code is 7,the instruction will cause an action in the instrument at devic

Page 192

Bus CommandsThe following commands are IEEE 488.1 bus commands (ATN true). IEEE488.2 defines many of the actions which are taken when these commands

Page 193 - :MMEMory:PWD? [<msus>]

3Programming Over RS-232-C

Page 194

IntroductionThis chapter describes the interface functions and some generalconcepts of RS-232-C. The RS-232-C interface on this instrumentis Hewlett-

Page 195 - STORe [:CONFig]

Interface OperationThe HP 16500C Logic Analysis System can be programmed by a controllerover RS-232-C using either a minimum three-wire or extended ha

Page 196

Minimum Three-Wire Interface with Software ProtocolWith a three-wire interface, the software (as compared to interfacehardware) controls the data flow

Page 197 - {DOS

Extended Interface with Hardware HandshakeWith the extended interface, both the software and the hardware can controlthe data flow between the Logic A

Page 198

ContentsPart 1 General Information1 Introduction to ProgrammingIntroduction 1–2Talking to the Logic Analysis System 1–3Talking to Individual System M

Page 199 - INTermodule Subsystem

lines will disable the Logic Analysis System data transmission. Pulling theCTS line low during data transmission will stop Logic Analysis System datat

Page 200

HP Vectra Personal Computers and Compatibles Figure 3-2 gives an example of a cable that will work for the extendedinterface with hardware handshake.

Page 201 - Figure 13-1

Interface CapabilitiesThe baud rate, stop bits, parity, protocol, and data bits must be configuredexactly the same for both the controller and the Log

Page 202 - Figure 13-1 (continued)

The controller and the HP 16500C Logic Analysis System must be in thesame bit mode to properly communicate over the RS-232-C. This means thatthe cont

Page 203 - :INTermodule

Lockout CommandTo lockout the front-panel controls, use the SYSTem command LOCKout.When this function is on, all controls (except the power switch) ar

Page 204

4Programming Over LAN

Page 205 - :INTermodule:HTIMe?

IntroductionThis chapter describes different ways you can program your logicanalysis system over a LAN. There are no commands needed forcontrolling t

Page 206 - :INTermodule:INPort?

Communicating with the HP 16500CYou can communicate with the HP 16500C in several ways. If you NFSmount your logic analysis system, it behaves like a

Page 207 - :INTermodule:INSert

Password Protection and File ProtectionThere is no protection or security built into the HP 16500C. If you attempt toconnect to the logic analysis sy

Page 208 - OUTDrive

Controlling the HP 16500CTo control the HP 16500C Logic Analysis System with programmingcommands, you can either write the commands to \system\program

Page 209 - :INTermodule:OUTType?

2 Programming Over HP-IBInterface Capabilities 2–3Command and Data Concepts 2–3Talk/Listen Addressing 2–3HP-IB Bus Addressing 2–4Local, Remote, an

Page 210 - PORTEDGE

Echoing CommandsTo send a command directly from the command line or prompt of your PC orworkstation to the HP 16500C system, echo a text string contai

Page 211 - :INTermodule:PORTLEV?

Copying Command FilesTo control the HP 16500C system with longer sets of commands, you can firsttype the commands into an ASCII file. You then copy t

Page 212 - SKEW<N>

Writing to \system\program from a ProgramYou can send commands to the HP 16500C program file from a programrunning on your PC or workstation. The basi

Page 213

Example The following example in C opens the \system\program file and sendsseveral commands and queries. Responses to queries appear as text stringsi

Page 214 - :INTermodule:TREE?

/*Send command strings to the HP16500*/ file = fopen("/users/system/program", "w"); putstr(file, "*rst\n"); putstr(fi

Page 215 - :INTermodule:TTIMe?

Sending Commands to the HP 16500C SocketIf you are programming in C, you can use a socket to communicate with theHP 16500 system. By opening a socket

Page 216

/* Create an endpoint for communication */ sockfd = socket( AF_INET, SOCK_STREAM, 0 ); /* Initiate a connection on the created socket */ conn

Page 217 - TGTctrl Subsystem

Lockout CommandTo lockout the front-panel controls, use the SYSTem command LOCKout.When this function is on, all controls (except the power switch) ar

Page 218

4–14

Page 219 - Figure 14-1

5Programming andDocumentation Conventions

Page 220 - Figure 14-1 (continued)

5 Programming and Documentation ConventionsTruncation Rule 5–3Infinity Representation 5–4Sequential and Overlapped Commands 5–4Response Generation

Page 221 - :TGTctrl

IntroductionThis chapter covers the programming conventions used inprogramming the instrument, as well as the documentationconventions used in this ma

Page 222 - :TGTctrl:ALL<N>?

Truncation RuleThe truncation rule for the keywords used in headers and parameters is:•If the long form has four or fewer characters, there is no chan

Page 223 - AVAILable

Infinity RepresentationThe representation of infinity is 9.9E+37 for real numbers and 32767 forintegers. This is also the value returned when a measu

Page 224 - :TGTctrl:BITS<N>?

on the entry line. Any combination of commands and arguments that can begenerated by following the lines in the proper direction is syntacticallycorr

Page 225 - CURSTate

The Command TreeThe command tree (figure 5-1) shows all commands in the HP 16500C LogicAnalysis System and the relationship of the commands to each ot

Page 226 - LASTstate

Figure 5-1HP 16500C Command TreeProgramming and Documentation ConventionsThe Command Tree5–7

Page 227 - :TGTctrl:NAMe<N>?

Tree Traversal RulesCommand headers are created by traversing down the command tree. Alegal command header from the command tree in figure 5-1 would

Page 228 - :TGTctrl:SIGNal<N>?

Example In the first line of this example, the subsystem selector is implied for theSTORE command in the compound command. The STORE command mustbe i

Page 229 - SIGSTatus

Command Set OrganizationThe command set for the HP 16500C Logic Analysis System mainframe isdivided into 6 separate groups as shown in figure 5-1. Th

Page 230 - :TGTctrl:STATEs<N>?

Table 5-1Alphabetic Command Cross-ReferenceCommand Subsystem Command Subsystem Command Subsystem*CLS Common DATA SYSTem PORTEDGE INTermodule*ESE Commo

Page 231 - :TGTctrl:TOGgle<N>

8 Error MessagesDevice Dependent Errors 8–3Command Errors 8–3Execution Errors 8–4Internal Errors 8–4Query Errors 8–5Part 2 Commands9 Common Comma

Page 232 - :TGTctrl:TYPe<N>?

Program ExamplesThe program examples in chapter 15, "Programming Examples," were writtenon an HP 9000 Series 300 controller using the HP BAS

Page 233 - Programming Examples

6Message Communication andSystem Functions

Page 234

IntroductionThis chapter describes the operation of instruments that operate incompliance with the IEEE 488.2 (syntax) standard. It is intended togive

Page 235

ProtocolsThe protocols of IEEE 488.2 define the overall scheme used by the controllerand the instrument to communicate. This includes defining when i

Page 236

Protocol OverviewThe instrument and controller communicate using program messages andresponse messages. These messages serve as the containers into w

Page 237

Protocol ExceptionsIf an error occurs during the information exchange, the exchange may not becompleted in a normal manner. Some of the protocol exce

Page 238

Figure 6-1Example syntax diagramMessage Communication and System FunctionsSyntax Diagrams6–6

Page 239

Syntax OverviewThis overview is intended to give a quick glance at the syntax defined byIEEE 488.2. It will help you understand many of the things ab

Page 240

Figure 6-2<program message> Parse TreeMessage Communication and System FunctionsSyntax Overview6–8

Page 241

Upper/Lower Case EquivalenceUpper and lower case letters are equivalent. The mnemonic SINGLE hasthe same semantic meaning as the mnemonic single.<

Page 242

MESE<N> (Module Event Status Enable) 10–16MESR<N> (Module Event Status Register) 10–18RMODe 10–19RTC (Real-time Clock) 10–20SELect 10–2

Page 243

Suffix Unit The suffix units that the instrument will accept are shownin table 6-2.Table 6-2<suffix unit> Suffix Referenced UnitV VoltS SecondEx

Page 244

7Status Reporting

Page 245

IntroductionStatus reporting allows you to use information about the instrument inyour programs, so that you have better control of the measurementpro

Page 246 - Printing to the disk

Figure 7-1Status Byte Structures and Concepts Status Reporting7–3

Page 247

Event Status RegisterThe Event Status Register is an IEEE 488.2 defined register. The bits in thisregister are "latched." That is, once an

Page 248

MSG - messageIndicates whether there is a message in the message queue (Notimplemented in the HP 16500C Logic Analysis System). PON - power onIndicat

Page 249

LCL - remote to localIndicates whether a remote to local transition has occurred. MSB - module summary bitIndicates that an enable event in one of the

Page 250

Figure 7-2Service Request EnablingStatus ReportingKey Features7–7

Page 251

Serial PollThe HP 16500C Logic Analysis System supports the IEEE 488.1 serial pollfeature. When a serial poll of the instrument is requested, the RQS

Page 252

After the serial poll is completed, the RQS bit in the Status Byte Register ofthe HP 16500C Logic Analysis System will be reset if it was set. Once

Commentaires sur ces manuels

Pas de commentaire