Programmer’s GuidePublication number 16500-97018First edition, December 1996For Safety information, Warranties, and Regulatoryinformation, see the pag
REName 12–22STORe [:CONFig] 12–23UPLoad 12–24VOLume 12–2513 INTermodule Subsystem:INTermodule 13–5DELete 13–6HTIMe 13–7INPort 13–8INSert 13–9OUTDrive
Figure 7-3Parallel Poll Data StructureStatus ReportingParallel Poll7–10
Polling HP-IB DevicesParallel poll is the fastest means of gathering device status when severaldevices are connected to the bus. Each device (with th
The value of Mask (any numeric expression can be specified) is first roundedand then used to configure the device’s parallel response. The leastsigni
Disabling Parallel Poll ResponsesThe PPU (Parallel Poll Unconfigure) statement gives the controller thecapability of disabling the parallel poll respo
Parallel Poll Enable CommandThe parallel poll enable secondary command (PPE) configures the deviceswhich have received the PPC command to respond to a
8Error Messages
IntroductionThis chapter lists the error messages that relate to the HP 16500CLogic Analysis System.8–2
Device Dependent Errors200 Label not found201 Pattern string invalid202 Qualifier invalid203 Data not available300 RS-232-C errorComman
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
–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
Part 3 Programming Examples15 Programming ExamplesTransferring the Mainframe Configuration 15–3Checking for Intermodule Measurement Completion 15–6S
8–6
Part 29 Common Commands 9-110 Mainframe Commands 10-111 SYSTem Subsystem 11-112 MMEMory Subsystem 12-113 INTermodule Subsystem 13-114 TGTctrl Sub
9Common Commands
IntroductionThe common commands are defined by the IEEE 488.2 standard.These commands must be supported by all instruments that complywith this standa
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
Figure 9-1 Common Commands Syntax DiagramCommon Commands9–4
Table 9-1 Common Command Parameter ValuesParameter Valuesmask An integer, 0 through 255. pre_mask An integer, 0 through 65535.*CLS (Clear Status)Comma
*ESE (Event Status Enable)Command *ESE <mask>The *ESE command sets the Standard Event Status Enable Register bits.The Standard Event Status Enab
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
Contents–8
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
*IDN (Identification Number)Query *IDN?The *IDN? query allows the instrument to identify itself. It returns the string:"HEWLETT-PACKARD,16500C,
Figure 9-2*IST Data StructureCommon Commands*IST (Individual Status)9–10
*OPC (Operation Complete)Command *OPCThe *OPC command will cause the instrument to set the operation completebit in the Standard Event Status Register
*OPT (Option Identification)Query *OPT?The *OPT query identifies the software installed in the HP 16500C. Thisquery returns nine parameters. The fi
*PRE (Parallel Poll Enable Register Enable)Command *PRE <mask>The *PRE command sets the parallel poll register enable bits. The ParallelPoll En
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
*SRE (Service Request Enable)Command *SRE <mask>The *SRE command sets the Service Request Enable Register bits. TheService Request Enable Regis
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
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
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
*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
*WAI (Wait)Command *WAIThe *WAI command causes the device to wait until completing all of theoverlapped commands before executing any further commands
9–20
10Mainframe Commands
IntroductionMainframe commands control the basic operation of the instrumentfor both the HP 16500C mainframe alone or with the HP 16501Aexpansion fram
Figure 10-1Mainframe Commands Syntax DiagramMainframe Commands10–3
Figure 10-1 (continued)Mainframe Commands Syntax Diagram (continued)Mainframe Commands10–4
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
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
CAPabilityQuery :CAPability?The CAPability query returns the IEEE 488.1 "Interface Requirements forDevices" capability sets implemented in t
CARDcageQuery :CARDcage?The CARDcage query returns a series of integers which identify the modulesthat are installed in the mainframe. For an HP 16500
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
CESE (Combined Event Status Enable)Command :CESE <value>The CESE command sets the Combined Event Status Enable register. Thisregister is the en
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
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
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
LOCKoutCommand :LOCKout {{ON|1}|{OFF|0}}The LOCKout command locks out or restores front panel operation. Whenthis function is on, all controls (excep
MENUCommand :MENU <module>[,<menu>]The MENU command puts a menu on the display. The first parameterspecifies the desired module. The optio
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
Example OUTPUT XXX;":MESE1 3"Query :MESE<N>?The query returns the current setting. Table 10-8 lists the Module EventStatus Enable reg
1Introduction to Programming
MESR<N> (Module Event Status Register)Query :MESR<N>? The MESR query returns the contents of the Module Event Status register.The <N>
RMODeCommand :RMODe {SINGle|REPetitive}The RMODe command specifies the run mode for the selected module (orIntermodule). If the selected module is in
RTC (Real-time Clock)Command :RTC <day>,<month>,<year>,<hour>,<minute>,<second>The real-time clock command allows
SELectCommand :SELect <module>The SELect command selects which module (or system) will have parsercontrol. The appropriate module (or system) m
Figure 10-2Select Command TreeOnly available whenan HP 16501A isconnectedMainframe CommandsSELect10–22
SETColorCommand :SETColor {<color>,<hue>,<sat>,<lum>|DEFault}The SETColor command is used to change one of the color selection
Query :SETColor? <color>The SETColor query returns the hue, saturation, and luminosity values for aspecified color. Returned Format [:SETColor]
STOPCommand :STOPThe STOP command stops the selected module (or Intermodule). If thespecified module is in the Intermodule configuration, then the In
XWINdowCommand :XWINdow {{OFF|0} | {ON|1}[,<display>]}The XWINdow command opens or closes a window on an X Window displayserver, that is, a netw
11SYSTem Subsystem
IntroductionThis chapter introduces you to the basics of remote programming andis organized in two sections. The first section, "Talking to the
IntroductionSYSTem subsystem commands control functions that are common tothe entire logic analysis system, including formatting query responsesand en
Figure 11-1System Subsystem Commands Syntax DiagramSYSTem Subsystem11–3
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
DATACommand :SYSTem:DATA <block_data>The DATA command allows you to send and receive acquired data to andfrom a controller in block form. This
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
ERRorQuery :SYSTem:ERRor? [NUMeric|STRing]The ERRor query returns the oldest error from the error queue. The optionalparameter determines whether the
HEADerCommand :SYSTem:HEADer {{ON|1}|{OFF|0}}The HEADer command tells the instrument whether or not to output aheader for query responses. When HEADe
LONGformCommand :SYSTem:LONGform {{ON|1}|{OFF|0}}The LONGform command sets the long form variable, which tells theinstrument how to format query respo
PRINtCommands :SYSTem:PRINt ALL[,DISK, <pathname>[,<msus>]]:SYSTem:PRINt PARTial,<start>,<end>[,DISK, <pathname>[,<ms
Example This instruction prints the screen to the printer:OUTPUT XXX;":SYSTEM:PRINT SCREEN"This instruction prints the entire state listing
Talking to the Logic Analysis SystemIn general, computers acting as controllers communicate with the instrumentby sending and receiving messages over
SETupCommand :SYSTem:SETup <block_data>The :SYSTem:SETup command configures the logic analysis system asdefined by the block data sent by the co
Query :SYSTem:SETup?The SYSTem:SETup query returns a block of data that contains the currentconfiguration to the controller.Returned Format [:SYSTem:S
11–14
12MMEMory Subsystem
IntroductionThe MMEMory (mass memory) subsystem commands provide accessto both the hard and flexible disk drives. The HP 16500C LogicAnalysis System s
Figure 12-1MMEMory Subsystem Commands Syntax DiagramMMEMory Subsystem12–3
Figure 12-1 (Continued)MMEMory Subsystem Commands Syntax Diagram (Continued)MMEMory Subsystem12–4
Figure 12-1 (Continued)MMEMory Subsystem Commands Syntax Diagram (Continued)MMEMory Subsystem12–5
Table 12-1 MMEMory Parameter ValuesParameter Valuesauto_file A string of up to 10 alphanumeric characters for LIF in thefollowing form: "NNNNNNNN
AUToloadCommand :MMEMory:AUToload {{OFF|0}|{<auto_file>}}[,<msus>]The AUToload command controls the autoload feature which designates a se
Talking to Individual System ModulesTalking to individual system modules within the HP 16500C Logic AnalysisSystem is done by preceding the module com
CATalogQuery :MMEMory:CATalog? [[ALL|FULL][,<msus>]]The FULL option is available with version 1.01 or higher of the HP 16500Coperating system o
CD (Change Directory)Command :MMEMory:CD <directory_name> [,<msus>]The CD command allows you to change the current working directory on th
COPYCommand :MMEMory:COPY <name>[,<msus>],<new_name>[,<msus>]The COPY command copies one file to a new file. Wildcards are sup
Example To copy the contents of "FILE1" to "FILE2":OUTPUT XXX;":MMEMORY:COPY ’FILE1’,’FILE2’"To copy the contents of &qu
ExampleOUTPUT XXX;":MMEMORY:DOWNLOAD ’SETUP ’,INTERNAL0,’FILE CREATED FROM SETUPQUERY’,-16127,#800000643..."Table 12-2 File Types File F
IDENtifyCommand :MMEMory:IDENtify? [<msus>]The IDENtify query is available with version 1.01 or higher of the HP 16500Coperating system only.
INITializeCommand :MMEMory:INITialize [{LIF|DOS}[,<msus>]]The INITialize command formats the disk in DOS (Disk Operating System) onthe hard driv
LOAD[:CONFig]Command :MMEMory:LOAD[:CONfig] <name>[,<msus>][,<module>]The LOAD command loads a configuration file from the disk into
LOAD :IASSemblerCommand :MMEMory:LOAD:IASSembler <IA_name>[,<msus>],{1|2}[,<module>]This variation of the LOAD command allows invers
MKDir (Make Directory)Command :MMEMory:MKDir <directory_name> [,<msus>]The MKDir command allows you to make a directory on the hard drive
Example This BASIC statement would load the configuration file "DEFAULT " (if itexists) into the system.OUTPUT XXX;":MMEMORY:LOAD:CONF
MSI (Mass Storage Is)Command :MMEMory:MSI [<msus>]The MSI command selects a default mass storage device. INTernal0 selectsthe hard disk drive a
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
PURGeCommand :MMEMory:PURGe <name>[,<msus>]The PURGe command deletes files and directories from the disk in thespecified drive. The PURge
PWD (Present Working Directory)Query :MMEMory:PWD? [<msus>] The PWD query returns the present working directory for the specified drive.If the &
RENameCommand :MMEMory:REName <name>[,<msus>],<new_name>The REName command renames a file on the drive. The <name> parameters
STORe [:CONFig]Command :MMEMory:STORe[:CONfig] <name>[,<msus>],<description>[,<module>]The STORe command stores configurations
UPLoadQuery :MMEMory:UPLoad? <name>[,<msus>]The UPLoad query uploads a file. The <name> parameter specifies the file tobe uploaded
VOLumeQuery :MMEMory:VOLume? [<msus>]The VOLume query returns the volume type of the disk. The volume typesare DOS or LIF. Question marks (???
12–26
13INTermodule Subsystem
ii
Instruction SyntaxTo program the system remotely, you must have an understanding of thecommand format and structure. The IEEE 488.2 standard governs s
IntroductionThe INTermodule subsystem commands specify intermodule armingfrom the rear-panel input BNC (ARMIN) or to the rear-panel outputBNC (ARMOUT)
Figure 13-1Intermodule Subsystem Commands Syntax DiagramINTermodule Subsystem13–3
Figure 13-1 (continued)Intermodule Subsystem Commands Syntax Diagram (continued)INTermodule Subsystem13–4
Table 13-1 INTermodule Parameter ValuesParameter Valuemodule An integer, 1 through 5 for HP 16500C alone. 1 through 10with the HP 16501A connected.use
DELeteCommand :INTermodule:DELete {ALL|OUT|<module>}The DELete command is used to remove a module, PORT OUT, or an entireintermodule tree from a
HTIMeQuery :INTermodule:HTIMe? The HTIMe query returns a value representing the internal hardware skew inthe Intermodule configuration. If there is n
INPortCommand :INTermodule:INPort {{ON|1}|{OFF|0}}The INPort command causes intermodule acquisitions to be armed from thePort In, the same as Group Ru
INSertCommand :INTermodule:INSert{<module>|OUT},{GROUP|<module>}The INSert command adds a module or PORT OUT to the Intermoduleconfigurati
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
Query :INTermodule:OUTPolar?The OUTPolar query returns the current Port Out polarity setting.Returned Format[:INTermodule:OUTPolar] {1|0}<NL>Exa
Device AddressThe location where the device address must be specified also depends on thehost language that you are using. In some languages, this co
PORTEDGECommand :INTermodule:PORTEDGE <edge_spec>This command does not obey the truncation rules.The PORTEDGE command sets the Port In BNC to re
PORTLEVCommand :INTermodule:PORTLEV {TTL|ECL|<user_lev>}This command does not obey the truncation rules.The PORTLEV (port level) command sets th
SKEW<N>Command :INTermodule:SKEW<N> <setting>The SKEW command sets the skew value for a module. The <N> index valueis the mod
TREECommand :INTermodule:TREE <module>,<module>,<module>,<module>,<module>[,<module>,<module>,<module>
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
TTIMeQuery :INTermodule:TTIMe? The TTIMe query returns five values for the HP 16500C alone or ten with anHP 16501A connected representing the absolute
13–18
14TGTctrl Subsystem
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
Figure 14-1Targetcontrol Subsystem Commands Syntax DiagramTGTctrl Subsystem14–3
When you look up a query in this programmer’s reference, you’ll find aparagraph labeled "Returned Format" under the one labeled "Query.
Figure 14-1 (continued)Targetcontrol Subsystem Commands Syntax DiagramTGTctrl Subsystem14–4
Table 14-1 TGTctrl Parameter ValuesParameter ValueN An integer, 0 through 7, indicating signalbits An integer, 0 though 255state An integer, 0 through
ALLQuery :TGTctrl:ALL<N>?The ALL query returns all parameters of the signal specified by <N>. Thesevalues may be individually queried usi
AVAILableQuery :TGTctrl:AVAILable?This command does not obey the truncation rule.The AVAILable query returns an integer whose binary form indicatesun
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
CURSTateQuery :TGTctrl:CURSTate<N>?This command does not obey the truncation rule.The CURSTate query returns the current state of the specified
LASTstateCommand :TGTctrl:LASTstate<N> <state>The LASTstate command sets a signal’s last state. LASTstate has no effectunless the signal
NAMeCommand :TGTctrl:NAMe<N> <name>The LASTstate command sets a signal name. <N> An integer, 0 through 7, specifying signal.<name
PULseCommand :TGTctrl:PULse<N>This command does not obey the truncation rule.The PULse command pulses the specified signal. If the signal type
SIGSTatusQuery :TGTctrl:SIGSTatus<N>?This command does not obey the truncation rule.The SIGSTatus query returns two values. The first is the cu
Header TypesThere are three types of headers: simple command, compound command,and common command.Simple Command HeaderSimple command headers contain
STATEsCommand :TGTctrl:STATEs<N> <value_0>[,<value_1>,<value_2>,<value_3>,<value_4>,<value_5>,<value_6>
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
TYPeCommand :TGTctrl:TYPe<N> {{TOGgle|0} | {PULse|1} |{SEQuence|2}}The TYPe command sets the signal type for the specified signal. It does nott
Part 315 Programming Examples 15-1Programming Examples
15Programming Examples
IntroductionThis chapter contains short, usable, and tested program examplesthat cover the most frequently requested examples. The examplesare writte
Transferring the Mainframe ConfigurationThis program uses the SYSTem:SETup? query to transfer the configurationof the mainframe to your controller. T
270 ! *********************** SEND THE SETUP QUERY **************************280 OUTPUT 707;":SYSTEM:HEADER ON"290 OUTPUT 707;":S
730 !740 ! ********************* SEND THE SETUP COMMAND **************************750 ! Send the Setup command760 !770 OUTPUT @Comm USING &q
Common Command HeaderCommon command headers control IEEE 488.2 functions within the logicanalyzer such as clear status. The syntax is: *<command h
Checking for Intermodule Measurement CompletionThis program can be appended to or inserted into another program when youneed to know when an intermodu
Sending Queries to the Logic Analysis SystemThis program example contains the steps required to send a query to thelogic analysis system. Sending the
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 !
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
Reading the disk with the CATalog? ALL queryThe following example program reads the catalog of the currently selecteddisk drive. The CATALOG? ALL que
Reading the Disk with the CATalog? QueryThis example program uses the CATALOG? query without the ALL optionto read the catalog of the currently selec
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
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
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
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
Query UsageLogic analysis system instructions that are immediately followed by aquestion mark (?) are queries. After receiving a query, the Logic Ana
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–
© Copyright Hewlett-Packard Company 1987,1990, 1993, 1994, 1996All Rights Reserved.Reproduction, adaptation, ortranslation without priorwritten permis
Product WarrantyThis Hewlett-Packardproduct has a warrantyagainst defects in materialand workmanship for a periodof one year from date ofshipment. Du
Program Header OptionsProgram headers can be sent using any combination of uppercase orlowercase ASCII characters. System responses, however, are alw
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
You may not specify a base in conjunction with either exponents or unitsuffixes. Additionally, negative numbers must be expressed in decimal.When a s
Selecting Multiple SubsystemsYou can send multiple program commands and program queries for differentsubsystems within the same selected module on the
In This BookThis programmer’s guide contains generalinformation, mainframe level commands,and programming examples forprogramming the HP 16500C/16501
Receiving Information from the Logic AnalysisSystemAfter receiving a query (logic analysis system instruction followed bya question mark), the system
Response Header OptionsThe format of the returned ASCII string depends on the current settings ofthe SYSTEM HEADER and LONGFORM commands. The general
Response Data FormatsBoth numbers and strings are returned as a series of ASCII characters, asdescribed in the following sections. Keywords in the da
String VariablesBecause there are so many ways to code numbers, the HP 16500C LogicAnalysis System handles almost all data as ASCII strings. Dependin
Example The following example shows logic analyzer module data being returned to astring variable with headers off:10 OUTPUT XXX;":SYSTEM:HEADER
Example The following example shows logic analyzer module data being returned to anumeric variable.10 OUTPUT XXX;":SYSTEM:HEADER OFF"20 OUTP
For example, for transmitting 80 bytes of data, the syntax would be:Figure 1-2Definite-length Block Response DataThe "8" states the number o
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
1–24
2Programming Over HP-IB
Part 1 Part 1 consists of chapters 1 through 8 and contains generalinformation about programming basics, HP-IB, RS-232-C, and LANinterface requirement
IntroductionThis section describes the interface functions and some generalconcepts of HP-IB. In general, these functions are defined by IEEE488.1 (HP
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
•An instrument, therefore, may be talk-addressed, listen-addressed, orunaddressed by the controller.If the controller addresses the instrument to talk
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
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
3Programming Over RS-232-C
IntroductionThis chapter describes the interface functions and some generalconcepts of RS-232-C. The RS-232-C interface on this instrumentis Hewlett-
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
Minimum Three-Wire Interface with Software ProtocolWith a three-wire interface, the software (as compared to interfacehardware) controls the data flow
Extended Interface with Hardware HandshakeWith the extended interface, both the software and the hardware can controlthe data flow between the Logic A
ContentsPart 1 General Information1 Introduction to ProgrammingIntroduction 1–2Talking to the Logic Analysis System 1–3Talking to Individual System M
lines will disable the Logic Analysis System data transmission. Pulling theCTS line low during data transmission will stop Logic Analysis System datat
HP Vectra Personal Computers and Compatibles Figure 3-2 gives an example of a cable that will work for the extendedinterface with hardware handshake.
Interface CapabilitiesThe baud rate, stop bits, parity, protocol, and data bits must be configuredexactly the same for both the controller and the Log
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
Lockout CommandTo lockout the front-panel controls, use the SYSTem command LOCKout.When this function is on, all controls (except the power switch) ar
4Programming Over LAN
IntroductionThis chapter describes different ways you can program your logicanalysis system over a LAN. There are no commands needed forcontrolling t
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
Password Protection and File ProtectionThere is no protection or security built into the HP 16500C. If you attempt toconnect to the logic analysis sy
Controlling the HP 16500CTo control the HP 16500C Logic Analysis System with programmingcommands, you can either write the commands to \system\program
2 Programming Over HP-IBInterface Capabilities 2–3Command and Data Concepts 2–3Talk/Listen Addressing 2–3HP-IB Bus Addressing 2–4Local, Remote, an
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
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
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
Example The following example in C opens the \system\program file and sendsseveral commands and queries. Responses to queries appear as text stringsi
/*Send command strings to the HP16500*/ file = fopen("/users/system/program", "w"); putstr(file, "*rst\n"); putstr(fi
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
/* Create an endpoint for communication */ sockfd = socket( AF_INET, SOCK_STREAM, 0 ); /* Initiate a connection on the created socket */ conn
Lockout CommandTo lockout the front-panel controls, use the SYSTem command LOCKout.When this function is on, all controls (except the power switch) ar
4–14
5Programming andDocumentation Conventions
5 Programming and Documentation ConventionsTruncation Rule 5–3Infinity Representation 5–4Sequential and Overlapped Commands 5–4Response Generation
IntroductionThis chapter covers the programming conventions used inprogramming the instrument, as well as the documentationconventions used in this ma
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
Infinity RepresentationThe representation of infinity is 9.9E+37 for real numbers and 32767 forintegers. This is also the value returned when a measu
on the entry line. Any combination of commands and arguments that can begenerated by following the lines in the proper direction is syntacticallycorr
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
Figure 5-1HP 16500C Command TreeProgramming and Documentation ConventionsThe Command Tree5–7
Tree Traversal RulesCommand headers are created by traversing down the command tree. Alegal command header from the command tree in figure 5-1 would
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
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
Table 5-1Alphabetic Command Cross-ReferenceCommand Subsystem Command Subsystem Command Subsystem*CLS Common DATA SYSTem PORTEDGE INTermodule*ESE Commo
8 Error MessagesDevice Dependent Errors 8–3Command Errors 8–3Execution Errors 8–4Internal Errors 8–4Query Errors 8–5Part 2 Commands9 Common Comma
Program ExamplesThe program examples in chapter 15, "Programming Examples," were writtenon an HP 9000 Series 300 controller using the HP BAS
6Message Communication andSystem Functions
IntroductionThis chapter describes the operation of instruments that operate incompliance with the IEEE 488.2 (syntax) standard. It is intended togive
ProtocolsThe protocols of IEEE 488.2 define the overall scheme used by the controllerand the instrument to communicate. This includes defining when i
Protocol OverviewThe instrument and controller communicate using program messages andresponse messages. These messages serve as the containers into w
Protocol ExceptionsIf an error occurs during the information exchange, the exchange may not becompleted in a normal manner. Some of the protocol exce
Figure 6-1Example syntax diagramMessage Communication and System FunctionsSyntax Diagrams6–6
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
Figure 6-2<program message> Parse TreeMessage Communication and System FunctionsSyntax Overview6–8
Upper/Lower Case EquivalenceUpper and lower case letters are equivalent. The mnemonic SINGLE hasthe same semantic meaning as the mnemonic single.<
MESE<N> (Module Event Status Enable) 10–16MESR<N> (Module Event Status Register) 10–18RMODe 10–19RTC (Real-time Clock) 10–20SELect 10–2
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
7Status Reporting
IntroductionStatus reporting allows you to use information about the instrument inyour programs, so that you have better control of the measurementpro
Figure 7-1Status Byte Structures and Concepts Status Reporting7–3
Event Status RegisterThe Event Status Register is an IEEE 488.2 defined register. The bits in thisregister are "latched." That is, once an
MSG - messageIndicates whether there is a message in the message queue (Notimplemented in the HP 16500C Logic Analysis System). PON - power onIndicat
LCL - remote to localIndicates whether a remote to local transition has occurred. MSB - module summary bitIndicates that an enable event in one of the
Figure 7-2Service Request EnablingStatus ReportingKey Features7–7
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
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