Agilent 4352B VCO/PLL Signal Analyzer GPIB Programming Manual SERIAL NUMBERS This manual applies directly to instruments with serial number pre x JP2KE. For additional important information about serial numbers, read \Serial Number" in Appendix A. Agilent Part No.
Notice The information contained in this document is subject to change without notice. This document contains proprietary information that is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated to another language without the prior written consent of the Agilent Technologies. Agilent Technologies Japan, Ltd. Component Test PGU-Kobe 1-3-2, Murotani, Nishi-ku, Kobe-shi, Hyogo, 651-2241 Japan R MS-DOS is a U.S.
Manual Printing History June 1997 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : First Edition (part number: March 1998 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Second Edition (part number: July 1999 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Third Edition (part number: December 1999 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Fourth Edition (part number:
Symbols General de nitions of symbols used on equipment or in manuals: Warning denotes a hazard. It calls attention to a procedure, practice, condition or the like, which, if not correctly performed or adhered to, could result in injury or death to personnel. Caution denotes a hazard. It calls attention to a procedure, practice, condition or the like, which, if not correctly performed or adhered to, could result damage to or destruction of part or all of the product. Note denotes important information.
Typeface Conventions Bold Italics Computer 4HARDKEYS5 NNNNNNNNNNNNNNNNNNNNNNNNNN SOFTKEYS Boldface type is used when a term is de ned. For example: icons are symbols. Italic type is used for emphasis and for titles of manuals and other publications. Italic type is also used for keyboard entries when a name or a variable must be typed in place of the words in italics. For example: copy lename means to type the word copy, to type a space, and then to type the name of a le such as file1.
Documentation Map The following manuals are available for the analyzer: Function Reference The Function Reference describes all functions accessed from the front panel keys and softkeys. It also provides information on options and accessories available, speci cations, system performance, and conceptual information about the analyzer's features GPIB Programming Manual The GPIB Programming Manual describes basic programming methods when remotely controlling the analyzer using the GPIB.
Precautions Removing Unwanted Components from Signal The presence of undesired components picked up while the signal passes from the device to the 4352B can result in reduced accuracy in measurement. When connecting a device to the 4352B, take one of the following measures to eliminate these components: The 4352B employs the peak detection method to measure RF power. Therefore, the presence of higher harmonics in the signal makes it extremely di cult to correctly measure RF power.
0 Using a Sample Program Disk A sample program disk is furnished with 4352B. This disk contains the sample programs listed in this manual. Note If you are going to use HP instrument BASIC, you must rst allocate the 4352B's display format to BASIC display by pressing 4Display5, MORE and HALF INSTR HALF BASIC or ALL BASIC . See the HP instrument BASIC Users Handbook Supplement for additional information.
To Get a Program To get the program use the GET command. For example, to get the sample program FIG4_2: 1. Type as follows: d GET "FIG4_2.TXT" 2. Press 4Return5. Screen Setup for Sample Program Execution The statements INPUT and PRINT used in the sample programs are valid only when the BASIC display is selected. Therefore, you must perform the following setups before you execute a sample program.
Contents 0. Using a Sample Program Disk To Check the Files List . . . . . . . . . . . . . . . . . . . . . . . . . . . . To Get a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Screen Setup for Sample Program Execution . . . . . . . . . . . . . . . . . 0-1 0-2 0-2 1. Overview of GPIB Remote Control System Required Equipment . . . . . . . . . . . . . . To Prepare for GPIB Control . . . . . . . . . . GPIB Commands Introduction . . . . . . . . . To Execute an GPIB Command . . . . . . . .
Return to Execute GPIB command . . . . . . . . . . . . . . . . . . . . . 4. Loading Measurement Data into Controller Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Loading Measurement Data in Tester Mode (When the 4352B's External Signal Source Automatic Control Function Is Not Used) . . . . . . . . . . . . . Transferring Data in ASCII Format . . . . . . . . . . . . . . . . . . . . Setting Tester Mode . . . . . . . . . . . . . . . . . . . . . . . . . .
6. Remote Controlling HP instrument BASIC To Control GPIB from HP instrument BASIC . . . . . . . . . . . . . . . . To Execute an HP instrument BASIC Command From the External Controller. To Run an HP instrument BASIC Program From the External Controller . . . Open the HP instrument BASIC Editor . . . . . . . . . . . . . . . . . Transfer the HP instrument BASIC Program . . . . . . . . . . . . . . . Close the HP instrument BASIC Editor . . . . . . . . . . . . . . . . . Run the HP instrument BASIC Program . .
FBANDt . . . . . . . . . . FCOUNtfRES1KHZjRES64KHZg . . . . HOLD . . . . . . . . . . . . . . . . . INPUDATAt . . . . . . . . LCOMPtfOFFj0jONj1g . . . . . . . . . LOAUTOtfOFFjONj0j1g . . . . . . . . LOFREQ? . . . . . . . . . . . . . . . LOSSt . . . . . . . . . . . LOSWTt . . . . . . . . . . MATHtfDATAjDPLMjDMNMjDDVMg . . MAXVCTRLt . . . . . . . . MEAStfPOWEjFREQjCURRjFMDEVjCNg MINVCTRLt . . . . . . . . MODAMPt . . . . . . . . .
CARR? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CENTt . . . . . . . . . . . . . . . . . . . . . . . . . . . . CLRSMKRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CNBWt . . . . . . . . . . . . . . . . . . . . . . . . . . . . CNPLLtfAUTOjWIDEg . . . . . . . . . . . . . . . . . . . . . . . . . . . CONT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CTRLDLYt . . . . . . . . . . . . . . . . . . . . . . . . . . .
MKRPRM? . . . . . . . . . . . . . . . MKRREF . . . . . . . . . . . . . . . MKRSTAR . . . . . . . . . . . . . . . MKRSTOP . . . . . . . . . . . . . . . MKRTHRE . . . . . . . . . . . . . . MKRVAL? . . . . . . . . . . . . . . . MKRVCTRL . . . . . . . . . . . . . . MODAMPt . . . . . . . . . MODOtfOFFj0jONj1g . . . . . . . . . NATTt . . . . . . . . . . . NOMFREQt . . . . . . . . OUTPDATA? . . . . . . . . . . . . . . OUTPDATAP?t . . . . . . . OUTPDMKR? . . . . . . . . . . . . .
SLOPEt . . . . . . . . . SMKRf1-4gtfOFFj0jONj1g . . . . . . SMKRPf1-4gt . . . . . . SMKRPf1-4g? . . . . . . . . . . . . SMKRVALf1-4g? . . . . . . . . . . . SPANt . . . . . . . . . . STARt . . . . . . . . . . STOPt . . . . . . . . . . SWETt . . . . . . . . . SWPTtfLOGFjLINFg . . . . . . . . . TRACKtfOFFj0jONj1g . . . . . . . . TRGOUTtfOFFj0jONj1g . . . . . . . TRGPtfPOSjNEGg . . . . . . . . . . TRGStfINTjEXTjBUSjMANjVALg . . . TRGVALt . . . . . .
DSKEY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ENKEY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ESB? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ESNBt . . . . . . . . . . . . . . . . . . . . . . . . FILCt,,, . . . . . . . . . . . . . . . . . . . FNAME?t . . . . . . . . . . . . . . . . . . . . . . FNUM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PRICVARI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRINALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRSOFTtfOFFj0jONj1g . . . . . . . . . . . . . . . . . . . . . . . . . PURGt . . . . . . . . . . . . . . . . . . . . . . . . . . . READ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RECC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RECDt . . . .
:PROGram[:SELected]:NUMBert,[,[, . . . [,] . . . . . . . . . . . . . . . . . . . . . . . . . . . . :PROGram[:SELected]:STATetfRUNjPAUSejSTOPjCONTinueg . . . . . . . . . :PROGram[:SELected]:STRingt,[,[, . . . [, . . . . . . . . . :PROGram[:SELected]:WAIT . . . . . . . . . . . . . . . . . . . . . . . . :PROGram:EXPLicit:DEFinet\PROG", . . . . . . . . . . . . . . .
Limit Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Application in the Analyzer Mode (Post-tuning Drift Characteristics Measurement) Application in the Analyzer Mode (Automatic Measurement of All the 4352B's Measurement Parameters) . . . . . . . . . . . . . . . . . . . . . . . . . External Controller Side . . . . . . . . . . . . . . . . . . . . . . . . . . 4352B Side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Transfer Function . . . . . . . . . . . . . . . .
Messages Error Messages in Alphabetical Order . . . . . . . . . . . . . . . . . . . .Messages-2 . Error Messages in Numerical Order . . . . . . . . . . . . . . . . . . . . Messages-16 . .
Figures 1-1. 1-2. 1-3. 2-1. 2-2. 2-3. 2-4. 2-5. 3-1. 3-2. 3-3. 3-4. 3-5. 3-6. 4-1. 4-2. 4-3. 4-4. 4-5. 4-6. 4-7. 4-8. 4-9. 4-10. 4-11. System Con guration for GPIB Remote Control . . . . . . . . . . . . . . . 1-2 Program Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Sample Program: Basic Measurement . . . . . . . . . . . . . . . . . . . . 1-6 Trigger System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Sample Program: To Trigger Measurements Continuously . . . . .
5-1. Sample Program : To Observe Printing . . . . . . . . . . . . . . . . . . . 6-1. Pass Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2. Sample Program: To Receive the Active Controller Capability (On HP instrument BASIC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3. Sample Program: To Run the HP instrument BASIC Program From the External Controller (On the External Controller) . . . . . . . . . . . . . . . . . 6-4.
12-26. Connection of DUT PLL (Parallel Data) . . . . . . . . . . . . . . . . . . . 12-27. Sample Program: Transient Measurement Using the Trigger Detection Output Function (Parallel; 4/4) . . . . . . . . . . . . . . . . . . . . . . . . . 12-28. Sample Program: Using the Value Trigger Function - 1 (Serial Data; 6/6) . . . . 12-29. Sample Program: Using the Value Trigger Function - 2 (Parallel Data; 4/4) . . . 12-30. Sample Program: Application in the Analyzer Mode (Setting Limit Lines) . . . 12-31.
Tables 8-1. Status Bit De nition of the Status Byte (STB) . . . . . . . . . . . . . . . 8-2. Status Bit De nition of the Standard Event Status Register(ESR) . . . . . . 8-3. The Status Bit De nition of Event Status Register B (ESB)(Instrument Event Status Register) . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4. The status Bit De nition of Operation Status Register (OSR) . . . . . . . . A-1. Manual Changes by Serial Number . . . . . . . . . . . . . . . . . . . . A-2.
1 Overview of GPIB Remote Control System This chapter provides information on how to con gure the GPIB remote-control system and the basic use of the GPIB commands. In most of the sample programs shown in this manual, simple GPIB commands are used. For detailed information about each command, see chapters 9 to 11. What is GPIB? The General Purpose Interface Bus (GPIB) is used for remote control of the 4352B VCO/PLL Signal Analyzer.
To Prepare for GPIB Control 1. Connect the 4352B and controller, plus any other instruments and peripherals with GPIB cables. Figure 1-1. System Con guration for GPIB Remote Control * To set printer or plotter see Chapter 5. 2. Turn on the 4352B. 3. Prepare the system controller. If you are using only HP instrument BASIC and no external controller, press 4Local5 SYSTEM CONTROLLER . For details, see Using HP instrument BASIC with the 4352B.
How large a system can you con gure? A maximum of 15 devices can be connected on one bus system. The length of cable between one device and another must be less than or equal to four meters. The total length of cable in one bus system must be less than or equal to two meters times the number of devices connected on the bus (the GPIB controller counts as one device). The total length of cable must not exceed 20 meters . Star, linear, and combinational cable con gurations are allowed.
GPIB Commands Introduction Most of the 4352B's front-panel keys have a corresponding GPIB command. By executing an GPIB command, you can operate the 4352B as if you were pressing the corresponding key. For example, Pressing 4Preset5 is the same as executing the GPIB command, PRES. To Execute an GPIB Command Type the BASIC OUTPUT statement, the GPIB select code, the device address, and nally the 4352B's GPIB command.
To Program a Basic Measurement This section describes how to organize the commands into a measurement sequence. Figure 1-2 shows a typical program ow for a measurement. Figure 1-2. Program Flow The following program performs the measurement ow controlling the 4352B using GPIB. This manual shows program lists of sample programs for HP instrument BASIC.
d c 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 ! File Name : FIG1_3.
Set I/O Path 130 ASSIGN @Hp4352 TO 800 ! IBASIC address When an external controller is used, change \800" to \717".
To Execute an GPIB Command with a Parameter Some GPIB commands require a numeric parameter. For example: OUTPUT @Hp4352;"VPOW 4.0" Set DC power voltage to 4 [V]. (The space between the command and the numeric parameter is mandatory.) In lines 200 to 240, you enter the parameters and execute the GPIB commands every time you run the program.
2 Triggering 4352B This chapter describes how to control the trigger system of the 4352B. Note Frequency Transient Measurements can be also triggered using the value trigger function available with the 4352B. See Value Trigger Function in Chapter 12 for details.
Figure 2-1. Trigger System In Figure 2-1, 1. After a HOLD GPIB command execution, the 4352B returns to the \Idle" state. 2. By selecting the trigger mode with a SING or CONT GPIB command, the 4352B changes from the \Idle" state to the \Waiting for Trigger" state. 3. At the \Waiting for Trigger" state, a trigger input (corresponding to the trigger source) starts a measurement. GPIB *TRG command triggers measurements. Free Run (Internal) There is no need for a trigger input.
To Measure Continuously d c a 100 110 120 130 140 150 160 ! File ! To ! ASSIGN OUTPUT OUTPUT END Name : FIG2_2.TXT Trigger Measurement Continuously @Hp4352 TO 717 ! When IBASIC is used, change "717" to "800" @Hp4352;"TRGS INT" @Hp4352;"CONT" Figure 2-2. Sample Program: To Trigger Measurements Continuously Set Trigger Source 140 OUTPUT @Hp4352;"TRGS INT" Set the trigger source to Internal.
To Trigger a Measurement From the Controller d c Two methods of triggering a measurement from the controller are shown in Figure 2-3 and Figure 2-4. 100 110 120 130 140 150 160 ! File ! To ! ASSIGN OUTPUT OUTPUT END a Name : FIG2_3.TXT Trigger Measurement From Controller(1) @Hp4352 TO 717 ! When IBASIC is used, change "717" to "800" @Hp4352;"TRGS INT" @Hp4352;"SING" Figure 2-3.
Set Trigger Source 140 OUTPUT @Hp4352;"TRGS BUS" Set the trigger source to GPIB. Trigger a Measurement 180 OUTPUT @Hp4352;"*TRG" Triggers the 4352B. Using an External Trigger d c 100 110 120 130 140 150 160 170 180 ! File ! To ! ASSIGN OUTPUT OUTPUT OUTPUT ! END a Name : FIG2_5.TXT Trigger Measurement with External Trigger @Hp4352 TO 717 ! When IBASIC is used, change "717" to "800" @Hp4352;"TRGS EXT" @Hp4352;"TRGP POS" @Hp4352;"CONT" Figure 2-5.
3 Synchronizing the Controller with 4352B You can control the 4352B from an external controller to read measurement data and communicate with a handler via GPIB. To do this, it is necessary to synchronize the controller and the 4352B. For example, The program on the controller must wait until after the measurement ends to transfer measurement data. Also, when it controls the handler via the 4352B, it must wait until the communication with the handler is completed before performing the next measurement.
d To Wait For the Preceding Operation to Complete a c b 100 110 120 130 140 150 160 170 180 190 200 210 220 ! File Name : FIG3_2.TXT ! To Wait for the Preceding Operation Complete ! ASSIGN @Hp4352 TO 800 ! IBASIC address ! ! OUTPUT statement to send GPIB command ! OUTPUT @Hp4352;"*OPC?" ! Wait until Operation Completed ENTER @Hp4352;A ! ! Next operation ! END Figure 3-2.
Waiting for Measurement Completion When Triggering a Measurement From the External Controller d c The following program assumes the trigger is being held. a 100 ! File Name : FIG3_3.
Figure 3-4. Setting the Trigger Completion Bit The enable register is used to specify an event that will generate an SRQ. The measurement completion is reported as follows: Line 170 sets bit 2 of the Service Request Enable Register(SRE) and bit 0 of the Event Status Enable Register B (ESNB), respectively, to 1. When the single trigger measurement is completed, a corresponding event (bit 0 of the Event Status Register B) is generated.
Wait Until Measurement Is Done 250 Measuring:GOTO Measuring ! Wait for interrupt of Sweep End The controller continues to loop on this line until an SRQ interrupt is generated. Generate SRQ On a single trigger end, bit 0 of the Event Status Register B is set to 1, and because bit 2 of the Status Byte Register is also set to 1, an SRQ is generated.
d c To Report Command Error Occurrence 100 ! File Name : FIG3_5.
Figure 3-6. Command-Error Bit Enabling Report Command Error 180 ON INTR 8 GOSUB Err_report 190 ENABLE INTR 8;2 200 ! 210 ! 220 ! 230 ! 240 ! 250 GOTO Prog_end 260 Err_report: ! If you are to use an external controller, replace 8 with 7. The same as the above Send an GPIB command OUTPUT statement If an GPIB command error is caused by GPIB commands between lines 190 and 250, the 4352B generates an SRQ and the controller branches to Err_report.
Output Error 270 280 290 300 d OUTPUT @Hp4352;"OUTPERRO?" ! Get error message ENTER @Hp4352;Err,Err$ ! Save error NO. and message PRINT "COMMAND ERROR DETECTED" PRINT Err,Err$ ! Print error NO. and message You can retrieve the error number and description by executing these commands.
4 Loading Measurement Data into Controller This chapter describes how to load measurement data into an external controller through GPIB.
Data Formats There are four di erent types of data formats for transferring data from the 4352B via GPIB. FORM2 IEEE 32 bit oating point format FORM3 IEEE 64 bit oating point format FORM4 ASCII format R FORM5 MS-DOS personal computer format The data transfer speed and the number of digits are dependent on the format. Generally, binary data transfer (FORM2, FORM3, or FORM5) is faster than ASCII (FORM4) data transfer. For details on the data transfer formats, see Appendix C.
Loading Measurement Data in Tester Mode (When the 4352B's External Signal Source Automatic Control Function Is Not Used) Transferring Data in ASCII Format Figure 4-1 shows a program that transfers measurement data in ASCII format to an external controller .
d c 100 ! File Name : FIG4_1.
Setting Tester Mode 170 OUTPUT @Hp4352;"VT" ! Select Tester mode Line 170 selects the Tester mode. Setting Data Transfer Format 450 OUTPUT @Hp4352;"FORM4" ! Set ASCII format Line 450 tells the 4352B to use the ASCII data transfer format. Loading Data 460 470 OUTPUT @Hp4352;"OUTPDATA?" ! Get Measurement data ENTER @Hp4352;Power_data Lines 460 and 470 load measurement data using the OUTPDATA? command.
Transferring Data in Binary Format d Figure 4-2 shows a program that transfers measurement data in a binary format to the external controller. 100 ! File Name : FIG4_2.
c 440 450 460 470 480 490 500 510 520 530 540 550 ! OUTPUT @Hp4352;"FORM3" ! Set IEEE 64-BIT Floating Point format ASSIGN @Dt TO 717;FORMAT OFF OUTPUT @Hp4352;"OUTPDATA?" ! Get Measurement data ENTER @Dt USING "%,8A";A$ ENTER @Dt;Power_data ENTER @Dt USING "%,1A";A$ ASSIGN @Dt TO * ! PRINT "POWER ";Power_data;" (dBm)" ! END Figure 4-3.
Figure 4-4.
Loading Measurement Data in Analyzer Mode (When External Signal Source Automatic Control Function Is Not Used) Transferring Data in ASCII Format d Figure 4-5 shows a program that transfers measurement data in ASCII data format to the external controller. 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 ! File Name : FIG4_5.
c 400 ! 410 ON INTR 7 GOTO Sweep_end 420 ENABLE INTR 7;2 430 OUTPUT @Hp4352;"SING" ! Measure RF Power level 440 ! 450 Measuring:GOTO Measuring 460 Sweep_end: ! 470 ! 480 OUTPUT @Hp4352;"FORM4" ! Set ASCII format 490 OUTPUT @Hp4352;"OUTPDATA?" ! Get Measurement data 500 ENTER @Hp4352;Power_data(*) 510 ! 520 FOR I=1 TO 51 530 PRINT "POWER ";Power_data(I);" (dBm)" 540 NEXT I 550 ! 560 END Sample Program: Loading Measurement Data in Analyzer Mode (ASCII Format) (When the 4352B's External Signal Source Automat
Transferring Data in Binary Format d Figure 4-6 shows a program that transfers measurement data in a binary data format to the external controller. 100 ! File Name : FIG4_6.
c 480 490 500 510 520 530 540 550 560 570 580 590 ! OUTPUT @Hp4352;"FORM3" ! Set IEEE 64-BIT format OUTPUT @Hp4352;"OUTPDATA?" ! Get Measurement data ENTER @Hp4352 USING "#,8A";A$ ENTER @Dt;Power_data(*) ENTER @Hp4352 USING "#,A";B$ ! FOR I=1 TO 51 PRINT "POWER ";Power_data(I);" (dBm)" NEXT I ! END Figure 4-7.
Loading Measurement Data in Analyzer Mode (When External Signal Source Automatic Control Function Is Used) Transferring Data in ASCII Format d c Figure 4-8 and Figure 4-9 show programs that must pass control from the external controller to the 4352B to transfer measurement data . The external controller passes the controller capability to the 4352B and receives the measurement data from it after the measurement.
d c a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 ! File Name : FIG4_9.
Specifying Array 130 DIM Power_data(1:51) As with the external controller, de nes the array that is used to store measurement data. Specifying Analyzer Mode 190 OUTPUT @Hp4352;"VA" ! Select Analyzer mode Selects the Analyzer mode. Setting Data Transfer Format 410 OUTPUT @Hp4352;"FORM4" ! ASCII Format Line 410 tells the 4352B to use the ASCII data transfer format. Loading Data 420 OUTPUT @Hp4352;"OUTPDATA?" Loads measurement data array with OUTPDATA? command.
Transferring Data in Binary Format d c Figure 4-10 and Figure 4-11 show the programs for the external controller and the 4352B, respectively. The program ow is basically the same as that for transferring data in ASCII format (programs in Figure 4-8 and Figure 4-9) except that 'ASCII FORMAT OFF' for I/O path must be speci ed in both programs and that the 4352B speci es FORM3 as the data transfer format. 100 110 120 130 140 150 160 170 180 190 200 210 ! File Name : FIG4_10.
d c a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 ! File Name : FIG4_11.
Reading Data Using the Marker Search Function The program block shown below uses the marker search function to search for the maximum value. You can replace lines 470 onward of the program in Figure 4-5 or lines 480 onward of the program in Figure 4-6 with this program block in order to search for the maximum value on each program.
Other Marker Readings The following commands can be used to read the marker: Marker reading MKRVAL? X-coordinate MKRPRM? Measurement point MKRP? The following commands can be used to read the sub-marker: Sub-marker reading SMKRVAL{1-4}? X-coordinate SMKRPRM{1-4}? Measurement point SMKRP{1-4}? The following commands can be used to read the 1marker: 1marker reading DMKRVAL? X-coordinate DMKRPRM? Loading Measurement Data into Controller 4-19
5 Printing the 4352B's Display This chapter describes how to print the information on the analyzer display using GPIB commands. To Print Analyzer Display Printer Preparation 1. Connect a printer using a parallel cable. 2. Turn the printer on. Execute Print To print the screen, execute the folowing command. OUTPUT 800;"PRINALL" Set the GPIB address when you execute from an external controller.
d c 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 ! FIG5_1. To Observe Printing ! ASSIGN @Hp4352 TO 800 ! OUTPUT @Hp4352;"CLES" OUTPUT @Hp4352;"OSNT 512" !Catch High to Low Transition OUTPUT @Hp4352;"OSPT 0" !Disable Low to High Transitions OUTPUT @Hp4352;"OSE 512" !Enable OS Event Reg. OUTPUT @Hp4352;"*SRE 128" !Enable OSR bit ON INTR 8 GOTO La1 ENABLE INTR 8;2 OUTPUT @Hp4352;"PRINALL" La1:! GOTO La1 DISP "PRINT COMPLETE" ! END Figure 5-1.
6 Remote Controlling HP instrument BASIC This chapter describes how to use both HP instrument BASIC and an external controller together, and also how to pass the active controller capability (with an example using a printer). To Control GPIB from HP instrument BASIC The 4352B must be the active controller of the GPIB (select code 7) to control devices on the GPIB, such as an external signal source. Initially, the system controller is the active controller.
What is the active The active controller is the controller that currently has the capability to control the devices connected via GPIB. Only one active controller can controller? exist at a time on an GPIB bus. If there are two or more devices that can be a controller on the same bus, the active controller capability can be passed from one controller to another.
Note Only the system controller can assert the GPIB interface clear line (IFC) and remote enable line (REN). Even when HP instrument BASIC is the active controller, these commands cannot be used.
To Execute an HP instrument BASIC Command From the External Controller. Note d d d The PROGram subsystem commands in the following programs can be used on the external controller. Combine the PROG:EXEC command with a command to be executed on HP instrument BASIC. For example, to execute EDIT command, OUTPUT 717;"PROG:EXEC ""EDIT""" Or you can use single quotation marks, instead of the double quotation marks, as follows.
To Run an HP instrument BASIC Program From the External d c Controller 100 110 120 130 140 150 160 170 180 190 200 210 220 230 a ! File Name : FIG6_3.TXT ! To Run IBASIC Program From External Controller ! (On External Controller) ! ABORT 7 ASSIGN @Hp4352 TO 717 OUTPUT @Hp4352;"PROG:DEL:ALL" ! Delete a program OUTPUT @Hp4352;"PROG:DEF #0" ! Download a program up to "END" OUTPUT @Hp4352;"10 MSI "":INTERNAL""" OUTPUT @Hp4352;"20 GET ""FIG1_3.
Run the HP instrument BASIC Program 220 d OUTPUT @Hp4352;"PROG:EXEC ""RUN""" ! Execute the program Line 220 runs the following program in the HP instrument BASIC editor: 10 MSI ":INTERNAL" 20 GET "FIG1_3.TXT" 30 END a Line 20 retrieves a program saved in the le FIG1_3.TXT and runs the program. d c To Transfer Program to HP instrument BASIC 100 ! File Name : FIG6_4.
Transfer the Program 180 190 200 210 220 230 240 250 ASSIGN @File TO File_name$ ON ERROR GOTO Done DIM Line$[1024] LOOP Line$="" ENTER @File;Line$ OUTPUT @Hp4352;Line$ END LOOP ! ! Transfer the program by each line Transfer the program by line to the 4352B. When all program lines are transferred, the controller exits the loop and goes to line 260. Close the HP instrument BASIC Editor 280 OUTPUT @Hp4352;" " END ! End edit Sending the 4352B the END command closes the editor.
7 If You Have a Problem This chapter provides helpful information on how to x typical problems. If There Is No Response From an Instrument on the GPIB Bus Check all GPIB addresses and cable connections. This trouble is usually caused by an incorrect address or a bad or loose GPIB cable in most cases. If an Error Message is Displayed Check the error message on the 4352B's display. If \GPIB error occurred" is displayed: 1. Get the error number and description using the OUTPERRO? command.
If You Cannot Get a File from the Disk Check the oppy disk. 1. Put the disk into the disk drive and type as follows. d CAT a 2. Press 4Return5. If an error message is displayed, the disk is corrupted or the disk format does not match. Use another disk. If you are using the external controller, HP BASIC supports the LIF format only, on the other hand, HP instrument BASIC supports both the LIF and the DOS format.
Check the le type. 1. Put the oppy disk into the disk drive and type as follows: d a CAT 2. Press 4Return5. d a CAT FILE NAME PRO TYPE REC/FILE BYTE/REC FIG1_3.TXT FIG2_2.TXT FIG2_3.TXT .. . ASCII PROG ASCII 6 6 6 256 256 256 ADDRESS 34 34 34 DATE TIME 29-May-96 11:00 29-May-96 11:00 29-May-96 11:00 If you are using HP instrument BASIC Only an ASCII type program le can be saved and read. Use the SAVE/GET commands to save and get ASCII les.
8 The Status Report System Figure 8-1 shows the overall structure of the Status Report System of the 4352B. Figure 8-1.
The 4352B has a status report system that reports the status of the 4352B. The Status Byte Register (STB) is an 8 bit register that reports a summary of all the status registers that indicate the current status of the 4352B. Each bit of the status byte reports the status of a speci c event in the 4352B. To read the status byte from the external controller, you can use the SPOLL command. This command can directly read the value of the status byte without setting the 4352B to the remote mode.
d c 10 20 30 40 50 60 a ASSIGN @Hp4352 TO 717 OUTPUT @Hp4352;"*STB?" ENTER @Hp4352;Stat Stb2=BIT(Stat,2) PRINT Stb2 END Figure 8-3. Reading the Status Byte: Example (2) The Event Status Register (ESR), Event Status Register B (ESB), and Operational Status Register (OSR) monitor the status of a speci c event, and report to the status byte respectively. A status bit of each register is set to 1 when the corresponding event occurs.
Table 8-2. Status Bit De nition of the Standard Event Status Register(ESR) Bit Position Name 0 Operation Completion Bit (OPC) 1 Control Request Bit 2 3 4 5 6 7 Description (When is the bit set to 1 ?) A command that has OPC enabled is completed. The 4352B is requesting the capability of active controller on GPIB because it was requested to perform an operation that requires the control of a peripheral device. 1.
Table 8-3. The Status Bit De nition of Event Status Register B (ESB)(Instrument Event Status Register) Bit Position Name 0 Single Trigger Completion Bit Description (When is the bit set to 1 ?) Measurement by single trigger is completed. It is cleared when ESB register is read. This bit is only used with the SING command. The 4352B is set to the GPIB trigger mode and is waiting until it is triggered. The terminator key was pressed.
d c 10 20 30 40 50 60 70 80 90 100 110 120 130 140 ASSIGN @Hp4352 TO 717 ! OUTPUT @Hp4352;"CLES" OUTPUT @Hp4352;"ESNB 1" ! OUTPUT @Hp4352;"*SRE 4" ! ! ON INTR 7 GOTO End ENABLE INTR 7;2 OUTPUT @Hp4352;"SING" GOTO 120 ! End: 150 END a ! Clear the status register ! The mask register set for ! SING Completion bit of ESB ! The mask register set for ! Event Status Register B bit of STB ! Declaration of SRQ interrupt ! Trigger ! Repeat in an n infinite loop ! Jump to here from the loop when a single trigger
9 Command Reference for Tester Mode This chapter describes GPIB commands you can use for measurements in the tester mode. See this chapter for information on functions available with and syntax of each of these commands. Note that some of the commands covered in this chapter are used when you use the 43521A(Down Converter Unit). Commands given in this chapter are designed for measurements in the tester mode. Commands are listed in alphabetical order.
The followings are typeface rules and de nitions used in this command reference. 1 ! AVERtfOFFj0jONj1g 2 ! Switches the averaging function to ON/OFF. ( AVERAGING ON off under 4Bw/Avg5 key.
AFCMAXVt Command Reference AFCtfOFFj0jONj1g Turns the automatic frequency control function ON or OFF. ( AFC on OFF under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Description Sets the Automatic Frequency Control function OFF. Sets the Automatic Frequency Control function ON. AFCITERt Sets the maximum number of times that the measurement and calculation (control voltage setting loop) are repeated.
AFCMAXVt AFCMINVt Speci es the DC control voltage lower limit. This value is for use with the automatic frequency control function. ( AFC MIN CTRL VOLT under 4Menu5 key.) The value speci ed with this command is valid when the automatic frequency control function is ON. This value can be speci ed irrespective of the maximum DC control voltage level speci ed with MAXVCTRL. Note, also, that with the 4352B the value speci ed with MAXVCTRL has priority over that speci ed with this command.
AVERREST AFCTOLt Speci es the allowable di erence (frequency resolution) between the target frequency and the actual setting frequency in the automatic frequency control function. ( TOLERANCE under 4Menu5.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 2000 to 2000000 Hz Unit Query Response fnumericg <^END> AVERtfOFFj0jONj1g Turns the Averaging function ON or OFF. ( AVERAGING on OFF under 4Bw/Avg5 key.
CNBWt Sets the converted noise bandwidth at the C/N Ratio measurement. ( NOISE BW under 4Bw/Avg5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 1 to 1000000 Hz Unit Query Response fnumericg <^END> CNOFREQt Sets the o set from the carrier frequency for the noise measurement at the C/N Ratio measurement. ( OFFSET FREQ under 4Bw/Avg5 key.
DATOVALt CTRLVCAL Performs DC control voltage calibration. ( EXECUTE CTRLV CAL under 4DC Control5 key. No Query) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN CTRLVCORRtfOFFj0jONj1g Enables or disables the compensation obtained from the DC control voltage calibration. ( CTRLV CORR on OFF under 4DC Control5 key.
DATOVALt DEFGO Reverts the gain and o set values to the default values. (gain = 1, o set = 0). This is for use with a data math function. ( DEFAULT GAIN & OFS under 4Display5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Example OUTPUT 717;"DEFGO" DEVCAL Performs the FM Deviation calibration and sets a calibration factor inside the 4352B. Performs this function only once for the same measurement conditions. ( EXECUTE DEV CAL under 4Menu5 key. No Query.
DNCONVtfOFFj0jONj1g DHOLDtfOFFjMAXjMINg Selects the data hold operation. When you change the parameter, the currently held data is reset. ( HOLD: OFF , MAX , or MIN under 4Display5 key.
DTHPFtfFC50HZjFC300HZg Sets the low frequency cuto for the FM Deviation detection bandwidth. ( HP FILTER:50Hz , 300Hz under 4Bw/Avg5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNN Parameter FC50HZ FC300HZ Description Sets the low frequency cuto for the FM Deviation detection bandwidth to 50 Hz. Sets the low frequency cuto for the FM Deviation detection bandwidth to 300 Hz.
LCOMPtfOFFj0jONj1g Query Response fnumericg <^END> FCOUNtfRES1KHZjRES64KHZg Sets the resolution for the frequency measurement. ( FREQ RES: 1 kHz , 64 kHz under 4Sense Range5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter RES1KHZ RES64KHZ NNNNNNNNNNNNNNNNNNNN Description Sets the frequency resolution to 1 kHz. Sets the frequency resolution to 64 kHz. Query Response fRES1KHZjRES64KHZg <^END> HOLD Holds the trigger and cancels the update of measurement value display.
LOAUTOtfOFFjONj0j1g Turns the automatic control function for the external signal generator (local signal) ON or OFF. ( LO CONTROL auto MAN under 4RF/LO5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Automatic Control function OFF Automatic Control function ON Description Query Response f0j1g <^END> LOFREQ? Outputs the frequency (Hz) that must be set to the external signal generator in relation to the current carrier frequency. (Query Only.
MEAStfPOWEjFREQjCURRjFMDEVjCNg MATHtfDATAjDPLMjDMNMjDDVMg Sets the Data Math function. ( DATA MATH: DATA , DATA+MEM , DATA-MEM , DATA/MEM under 4Display5 key.
MINVCTRLt Speci es the minimum value for the DC control voltage to protect the DUT from excess voltage. ( MIN CTRL VOLTAGE under 4DC Control5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0 to 20 (015 to 35 V with option 001) Unit V Query Response fnumericg <^END> MODAMPt Sets the amplitude of the modulation signal. ( MOD AMPLITUDE under 4Mod5 key.) The frequency of modulation signal is xed to 1 kHz.
PARMtfOFFj0jONj1g NOMFREQt Type in an approximate sample oscillation frequency (nominal frequency). You can use this command when you use the 43521A Down Converter Unit and the selected frequency band is other than 10 MHz to 3 GHz. Any frequency within the band selected with FREQ will be accepted. Make sure that the di erence between the actual frequency and your estimation is no more than 200MHz.
PARMtfOFFj0jONj1g PKCONVtfOFFj0jONj1g Switches the display unit for the FM Deviation measurement. ( PEAK CONV on OFF under 4Format5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Note Description Selects Hzrms (RMS) for the FM Deviation measurement Selects Hz (peak value) for the FM Deviation measurement The 4352B supports only the function to measure the RMS (Hzrms) of the FM Deviation.
SGTYPEtf1j2j3j4g RFATTt Sets an input attenuator for the 4352B or 43521A (Down Converter Unit). ( RF ATTEN under 4Sense Range5 key) Sets an input attenuator for the 4352B when you use the 4352B alone, or when the 43521A is used together with the 4352B and the selected frequency band is 10 MHz to 3 GHz.
SGTYPEtf1j2j3j4g SIGSRCH Searches for a carrier signal sent by the DUT. Searching scope is limited to the frequency band selected with FBAND. When a carrier is found, the frequency of the carrier will be automatically stored as nominal frequency. ( FREQ BAND [xx-xx] , SIGNAL SEARCH under 4Meas5 key) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN SING Uses a trigger to perform a single measurement to obtain data, then returns to the hold mode.
VOUTtfOFFj0jONj1g TRGStfINTjEXTjBUSjMANg Selects the trigger source. ( FREE RUN , EXTERNAL , GPIB , MANUAL under 4Trigger5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNN Parameter INT EXT BUS MAN NNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNN Description Internal trigger External trigger from BNC on the rear panel GPIB trigger Manual trigger Query Response fINTjEXTjBUSjMANg <^END> VA Selects Analyzer mode as the 4352B measurement mode. ( INST TYPE: VCO ANALY under 4Meas5 key.
VPOWt Speci es the DC power voltage. ( POWER VOLTAGE under 4DC Power5 key.
10 Command Reference for Analyzer Mode This chapter describes GPIB commands you can use in the Analyzer mode. See this chapter for information on functions available with and syntax of each of these commands. Note that some of the commands covered in this chapter are used when you use the 43521A(Down Converter Unit). Commands given in this chapter are designed for measurements in the analyzer mode. Commands are listed in alphabetical order in this chapter.
The followings are typeface rules and de nitions used in this command reference. 1 ! AVERtfOFFjONj0j1g 2 ! Switches the averaging function to ON/OFF.
AFCMAXVt Command Reference AFCtfOFFj0jONj1g Turns the automatic frequency control function ON or OFF. This command can be used only in phase noise or spectrum measurements. ( AFC on OFF under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Description Automatic frequency control function OFF Automatic frequency control function ON AFCITERt Sets the maximum number of times that the measurement and calculation (control voltage setting loop) are repeated.
AFCMAXVt AFCMINVt Speci es the DC control voltage lower limit. This value is for use with the automatic frequency control function. ( AFC MIN CTRL VOLT under 4Menu5 key.) The value speci ed with this command is valid when the automatic frequency control function is ON. This value can be speci ed irrespective of the maximum DC control voltage level speci ed with MAXVCTRL. Note, also, that with the 4352B the value speci ed with MAXVCTRL has priority over that speci ed with this command.
AVERREST AFCTOLt Speci es the allowable di erence (frequency resolution) between the target frequency and the actual setting frequency in the automatic frequency control function. This command can be used only in phase noise or spectrum measurements. ( TOLERANCE under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 2000 to 2000000 Hz Unit Response to Query fnumericg <^END> AUTO Displays the trace on the optimum scale. ( AUTO SCALE under 4Display5 key.
BEEPFAILtfOFFj0jONj1g Turns the limit fail beeper ON or OFF. Turning this beeper ON when the limit test function is ON allows the beeper to sound each time the limit test result is not acceptable. ( BEEP FAIL on OFF under 4System5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Limit fail beeper OFF Limit fail beeper ON Description Response to Query f0j1g <^END> BWt Speci es the resolution bandwidth.
CNPLLtfAUTOjWIDEg CENTt Speci es the sweep center value. You cannot use this command when you have selected linear sweep for phase noise measurement or when you have selected frequency transient measurement. ( CENTER under 4Menu5 key.
CNPLLtfAUTOjWIDEg CONT Selects the automatic continuous sweep mode. In this mode, the measurement trace is updated for every sweep. ( CONTINUOUS under 4Trigger5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Response to Query f0j1g <^END> CTRLDLYt Sets the wait time required for the DUT response until the DUT's RF output signal is stable after changing the control voltage. ( CTRL DELAY under 4DC Control5 key.
DETtfPOSjNEGjSAMg DATLIML Stores the data trace as the lower limit trace. ( DATA!LOWER under 4System5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN DATLIMU Stores the data trace as the upper limit trace. ( DATA!UPPER under 4System5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN DATMEM Stores the data trace as the memory trace. ( DATA!MEMORY under 4Display5 key. No Query.
DETtfPOSjNEGjSAMg DHOLDtfOFFjMAXjMINg Selects the data hold operation. When you change the parameter, the current held data is reset. ( HOLD: OFF , MAX , MIN under 4Display5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF MAX MIN NNNNNNNNNNN NNNNNNNNNNN Data hold operation OFF Maximum data hold. Minimum data hold. Description Response to Query fOFFjMAXjMINg <^END> Example OUTPUT 717;"DHOLD MAX" OUTPUT 717;"DHOLD?" ENTER 717;A$ DISPtfDATAjMEMOjDATMg Selects the trace to be displayed.
EXDATLIML Response to Query fONjFIXjTRACjOFFg <^END> Example OUTPUT 717;"DMKR ON" DMKRPRMt Speci es the 1 marker reading along the X-axis when ON or FIX is selected for DMKR. ( 1MKR SWP PARAM under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Start value to stop value Range Unit Hz (Frequency) dBm (Power) Response to Query fnumericg <^END> DNCONVtfOFFj0jONj1g Turns the downconverter ON or OFF.
EXDATLIML EXDATLIMU Replaces the data trace with the upper limit trace. ( DATA$UPPER under 4System5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN FBANDt Selects a frequency band when you use the 43521A (Down Converter Unit) together with the 4352B. Note that you can select a frequency band only when you have selected ON for DNCONVtfOFFj0jONj1g. You cannot use this command when you use the 4352B alone.
INTGNOIS? HOLD Holds the data trace on the screen, and stops sweep and data input. ( SWEEP: HOLD under 4Trigger5 key.) Response to Query f0j1g <^END> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0 1 Sweep in progress (non-hold mode) Hold mode INPUDATAt,, . . . Description Inputs data to the 4352B trace data array, and displays the data instead of the measurement values. (No Query.
INTGNOIS? LCOMPtfOFFj0jONj1g Turns the measurement cable loss compensation function ON or OFF. This function is used to compensate for losses on cables. This command can be used in RF power measurements. ( COMPEN on OFF under 4Menu5 key.
LIMSECTNt, , , , , LIMITESTtfOFFj0jONj1g Turns the limit test function ON or OFF. ( LIMIT TEST on OFF under 4System5 key.
LOAUTOtfOFFj0jONj1g Turns the automatic control function for external signal generator (local signal) ON or OFF. ( LO CONTROL auto MAN under 4RF/LO5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Automatic control function OFF Automatic control function ON Description Response to Query f0j1g <^END> LOFREQ? Outputs the frequency (Hz) that must be sent to the external signal generator in relation to the current carrier frequency. (Query Only.
MEAStfPOWEjFREQjNOISjTRANjSPECg MAXVCTRLt Speci es the maximum DC control voltage level to protect the target device from excess voltage. ( MAX CTRL VOLTAGE under 4DC Control5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0 to 20 (015 to 35 V with option 001) V Unit Response to Query fnumericg <^END> MEAINOIStfOFFj0jONj1g Turns noise integration ON or OFF for phase noise measurement.
MINVCTRLt Speci es the minimum value for the DC control voltage to protect the DUT from excess voltage. ( MIN CTRL VOLTAGE under 4DC Control5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0 to 20 (015 to 35 V with option 001) V Unit Query Response fnumericg <^END> MKRtfOFFj0jONj1g Turns the marker ON (active) or OFF (inactive). When OFF is selected, the marker, submarker, and 1 marker are all OFF.
MKRPRMt MKRLtfOFFj0jONj1g Turns the marker list function ON or OFF. ( MKR LIST ON off under 4Utility5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Description Marker list function OFF Marker list function ON Response to Query f0j1g <^END> MKROtfDATAjMEMOg Selects whether to use the marker on the data or memory trace. ( MKR ON [DATA] under 4Menu5 key.
MKRPRMt MKRPRM? Outputs the value along the X-axis of the marker reading. Response to Query fnumericg <^END> MKRREF Speci es the absolute value (value that does not a ect the 1 marker) of the marker reading as the reference value. ( MKR!REFERENCE under 4Display5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN MKRSTAR Speci es the value along the X-axis of the marker reading as the sweep parameter start value. This command cannot be used in phase noise measurements.
NOMFREQt MODAMPt Speci es the value along the Y-axis for a modulated signal. ( MOD AMPLITUDE under 4Mod5 key.) The frequency of the modulated signal is xed to 1 kHz. NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0 to 1 Range Vrms Unit Response to Query fnumericg <^END> MODOtfOFFj0jONj1g Turns the modulated signal output ON or OFF. ( MOD OUT on OFF under 4Mod5 key.
NOMFREQt Response to Query fnumericg <^END> OUTPDATA? Outputs the data trace. (Query Only.) Response to Query fnumeric (1)g fnumeric (2)g . . . fnumeric (n)g <^END> (n=Number of measurement points displayed) Example DIM A(1:201) OUTPUT 717;"OUTPDATA?" ENTER 717;A(*) OUTPDATAP?t Outputs the data trace for the speci ed measurement point. (Query Only.
OUTPMEMO? OUTPLIML? Outputs the lower limit trace data. (Query Only.) Response to Query fnumeric (1)gfnumeric (2)g . . . fnumeric (n)g<^END>(n=number of measurement points displayed) Example DIM A(1:201) OUTPUT 717;"OUTPLIML?" ENTER 717;A(*) OUTPLIMRES? Returns the limit test results for all measurement points. (Query Only.) Response to Query f01j(Not Done) 0j(Fail) 1j(Pass)g. . . .
OUTPMEMO? OUTPMEMOP?t Outputs the memory trace at the speci ed point. (Query Only.) Parameter Description 1 to speci ed number of measurement points (1 is selected if a value equal to or below 0 is speci ed. If a value greater than the total number of points is speci ed, this speci ed value is selected.) Response to Query fIntegerg<^END> Example OUTPUT 717;"OUTPMEMOP? 1" ENTER 717;A OUTPMKR? Outputs both the value along Y-axis and the value along the X-axis of the marker.
PKDLTYt OUTPSWPRMP?t Outputs the value along the X-axis for the speci ed point. (Query Only.) Parameter Description 1 to speci ed number of measurement points. (1 is selected if a value equal to or below 0 is speci ed. If a value greater than the total number of points is speci ed, this speci ed value is selected.
PKDLTYt PKTHREtfOFFj0jONj1g Turns ON or OFF the threshold for peak de nition. ( THRESHOLD on OFF under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Description Threshold OFF Threshold ON Response to Query fOFFjONg <^END> PKTHVALt Speci es the threshold for peak de nition. ( THRESHOLD VALUE under MKR SEARCH (Marker Search Menu) under 4Menu5 key.
REFVt Response to Query fDBMjDBVjDBUVjWjVg <^END> PRES Presets the 4352B. Settings, including measurement conditions, are reset to defaults after presetting. See Appendix D in the Function Reference for defaults. (4Preset5 key. No Query.) 3RST functions similarly to PRES. These commands are designed to change the 4352B settings. Note, however, that some settings are changed di erently with one command from another, as shown below. See also \PRES" for more information.
REFVt REST Stops the trigger and starts a measurement all over again. ( MEASURE RESTART under 4Trigger5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN RFATTt Sets an input attenuator for the 4352B or 43521A (Down Converter Unit). ( RF ATTEN under 4Sense Range5 key) Sets an input attenuator for the 4352B when you use the 4352B alone, or when the 43521A is used together with the 4352B and the selected frequency band is 10 MHz to 3 GHz.
SEANPK SCAFtfDATAjMEMOg Selects whether to specify the scale for the data or memory trace. ( SCALE FOR [ ] under 4Display5 key.) Response to Query fDATAjMEMOg <^END> NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN SCALt Speci es the value along the Y-axis for one division of the scale graph. ( SCALE/DIV under 4Display5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0.1 to 20 (RF power) 1 kHz to 3 GHz (Frequency) 1 kHz to 3 GHz (Frequency transient) 0.
SEANPK SEANPKL Moves the marker leftward to the next peak. ( NEXT PEAK LEFT under 4Menu5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN SEANPKR Moves the marker rightward to the next peak. ( NEXT PEAK RIGHT under 4Menu5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN SEAR Searches to the right of the marker for the next target value. ( SEARCH RIGHT under 4Menu5 key. No Query.
SGCMDt, SENSAPERt Speci es the moving average range (aperture) for tuning sensitivity trace. This command can be used in frequency/tuning sensitivity measurements. ( SENS APERTURE under 4Bw/Avg5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0.1 to 20(% of span) Range % Unit Response to Query fnumericg <^END> SENSPOLtfPOSjNEGg Selects a gradient type (df/dv) for the DUT frequency-control voltage curve.
SGTYPEtf1j2j3j4g Selects the external signal generator to be used. ( SG TYPE under 4RF/LO5 key.) NNNNNNNNNNNNNNNNNNNNNNN Parameter 1 2 3 4 Description 8664A, 8664B 8657B 8648B, 8648C, E8241A, E8244A, E8251A, E8254A Signal generator de ned with SGCMD Response to Query f1j2j3j4g <^END> SING Uses a trigger to make a single sweeping measurement to obtain data, then returns to the hold mode. ( SINGLE under 4Trigger5 key. No Query.
SPANt SMKRf1-4gtfOFFj0jONj1g Selects whether to display the speci ed sub-marker. ( SUB MKR {1-4} under 4Menu5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Sub-marker OFF Sub-marker ON Description Response to Query f0j1g <^END> SMKRPf1-4gt Moves the sub-marker to the speci ed measurement point.
SPANt Response to Query fnumericg <^END> STARt Speci es the sweep start value. ( START under 4Menu5 key.) NNNNNNNNNNNNNNNNN Parameter Range 0 V to Maximum control voltage (RF power, Frequency), 100Hz to 1MHz (10n , log sweep for phase noise) 10Hz to 10.2MHz0 Min. span (linear sweep for phase noise) 0 to 800ms (frequency transient) 10MHz to 3GHz0 Min.
TRGPtfPOSjNEGg SWPTtfLOGFjLINFg Selects a sweep type. You can select log or linear sweep. You can use this command when you phase noise-o set frequency characteristic measurement. You need to select linear sweep for noise integration or spurious measurement.
TRGPtfPOSjNEGg TRGStfINTjEXTjBUSjMANjVALg Selects the trigger source. ( FREE RUN , EXTERNAL , GPIB , MANUAL , VALUE under 4Trigger5 key.
TRTARGt TRREFt Sets a reference frequency to display frequency transient measurement data. The di erence between the speci ed reference frequency and the measured frequency is displayed, thus ensuring improved frequency resolution. See \Application in the Analyzer Mode (Frequency Transient Measurement)" in Chapter 12 for more information. ( RF TRANS REF FREQ under 4Sense Range5 key.
TRTARGt Response to Query fnumericg <^END> TRTPOSt Speci es the relationship between target frequency and frequency span by %. The minimum and maximum frequencies in the frequency span are set at 0% and 100%, respectively. You can use this command to specify where to locate the target frequency within the frequency span. You can specify any of 5 through 95% in steps of 5%.
VT VCTRLt Speci es the DC control voltage level. This command cannot be used in RF power or frequency/tuning sensitivity measurements. ( CTRL VOLTAGE under 4DC Control5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0 to 20 (015 to 35 V with option 001) V Unit Response to Query fnumericg <^END> VOUTtfOFFj0jONj1g Turns the DC power and DC control voltages ON or OFF. ( OUTPUT on OFF under 4DC Control5 key, OUTPUT on OFF under 4DC Power5 key.
Command Reference for Commonly Used Commands 11 This chapter is an GPIB command reference for the 4352B. You can use this chapter when you need information on the function and syntax of commands. Commands given in this chapter, however, are not related to the measurements in the Tester mode and Analyzer mode. The command reference in this chapter lists commands in the alphabetical order for each command group. Note that the following command groups are described in each corresponding section.
The followings are typeface rules and de nitions used in this command reference. 1 ! AVERtfOFFj0jONj1g 2 ! Switches the averaging function on the active channel to ON/OFF.
BEEPDONEtfOFFj0jONj1g Command Reference ADDRCONTt Sets the GPIB address the analyzer will use to communicate with the external controller. ( ADDRESS:CONTROLLER under 4Local5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Range 0 to 30 Unit Query Response fnumericg <^END> ADDRSGt Sets the GPIB address which the analyzer will use to communicate with the external signal generator. ( ADDRESS:SG under 4Local5 key.
BEEPWARNtfOFFj0jONj1g Switches the Alarm Beep function ON and OFF. If you turn this function ON, a beep sounds when a warning message is displayed. ( BEEP WARN on OFF under 4System5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Description The alarm beep OFF The alarm beep ON Query Response f0j1g <^END> BLIGHTtfOFFj0jONj1g Sets backlighting the LCD screeen ON or OFF.
CLOSE CHADt Change the current directory of a DOS format disk. (Specify the name of the directory to change.) ( CHANGE DIRECTORY under 4Save/Recall5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter A directory path name Description Example OUTPUT 717;"CHAD ""..""" CLES Clears the Status Byte Register, the Standard Event Status Register, the Event Status Register B (Instrument Event Status Register), and the Operational Status Register. (No Query.
CLOSE COLOt Speci es the display information for which you want to change the color. ( DATA , MEM , LIMIT LINE PARAMETER , GRATICULE , TEXT , WARNING , IBASIC , PEN 1 , PEN 2 , PEN 3 , PEN 4 , PEN 5 , PEN 6 under 4Display5 key.
DEFC COPTtfOFFj0jONj1g Switches the printing time and date (the time stamp function) ON and OFF. ( COPY TIME on OFF under 4Copy5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter OFF or 0 ON or 1 Time stamp function OFF Time stamp function ON Description Query Response f0j1g <^END> COUT Assigns the port C signal lines (pin #20 to Pin #24) in the 24-bit I/O port to the output port. CREDt Creates a new directory on a DOS format disk.
DEFC DFLT Returns the printing parameters to their default values. ( DEFAULT SETUP under 4Copy5; No query) The table below lists the default values. NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Command DPI FORMFEED LANDSCAPE LMARG TMARG SKEY 75 ON OFF 1.0 1.0 OFF Default value dpi Unit inch inch Equivalent SCPI Command :HCOPy:DEFault DIN Assigns the port D signal lines (pin #25 to pin #28) in the 24-bit I/O port to the input port.
ENKEY DISFtfDOSjLIFg Selects the disk format (LIF or DOS) to be used when initializing a new disk. ( FORMAT [ ] under 4Save/Recall5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter DOS LIF Description DOS format LIF (Logical Interchange format) format Query Response fDOSjLIFg <^END> Example OUTPUT 717;"DISF DOS" DOUT Sets the port D signal lines (pin #25 to pin #28) in the 24-bit I/O port to the output port. DPIt Speci es the printing resolution value for the printer.
ENKEY ESB? Outputs the value in the Event Status Register B (Instrument Event Status Register). (Query only.) Query Response fnumericg <^END> ESNBt Sets the bit in the Event Status Register B (Instrument Event Status Register). Parameter Range Contents of the register in decimal: 0 to 32767 (=215 01) Unit Query Response fnumericg <^END> FILCt,,, Copies les.
FORMFEEDtfOFFj0jONj1g FNUM? Returns the number of the les in the current directory. (Query only) Query Response fnumericg <^END> FORM2 Sets the IEEE 32-bit oating point format to transfer the trace data via GPIB. See Appendix C for details. (No Query.) FORM3 Sets the IEEE 64-bit oating point format to transfer the trace data via GPIB. See Appendix C for details. (No Query.) FORM4 Sets the ASCII format to transfer the trace data via GPIB. See Appendix C for details. (No Query.
FORMFEEDtfOFFj0jONj1g FSIZE?t Returns the size of a speci ed le in bytes. If the le does not exist, this command returns -1. (Query only) Parameter Description File name of up to 12 characters including its extension (for the LIF format, up to 10 characters) Query Response fnumericg <^END> INID Initializes the oppy disk or the RAM disk memory. ( INITIALIZE DISK under 4Save/Recall5 key. No Query.
LANDSCAPEtfOFFj0jONj1g INTEt Sets the intensity of the display as a percentage of the brightest level. ( INTENSITY under 4Display5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0 to 100 Range Unit % Query Response fnumericg <^END> KEYt Sends key codes correspond to front panel hardkeys and softkeys. This is equivalent to actually pressing a key. See Appendix B for key codes. (No Query.
LANDSCAPEtfOFFj0jONj1g LMARGt Specify the value for the left margin of printed paper. ( LFT MARGIN under 4Copy5) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0 to 5 Range inch Unit Query Response fnumericg <^END> Equivalent SCPI Command :HCOPy:DRIVer:LEFTMarg:t MONDYEAR Changes the date format to \month:day:year". ( DATE MODE:MonDayYear under 4System5 key.
OUT1L OSER? Outputs the value to which the Operation Status Event register is currently set. (Query Only.) Query Response fnumericg <^END> OSNTt Sets the bit for OSNT (Operation Status Negative Transition Filter). See Chapter 8 for details. Parameter Description Contents of the register in decimal: 0 to 65535 (=216 01) Query Response fnumericg <^END> OSPTt Sets the bit for OSPT (Operation Status Positive Transition Filter). See Chapter 8 for details.
OUT1L OUT2ENVH Enables the OUTPUT2 signal line (pin #4) of the 24-bit I/O port to go HIGH when INPUT1 detects pulse input. OUT2ENVL Enables the OUTPUT2 signal line (pin #4) of the 24-bit I/O port to go LOW when a pulse input has occurred at the INPUT1 signal line (pin #2) of the 24-bit I/O port. OUT2H Sets the OUTPUT2 signal line (pin #4) of the 24-bit I/O port to HIGH. OUT2L Sets the OUTPUT2 signal line (pin #4) of the 24-bit I/O port to LOW.
OUTHIOt OUTDIOt Outputs decimal data speci ed as the parameter to port D (4-bit) of the 24-bit I/O port. (No Query.) You must rst use DOUT to set the port D as the output port before using this command. Parameter 0 to 15 Description OUTEIOt Outputs decimal data speci ed as the parameter to port E (8-bit) of the 24-bit I/O port. (No Query.) You must rst set ports C and D as output ports (using COUT and DOUT) before using this command.
OUTHIOt OUTPERRO? Outputs error messages stored in the Error queue. Query Response fnumeric (error number)g fcharacter string (error message)g <^END> Example OUTPUT 717;"OUTPERRO?" ENTER 717;A,A$ OUTPINPCIO? Outputs data entered from port C of the 24-bit I/O port (Query only). Use CIN to specify port C as an input port before using this command. Query Response fnumericg <^END> OUTPINPDIO? Outputs data entered from port D of the 24-bit I/O port (Query only).
PRINALL PRIC Sets the printer so that it prints out in colors at print outs. ( COLOR under 4Copy5 key.) NNNNNNNNNNNNNNNNN Query Response f0j1g <^END> Parameter 0 1 Monochrome print Color print Description PRICFIXE Sets the printer to print out in the default (initial) color setup. ( PRINT COLOR [FIXED] under 4Copy5 key.
PRINALL PRIS Sets the printer so that it prints in black and white. ( PRINT STANDARD under 4Copy5 key.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Query Response f0j1g <^END> Parameter 0 1 Color print Monochrome print Description PRSOFTtfOFFj0jONj1g Sets printing the softkeys displayed in the screen ON or OFF.
RECDt READ? Reads data from a le that has been read-enabled using the ROPEN command. The returned data is in the xed length block format de ned in IEEE488.2. The xed length block format, as shown in Figure 11-1, consists of a header part indicating the data size and an actual data part. In the case of the 4352B, the number of digits to indicate the data size is 6 and the maximum length of the actual data part is 16 Kbytes.
RECDt RESAVDt Updates a le already saved. ( RE-SAVE FILE under 4Save/Recall5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter Description File name up to 10 characters including the extension Example OUTPUT 717;"RESAVD ""TEST_S""" RESD Sets the Measurement Setting Parameter List function OFF and reverts the display screen to a normal measurement screen. ( RESTORE DISPLAY under 4Copy5 key. No Query.
SAVDDATt RSCO Sets the color being modi ed by the COLO command to the default setup. ( RESET COLOR under 4Display5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN SAVDASCt Saves an internal data array, de ned by the SAVDAT or SAVMEM command, in an ASCII formatted le. ( DATA ONLY (ascii) under 4Save/Recall5 key. No Query.
SAVDDATt SAVDSTAt Saves the setup of the instrument. ( STATE under 4Save/Recall5 key. No Query.) NNNNNNNNNNNNNNNNN Parameter Description A le name of up to 8 characters Example OUTPUT 717;"SAVDSTA ""STA1""" SAVDSTACt Saves the instrument state in the format so that the 4352A can recall.
SETCTIMEt, , SCRNtfOFFj0jONj1g Switches the LCD screen ON or OFF. (No corresponding softkey command.) Parameter OFF or 0 ON or 1 Description LCD screen OFF LCD screen ON Query Response f0j1g <^END> SETCDATEt, , Sets the date of the built-in clock. ( ENTER under 4System5 key.
SETCTIMEt, , STODfDISKjMEMOg Sets the storage device. ( STOR DEV [ ] under 4Save/Recall5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter STODDISK STODMEMO Internal oppy disk drive Internal RAM disk memory Description SVCO Saves the modi ed color setup in the back up memory. ( SAVE COLORS under 4Display5 key. No Query.) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN TINTt Adjusts the hue of speci ed display element.
WOPENt[,] TMARGt Specify the value for the top margin of printed paper. ( TOP MARGIN under 4Copy5) NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN Parameter 0 to 5 Range inch Unit Query Response fnumericg <^END> Equivalent SCPI Command :HCOPy:DRIVer:TOPMargt USKEY Displays the user key labels of the soft keys. The user menu display returns to the ordinary measurement keys when the program ends.
WOPENt[,] WRITEt Writes data in a le that has been write-enabled using the WOPEN command. Written data must take the xed length block format (see Figure 11-1) de ned in IEEE488.2. The maximum length of data is 16 Kbytes. If data is greater than 16 Kbytes, execute this command repeatedly to write it. (No query) Generally, this command is used in combination with the WOPEN command and the CLOSE command, as shown in Figure 11-2.
3IDN? Common Commands 3CLS Clears the Event Status Register of Error Queue, Status Byte Register, and Operation Status Register, Standard Event Status Register, Event Status Register B (Instrument Event Status Register). (No Query.) Example OUTPUT 717;"3CLS" 3ESEt Sets the enable bit of Standard Event Status Register.
3IDN? 3OPC Sets bit 0 of Standard Event Status Register when it completes all pending operations. 3OPC? query places an ASCII character 1 into the analyzer's output query when all pending operations has been completed. Query Response f1g <^END> Example OUTPUT 717;"3OPC" OUTPUT 717;"3OPC?" ENTER 717;A 3OPT? Inquires the installed options. (Query Only.
3SREt 3RST Resets the 4352B as follows: Returns to the initial settings. Sets the trigger to the Hold mode. Resets HP instrument BASIC. (Only when executed from the external controller.) See Appendix D of the Function Reference for initial values. (No Query.) PRES command is similar to 3RST command. The main di erences are shown below. Item Command 3RST PRES 4352B settings Defaults Defaults Measurement trigger Hold mode Continuous mode HP IBASIC Reset1 Not changed.
3SREt 3STB? Reads the contents of the Status Byte Register according to the status of the Master Summary status bit. (Query Only.) Query Response fnumericg <^END> Example OUTPUT 717;"3STB?" ENTER 717;A 3TRG Triggers the 4352B when the BUS trigger is set to the trigger mode. (No Query.) Example OUTPUT 717;"3TRG" 3TST? Performs the internal self test and returns the result. (Query Only.
:DIAG:INIT:RESult? Commands Related to Servicing Note See the Service Manual for the details of the following functions. :DIAG:EREFerence:STATe? Checks if the external reference frequency source is connected to the EXT REF INPUT connector on the rear panel and returns the result. (Query Only.) Query Response f0j1g <^END> Parameter 0 1 Description The external reference frequency source is not connected. The external reference frequency source is connected.
Commands Related to HP instrument BASIC Note Commands for the PROGram subsystem are related to HP instrument BASIC. These commands can be used from the external controller only. :PROGram:CATalog? Returns all the de ned program names of HP instrument BASIC. Because the 4352B's HP instrument BASIC can execute only a single program at a time, this program name will always be \PROG". (Query Only.
:PROGram[:SELected]:NAMEt Example OUTPUT OUTPUT OUTPUT OUTPUT 717;":PROG:DEF #0" 717;"10 PRINT ""HELLO!""" 717;"20 END" 717;" " END DIM A$[100000] OUTPUT 717;":PROG:DEF?" ENTER 717 USING "%,2A";HEAD$ B=VAL(HEAD$[2]) FOR I=1 TO B ENTER 717 USING "%,A";HEAD$ NEXT I ENTER 717 USING "-K";A$ ! ! ! ! ! ! Reads the header. Reads the program. :PROGram[:SELected]:DELete[:SELected] Deletes a program in the 4352B's HP instrument BASIC editor. (No Query.
:PROGram[:SELected]:NAMEt :PROGram[:SELected]:NUMBert,[,[, . . . [,] Speci es a number to a numeric variable or to a numeric array in a program on 4352B's HP instrument BASIC or inquires the setting of a numeric variable or a numeric array. Parameter Description Variables in a program (a character or a character string) A number to be set to the variables (To be separated by commas when there is more than one.
:PROGram[:SELected]:WAIT :PROGram[:SELected]:STRingt,[,[, . . . [, Sets or inquires for a character string to a string variable or to a string array in the program on 4352B's HP instrument BASIC editor. Caution This command can only handle a character string of up to 255 characters. If you specify a character string exceeding 255 characters to the command, the 4352B's function is not guaranteed.
:PROGram:EXPLicit:DEFinet\PROG", See \:PROGram[:SELected]:DEFinet". :PROGram:EXPLicit:DELetet\PROG" See \:PROGram[:SELected]:DELete[:SELected]". :PROGram:EXPLicit:EXECutet\PROG", See \:PROGram[:SELected]:EXECutet". :PROGram:EXPLicit:MALLocatet\PROG",fjDEFaultg See \:PROGram[:SELected]:MALLocatetfjDEFaultg". :PROGram:EXPLicit:NUMBert\PROG", [,] See \:PROGram[:SELected]:NUMBert,[,[, . . .
12 Application Programming This chapter describes useful programs for the following operations and measurements available with the 4352B. This chapter also includes transient measurement sample programs using the 43521A Down Converter Unit in the analyzer mode at a frequency beyond 3GHz. Controlling the External Signal Source When the 4352B's External Signal Source Automatic Control function is used. When the 4352B's External Signal Source Automatic Control function is not used.
Controlling the External Signal Source with the 4352B (When the 4352B's External Signal Source Automatic Control Function is Used) This program measures and displays the C/N ratio at two control (tuning) voltages (1V and 4V) in the tester mode. The external signal source frequency is controlled by the 4352B. This program assumes that the 4352B is set as the system controller or active controller.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 ! File Name : FIG12_1.TXT ! IBASIC SAMPLE PROGRAM for AUTOMATIC LOCAL CONTROL ON ! ASSIGN @Hp4352 TO 800 ! Assign IBASIC Address ! GOSUB Setup LOOP DISP "CONNECT DEVICE and PRESS CONTINUE." PAUSE DISP FOR I=1 TO 2 OUTPUT @Hp4352;"VCTRL ";V_ctrl(I) ! Set DC Control Voltage Cn_data(I)=FNMeas ! C/N MEASUREMENT PRINT USING "10A,2D.
c 540 ! 550 ! 560 DEF FNMeas 570 EXECUTE "SING" 580 Dat=READIO(8,0) 590 RETURN Dat 600 FNEND ! Measurement ! Get Measurement Data Figure 12-1.
Controlling the External Signal Source with the 4352B (When the 4352B's External Signal Source Automatic Control Function is Not Used) This program measures and displays the C/N ratio at two tuning voltages (1V and 4V) in the tester mode. The external signal source frequency is controlled not by the 4352B's automatic control function but by this program. Note We recommend that you use the 4352B's automatic control function unless your test system has restrictions on the use of this function.
Lines 580 to 700 are the subroutine \Local check" to control the external signal source frequency. The frequency of the external signal source is checked as follows: 1. Select the frequency measurement with 64 kHz resolution and measure the frequency. 2. Query the 4352B the information on the frequency of the external signal source to be set (Lo_freq). 3. Compare Lo_freq and the current frequency of the external signal source (Lo_freq_pre). 4.
d 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 ! File Name : FIG12_2.TXT ! IBASIC SAMPLE PROGRAM for LOCAL AUTO CONTROL OFF ! ASSIGN @Hp4352 TO 800 ! Assign IBASIC Address ASSIGN @Hp8664 TO 719 ! Assign Signal Generator's GPIB Address ! GOSUB Setup LOOP DISP "CONNECT DEVICE and PRESS CONTINUE.
c 560 ! 570 ! 580 Local_check:! 590 OUTPUT @Hp4352;"MEAS FREQ" ! Set Measurement item to Frequency 600 OUTPUT @Hp4352;"FCOUN RES64KHZ" ! Set Frequency Resolution to 64 kHz 610 EXECUTE "SING" 620 OUTPUT @Hp4352;"LOFREQ?" ! Check Local Frequency to be set 630 ENTER @Hp4352;Lo_freq 640 IF Lo_freqLo_freq_pre THEN 650 OUTPUT @Hp8664;"FREQ ";Lo_freq;"HZ" ! Set Local Frequency to SG 660 Lo_freq_pre=Lo_freq 670 END IF 680 OUTPUT @Hp4352;"FCOUN RES1KHZ" ! Set Frequency Resolution to 1 kHz 690 WAIT Sg_wait_time 700
Controlling the 4352B from the External Controller These sample programs are used to measure the device's frequency and C/N ratio in the tester mode with a combination of the 4352B and an external controller. In this case, the external controller controls the 4352B to set up the measurement conditions, make the measurements, and get the measurement results. These operations are performed by passing control from the external controller to the 4352B.
Measurements, Analysis, and Data Transfer The following gure shows the process ow chart: Controlling the 4352B from the External Controller (Measurements, Analysis, and Data Transfer) External Controller's Side The loop from lines 280 to 420 repeats the following operations: Line 320 continues the 4352B's program every time the device connection is completed. Line 340 passes the controller capability to the 4352B.
The measurement result is obtained by querying the 4352B (lines 370 to 400). 4352B's Side The 4352B's IBASIC program is continued by the external controller, and makes a measurement (line 200). When the measurement is completed, the controller capability is passed back to the external controller (line 210) and the IBASIC program pauses (line 190).
d 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 ! File Name : FIG12_4.TXT ! EXTERNAL CONTROLLER SAMPLE PROGRAM for Controlling 4352 ! ABORT 7 ASSIGN @Hp4352 TO 717 ! OUTPUT @Hp4352;"OSNT 16384;OSPT 0" OUTPUT @Hp4352;"OSE 16384;*SRE 128" A=SPOLL(@Hp4352) OUTPUT @Hp4352;"OSER?" ENTER @Hp4352;Oser ! OUTPUT @Hp4352;"PROG:STAT RUN" WAIT .
c 520 ! 530 ! 540 Verify_pause: ! 550 ON INTR 7 GOTO Verified 560 ENABLE INTR 7;2 570 Waiting:GOTO Waiting 580 Verified: ! 590 OFF INTR 600 A=SPOLL(@Hp4352) 610 OUTPUT @Hp4352;"OSER?" 620 ENTER @Hp4352;Oser 630 ENABLE INTR 7 640 RETURN 650 ! 660 ! 670 END Figure 12-3.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 ! File Name : FIG12_6.
c 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 ! ! Measurement:! OUTPUT @Hp4352;"MEAS FREQ" Fr=FNMeas ! Frequency Measurement OUTPUT @Hp4352;"MEAS CN" Cn=FNMeas ! C/N Measurement RETURN ! END ! ! DEF FNMeas EXECUTE "SING" ! Measurement Dat=READIO(8,0) ! Get Measurement Data RETURN Dat FNEND Figure 12-4.
d c d c 100 ! File Name : FIG12_9.TXT 110 ! To Transfer Data Trace from 4352 to External Controller Using ASCII Format 120 ! 130 DIM Dat(1:201) 140 ! 150 ASSIGN @Hp4352 TO 8 160 OUTPUT @Hp4352;"FORM4" ! ASCII Format 170 OUTPUT @Hp4352;"OUTPDATA?" ! Get Data Trace Data 180 ENTER @Hp4352;Dat(*) 190 ASSIGN @Hp4352 TO * 200 ! 210 ASSIGN @Cntlr TO 721 ! External Controller Address 220 OUTPUT @Cntlr;Dat(*) 230 ASSIGN @Cntlr TO * 240 ! 250 END Figure 12-6.
d c 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 ! File Name : FIG12_11.
Controlling the Handler via the 24-bit I/O interface (When the 4352B's External Signal Source Automatic Control Function is Used) These programs control the 4352B and the handler using the external controller. The handshake between the 4352B and the handler is accomplished via the 24-bit I/O port on the rear panel of the 4352B. One of these sample programs shows how to control 24-bit I/O port with GPIB commands or HP instrument BASIC commands.
The Overview of the Program Figure 12-10. Controlling the Handler with both the IBASIC program and the External Controller Figure 12-10 shows the ow chart for the sample programs. Once the 4352B receives the controller capability, it handshakes with the external controller via GPIB and with the handler via the 24-bit I/O port. The READIO and WRITEIO commands are used to synchronize with the handler, which eventually improves the total processing speed.
4352B's Side The IBASIC program is started by the external controller, and then assigns the I/O path of the external controller so that data with a tab code is transferred to the controller (line 140). This assignment makes it easier to handle measurement results from spreadsheet software. Then, the 4352B is set up (line 160) and the following processes are performed in the measurement loop (lines 170 to 280). The 4352B makes a measurement when a trigger is sent from the handler to INPUT1 (line 180).
d c 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 ! File Name : FIG12_14.TXT ! EXTERNAL CONTROLLER SAMPLE PROGRAM for Controlling 4352 with Handler ! DIM Data$[100] ! ABORT 7 ASSIGN @Hp4352 TO 717 ! OUTPUT @Hp4352;"PROG:STAT RUN" WAIT .
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 ! File Name : FIG12_15.
d a 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 c Setup:! V_ctrl(1)=1 ! Volt V_ctrl(2)=4 ! Volt OUTPUT @Hp4352;"PRES" ! Preset 4352 OUTPUT @Hp4352;"HOLD" ! Trigger HOLD OUTPUT @Hp4352;"VT" ! Select Tester mode OUTPUT @Hp4352;"VPOW 4" ! Set DC POWER Voltage to 4 V OUTPUT @Hp4352;"VCTRL ";V_ctrl(1) ! Set Control Voltage to 1 V OUTPUT @Hp4352;"VOUT ON" ! Supply DC Voltages OUTPUT @Hp4352;"LOSWT 0.
c 730 740 750 760 770 780 790 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990 1000 1010 1020 1030 1040 1050 1060 1070 1080 1090 1100 1110 1120 Measurement:! OUTPUT @Hp4352;"MEAS POWE" ! Set Measurement Item to POWER Power(I)=FNMeas OUTPUT @Hp4352;"MEAS FREQ" ! Set Measurement Item to FREQUENCY Freq(I)=FNMeas OUTPUT @Hp4352;"MEAS CN" ! Set Measurement Item to C/N Cn(I)=FNMeas RETURN ! ! Judgement:! WRITEIO 16,0;0 ! Initialize Judgement Result Result=0 IF Power(1)<-10 THEN Re
Synchronizing with the Handler Figure 12-13. Synchronizing with the Handler via the 24-bit I/O port This program controls the 4352B and the handler to measure the DUTs per lot. In this case, the 4352B and the handler must be synchronized to perform the following handshakes. a. The 4352B noti es the handler that a new DUT is ready for measurement. b. The handler noti es the 4352B that the DUT has been connected to the electrodes of the xture on the handler. c.
Reading Signals from the Handler 180 GOSUB Input_check ! WAIT for TRIGGER from Handler 190 EXIT IF BIT(READIO(16,2),0) ! Check Test End by PORT C INPUT 660 REPEAT 670 EXECUTE "INPT?" 680 UNTIL READIO(8,0) 690 RETURN This program assumes that the handler sends a pulse to the signal line INPUT1 when the DUT has been connected to the xture on the handler. In the loop in lines 670 to 700, the 4352B waits to perform a measurement until the DUT has been connected to the xture.
Controlling the Handler via the 24-bit I/O Interface (When the 4352B's External Signal Source Automatic Control Function is Not Used) This program was modi ed from the 4352B's program in the previous section. It allows the external signal source frequency to be controlled without using the 4352B's External Signal Source Automatic Control function. Note We recommend that you use the 4352B's automatic control function unless your test system has restrictions on the use of this function.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 ! File Name : FIG12_21.
d a 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 c Setup:! V_ctrl(1)=1 ! Volt V_ctrl(2)=4 ! Volt Sg_wait_time=.
d a 780 790 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990 1000 1010 1020 1030 1040 1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 c Local_check:! OUTPUT @Hp4352;"MEAS FREQ" ! Set Measurement item to Frequency OUTPUT @Hp4352;"FCOUN RES64KHZ" ! Set Frequency Resolution to 64 kHz EXECUTE "SING" ! Measurement OUTPUT @Hp4352;"LOFREQ?" ! Check Local Frequency to be set ENTER @Hp4352;Lo_freq IF Lo_freqLo_freq_pre THEN OUTPUT @Hp8664;"FREQ ";Lo_freq;"HZ" ! Set Local Fre
c 1160 1170 1180 1190 1200 1210 1220 1230 1240 1250 1260 1270 1280 1290 1300 1310 1320 Data_transfer: ! Transfer Measurement Data to External Controller FOR I=1 TO 2 OUTPUT @Ext_pc USING "2D.2D";Power(I) OUTPUT @Ext_pc USING "4D.3D";Freq(I)/1.E+6 OUTPUT @Ext_pc USING "4D.D,#";Cn(I) END NEXT I RETURN ! ! END ! ! DEF FNMeas EXECUTE "SING" ! Measurement Dat=READIO(8,0) ! Get Measurement Data RETURN Dat FNEND Figure 12-16.
Automatic Measurement of All the 4352B's Measurement Parameters in the Tester Mode This program measures the frequency at two tuning voltages (1V and 4V) and calculates the tuning sensitivity. Using the Automatic Frequency Control function, it measures at the target frequency of 830 MHz, frequency, DC tuning voltage, RF power level, DC power consumption current, S/N ratio, FM deviation with modulation signal level of 0.35V, and C/N ratio.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 ! File Name : FIG12_25.TXT ! IBASIC SAMPLE PROGRAM for Measuring VCO Parameters with AUTO FREQUENCY CONTROL function ! Main: ! GOSUB Setup LOOP DISP "CONNECT DEVICE and PRESS CONTINUE.
d c a 520 ! 530 ! 540 Aut_f_cnt_setup: ! 550 Typical_snstvty=12 560 Typical_snstvty=Typical_snstvty*1.
c 950 ! 960 ! 970 Printing: ! 980 CLEAR SCREEN 990 FOR I=1 TO 2 1000 PRINT USING "24A,4D.2D,X,6A"; "DC CONTROL VOLTAGE ";V_ctrl(I);" (V)" 1010 PRINT USING "11A,12X,5D.3D,6A"; "FREQUENCY ";Freq_data(I)/1.E+6;" (MHz)" 1020 NEXT I 1030 PRINT USING "13A,11X,4D.2D,X,8A"; "SENSITIVITY ";Sensitivity/1.E+6;" (MHz/V)" 1040 PRINT USING "19A,4X,5D.3D,6A"; "CENTER FREQUENCY ";Center_freq/1.E+6;" (MHz)" 1050 PRINT USING "21A,5X,2D.3D,4A"; "CTRL V for CENT FREQ ";Dcv_ctrl_fcent;" (V)" 1060 PRINT USING "10A,15X,3D.
FM Modulation Sensitivity Deviation Measurement Controlling Modulation Signal Level This program measures the device's modulation sensitivity deviation. The measurement steps are as follows: 1. Control the modulation signal level so that the FM deviation is Dev0 at the carrier frequency F0. Let this modulation signal level be Vm0. 2.
d 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 ! File Name : FIG12_28.TXT ! IBASIC SAMPLE PROGRAM for MODULATION SENSITIVITY MEASUREMENT ! ASSIGN @Hp4352 TO 800 ! Assign IBASIC Address ! GOSUB Setup_env GOSUB Setup_fm GOSUB Auto_dev GOSUB Measurement GOSUB Print_result ! STOP ! ! ! Setup_env:! Vp0=4. ! Power Voltage (V) Vcmax=4. ! Maximum Control Voltage (V) Sc=1.
d c a 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 ! ! Setup_fm:! Dev0=8000. Sm=21000.
c 960 Print_result:! 970 PRINT "Deviation of Modulation Sensitivity" 980 PRINT PROUND(Dev0/1000.,-1);"(kHz) FM-Deviation, "; F0/1.E+6;"(MHz) referred" 990 PRINT 1000 PRINT F1/1.E+6;"(MHz) : ";PROUND((Dev1/Dev0-1)*100,-2);"(%)" 1010 PRINT F2/1.E+6;"(MHz) : ";PROUND((Dev2/Dev0-1)*100,-2);"(%)" 1020 RETURN 1030 ! 1040 END 1050 ! 1060 ! 1070 DEF FNMeas 1080 EXECUTE "SING" ! Measurement 1090 Dat=READIO(8,0) ! Get Measurement Data 1100 RETURN Dat 1110 FNEND Figure 12-18.
Application in the Analyzer Mode (PLL 3rd Harmonic Measurement) This program measures the third harmonic of the PLL output signal. First, it measures the carrier level in a spectrum measurement. Next, it measures the third harmonic level by setting three times the carrier frequency as the center frequency of the sweep. The power levels are checked using the marker. The 4352B functions as the system controller in this program.
d c a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 ! File Name : FIG12_31.
Application in the Analyzer Mode (Frequency Transient Measurement) This program measures the PLL frequency transient characteristics. In this section, four programs are provided, each of which uses a di erent trigger. Note The 4352B o ers you three ways to measure the PLL oscillation frequency characteristics with respect to time. Select the method that best suits your needs. Observation time Method Reference 10 sec or shorter Frequency transient measurement Program given in this section.
Sending Trigger in Frequency Transient Measurement The purpose of a frequency transient measurement is to evaluate how quick the PLL output frequency changes in response to a request for frequency change. To ensure accuracy in this measurement, the following operations must be performed in as short a time as possible.
You can select in advance whether to use when f exceeds fT or when f decreases below fT as the trigger condition. When you switch f from fL over to fH (fL < fH ), be sure to set fT at a level slightly higher than that of fL . This allows a measurement to be initiated immediately after a frequency change request has been sent to the PLL.
Figure 12-22. DUT PLL Connection (Serial Data) This program is intended to measure the transient characteristics of the DUT when its output frequency is changed from 5.8 GHz to 5.85 GHz. Note that the 4352B functions as system controller in this program. The following describes what each of the blocks is intended to accomplish. The program may need to be changed depending on the type of PLL you use.
Lines 700 to 720: Specify Measurement Time This block speci es the default measurement time. However, line 2200, provided later in the program, allows you to type in a desired measurement time. Therefore, you do not always need to specify it in this block. Measurement time is set at 10 msec in this block. Lines 800 to 850: Specify DC Power Voltage This block speci es the 4352B's DC power voltage. The DC Power voltage is set at 5 V in this program. You may need to change it in accordance with your DUT.
calculated by Fspan = Fjump 2 (1 + Over shoot) = 50MHz 2 2 = 100MHz, assuming that the overshoot is 100% (Over shoot=1). 100 MHz neither corresponds to <2.E+6 (less than 2 MHz) in line 1490 nor to <2.E+7 (less than 20 MHz) in 1510. Therefore, it corresponds to CASE ELSE in line 1530. Consequently, TSMAX is selected and the frequency span is set at 512 MHz ( xed). Because line 1580 speci es 50% for target position, minimum and maximum frequencies are calculated as follows: Minimum frequency: 5.
Lines 2000 to 2090: Display Measurement Parameters This block displays measurement parameters. DISA HIHB displays measurement results and measurement parameters respectively at the upper and lower halves of the screen. Title (PLL Synthesizer Frequency Transient Measurement) Initialization word: Cont word$ Reference divider: Ref divider$ Start frequency: Freq(1)/1.E+6;\[MHz]" Serial signal for start frequency: divider$(1) Target frequency ( nal frequency): Freq(2)/1.
to line 2000 to repeat measurement. Enter a character other than \N" if you cannot obtain appropriate results due to excessively short or long measurement time. When you enter \N", the program goes to the subroutine line 5000 to end the program. Lines 3000 to 3090: Subroutine for Sending Reference Divider This subroutine sends the reference divider (Ref divider$ in line 350) from port A of the 24-bit I/O port. Line 3030 pulls OUTPUT1 of the 24-bit I/O port low, thus resetting the PLL's LOAD signal.
d a 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 200 210 220 230 240 250 260 270 300 310 320 330 340 350 360 370 400 410 420 430 440 450 460 470 480 490 500 ! File Name : FIG12_32.
d c a 510 700 710 720 800 810 820 830 840 850 900 910 920 930 940 1000 1010 1020 1030 1040 1050 1060 1070 1080 1100 1110 1120 1130 1140 1150 1160 1170 1200 1210 1220 1230 1240 1300 1310 1320 1330 1340 1400 1410 ! !##### Initial time span value of the transient measurement. T_span_msec=10 ! Default Time Span [msec] ! !##### Output voltage from 'DC POWER' of 4352B. If the IC !##### needs Vcc supplied by 4352B, change the value "Dc_power".
d c a 1420 ! 1430 !##### If the frequency transient overshoot is too large, try a value 1440 !##### larger than 1. 1450 Over_shoot=1 ! Overshoot Ratio on Frequency Jump 1460 Fspan=Fjump*(1+Over_shoot) ! Jump + Overshoot 1470 ! 1480 SELECT Fspan 1490 CASE <2.E+6 1500 OUTPUT @Hp4352;"TRSPAN TS2MHZ" ! Set Frequency Span 2[MHz] 1510 CASE <2.
d c a 2130 PRINT 2140 ! 2200 !---------------------------------- Input Time Span 2210 BEEP 2220 DISP "Time Span [msec]=? (Defalut";T_span_msec;"[msec])"; 2230 INPUT "",T_span_msec 2240 T_span=T_span_msec/1000. 2250 PRINT "Time Span :";T_span_msec;"[msec]" 2260 OUTPUT @Hp4352;"SPAN ";T_span ! Set Time Span 2270 ! 2300 !------------------------- Transient from Start Freq. to Target Freq. 2310 DISP "Now measuring...
c 3140 3150 3160 3170 3180 3190 3200 3210 3220 3230 3240 3250 3260 3270 3280 3290 3300 3310 3320 3330 3340 3350 3400 3410 3420 3430 3440 3450 3460 3470 3480 3490 3500 3510 3520 3530 3540 3550 3560 3570 5000 5010 5020 5030 5040 ! OUTPUT @Hp4352;"OUT1H" ! Send Strobe via OUTPUT 1 OUTPUT @Hp4352;"OUT1L" ! Reset Strobe (OUTPUT 1) ! RETURN ! !-------------------------------- Send Feedback Divider Word Send_pll_freq:! OUTPUT @Hp4352;"OUT1L" ! Reset Strobe (OUTPUT 1) ! !##### If the LSB should be sent first, unc
Using the Trigger Detection Output Function - 2 (Parallel Data) Figure 12-27 shows a frequency transient measurement program using the trigger detection output function. The DUT PLL used in this program requires parallel data for LOAD signal (feedback divider) to change its output frequency. Figure 12-25 shows a block diagram of this PLL (PLL synthesizer). Figure 12-25. Block Diagram of the PLL Synthesizer (Parallel Data) Figure 12-26 shows the connection of the DUT and the 4352B.
Figure 12-26. Connection of DUT PLL (Parallel Data) This program is intended to measure characteristics of the DUT when its output frequency is changed from 180 MHz to 180.8 MHz. Note that the 4352B functions as system controller in this program. The following describes what each of the blocks is intended to accomplish. The program may need to be changed depending on the type of PLL you use. Lines 400 to 480: De ne Feedback Divider Freq(1) and Freq(2) are set respectively at 180 MHz and 180.8 MHz.
This block selects whether to use the 43521A (Down Converter Unit). The DUT PLL used in this program outputs a low frequency signal (180 MHz). Therefore, you do not need to use the 43521A. You need to use it if the PLL outputs a signal beyond 3 GHz. In this case, you must treat line 920 as an executable statement while at the same time commenting out line 930.
In line 1570, the 4352B is set at 180.8 MHz (frequency speci ed in line 460) as target frequency (TRTARG). Lines 1700 to 1740: Turn ON Trigger Detection Output Function This block selects internal trigger (TRGS INT) and turns ON the trigger detection output function (TRGOUT ON). OUT1ENVH is used to pull OUTPUT1 (24-bit I/O) high. OUTPUT1 is connected to the PLL Load terminal. (See Figure 12-22.) The PLL loads serial data available at the DATA terminal when the LOAD terminal goes high.
frequency transient takes place at the same time as start of the measurement. Lines 2700 to 2720: Auto-scale Measurement Results and Turn ON the Marker AUTO in line 2700 optimizes scaling for measurement results to be displayed on the screen. Line 2710 displays the marker on the screen. You can use the rotary knob to move the marker as desired to check the reading.
d 10 ! File Name : FIG12_33.TXT 20 ! IBASIC SAMPLE PROGRAM for Frequency Transient Measurement with Trigger Detection Output Function 30 ! (Parallel Data Transfer) 40 ! 50 ASSIGN @Hp4352 TO 800 60 DISP "" 70 ! 80 !################################################################ 90 ! Follow the instructions given in comments to modify this 100 ! program to work with your PLL IC. For further information, 110 ! refer to 4352S GPIB Programming Manual.
d c a 940 1000 1010 1020 1030 1040 1050 1060 1070 1080 1100 1110 1120 1130 1140 1150 1160 1170 1200 1210 1220 1230 1240 1300 1310 1320 1330 1340 1400 1410 1420 1430 1440 1450 1460 ! !##### These 4 lines set Local SG Type and the switching wait time. !##### Change the Sg_type and Sg_wait values to match the SG used. Sg_type=1 ! "1" for 866XA/B OUTPUT @Hp4352;"SGTYPE ";Sg_type ! Set SG Type Sg_wait=.
d c a 1470 ! 1480 SELECT Fspan 1490 CASE <2.E+6 1500 OUTPUT @Hp4352;"TRSPAN TS2MHZ" ! Set Frequency Span 2[MHz] 1510 CASE <2.
c 2270 2300 2310 2320 2340 2350 2360 2370 2380 2500 2510 2520 2530 2700 2710 2720 2800 2810 2820 2830 2840 2850 3000 3200 3210 3220 3230 3240 3250 3260 5000 5010 5020 5030 5040 ! !------------------------- Transient from Start Freq. to Target Freq. DISP "Now measuring..." Freq_index=1 ! for Start Frequency GOSUB Send_pll_freq ! Send Divider for Start Freq. OUTPUT @Hp4352;"OUT1H" ! Send Strobe via OUTPUT 1 OUTPUT @Hp4352;"OUT1L" ! Reset Strobe (OUTPUT 1) WAIT .
Using the Value Trigger Function - 1 (43521A and Serial Data) Figure 12-28 shows a frequency transient measurement program using the value trigger function. In this program, the same PLL as that for \Using the Trigger Detection Output Function - 1 (43521A and Serial Data)" is used. See the above-mentioned section for information on the PLL block diagram and its connection. This PLL requires serial data for initialization and frequency division ratio signals.
This block selects whether to use the 43521A (Down Converter Unit). In this program, a high frequency signal (5.8 GHz) is measured. Therefore, you need to use the 43521A. You do not need to use it if the target frequency is 3 GHz or less. In this case, treat line 930 as an executable statement and comment out line 920. Lines 1000 to 1080: Specify SG Type and SG Local Signal Wait Time This block speci es an SG type number of the external signal source (SG) and local signal wait time.
In this case, because frequency span is 512 MHz, overshoot is unlikely to exceed the maximum frequency or fall below the minimum frequency. However, if 2 MHz is selected for frequency span due, for example, to a small di erence between maximum and minimum frequencies, overshoot may fall outside the range between maximum and minimum frequencies. In this case, assign any value greater than 1 for Over shoot to provide a wider frequency span.
(A0) of the 24-bit I/O port so that this signal can be loaded into the PLL. This causes the PLL to oscillate at the start frequency (5.8 GHz). Line 2360 waits for the PLL frequency to stabilize at 5.8 GHz. Lines 2400 to 2430: Clear Status Byte The last block checks the contents of the status byte register to determine whether measurement is complete. This block clears this register to allow the last block to make this decision.
trigger" and "2-5. Sending divider data to a serial-input PLL" supplied with the 4352B Function Reference for more information. Lines 3400 to 3490: Subroutine for Sending the Initialization Word This subroutine sends the initialization word (Cont word$ in line 250) from port A of the 24-bit I/O port. In line 3240, OUTPUT1 of the 24-bit I/O port is pulled low, thus resetting the PLL's LOAD signal. Line 3470 displays data in the MSB rst.
d a 10 20 with 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 200 210 220 230 240 250 260 270 300 310 320 330 340 350 360 370 400 410 420 430 440 450 460 470 480 490 500 ! File Name : FIG12_34.TXT ! IBASIC SAMPLE PROGRAM for Frequency Transient Measurement Value Trigger Function ! (Serial Data Transfer) ! ASSIGN @Hp4352 TO 800 DISP "" ! !################################################################ ! Follow the instructions given in comments to modify this ! program to work with your PLL IC.
d c a 510 600 610 620 630 700 710 720 800 810 820 830 840 850 900 910 920 930 940 1000 1010 1020 1030 1040 1050 1060 1070 1080 1100 1110 1120 1130 1140 1150 1160 1170 1200 1210 1220 1230 1240 1250 ! !##### The next line defines the trigger threshold frequency. !##### Change the value for appropriate measurement trigger. Trig_freq=5.801E+9 ! !##### Initial time span value of the transient measurement. T_span_msec=10 ! Default Time Span [msec] ! !##### Output voltage from 'DC POWER' of 4352B.
d c a 1300 1310 1320 1330 1340 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 1500 1510 1520 1530 1540 1550 1560 1570 1580 1590 1700 1710 1720 1730 1740 1750 1760 1770 1780 1790 1900 1910 1920 1930 1940 !-------------------------- Frequency Transient Measurement Setting OUTPUT @Hp4352;"VA" ! Select Analyzer mode OUTPUT @Hp4352;"MEAS TRAN" ! Select Frequency Transient Measurement OUTPUT @Hp4352;"HOLD" ! Hold Measurement Trigger ! !-------------------------------------- Setting Frequency Span Fjump=ABS(
d c a 1950 ! 2000 Measurement:! 2010 !----------------------------------------- Display Parameters 2020 OUTPUT @Hp4352;"DISA HIHB" ! Set Disp Allocation Half Inst / Half IBASIC 2030 CLEAR SCREEN 2040 PRINT "PLL Synthesizer Frequency Transient Measurement" 2050 PRINT 2060 PRINT "Control Word :";Cont_word$ 2070 PRINT "Reference Divider :";Ref_divider$ 2080 PRINT 2090 PRINT "Start Frequency :";Freq(1)/1.E+6;"[MHz]" 2100 PRINT "Feedback Divider :";Divider$(1) 2110 PRINT "Target Frequency :";Freq(2)/1.
d 2700 2710 2720 2800 2810 2820 2830 2840 2850 3000 3010 3020 3030 3040 3050 3060 3070 3080 3090 3100 3110 3120 3130 3140 3150 3160 3170 3180 3190 3200 3210 3220 3230 3240 3250 3260 3270 3280 3290 3300 3310 3320 c a OUTPUT @Hp4352;"AUTO" OUTPUT @Hp4352;"MKR ON" ! Set Marker ON ! BEEP INPUT "Measurement done.
c 3330 3340 3350 3360 3370 3380 3400 3410 3420 3430 3440 3450 3460 3470 3480 3490 3500 3510 3520 3530 3540 3550 3560 3570 4000 4010 4020 4030 4040 4050 4060 4070 5000 5010 5020 5030 5040 ! OUTPUT @Hp4352;"OUT1H" ! Send Strobe via OUTPUT 1 OUTPUT @Hp4352;"OUT1L" ! Reset Strobe (OUTPUT 1) ! RETURN ! !------------------------------------------ Send Control Word Send_cont:! OUTPUT @Hp4352;"OUT1L" ! Reset Strobe (OUTPUT 1) ! !##### If the LSB should be sent first, uncomment the first !##### line below, and com
Freq(1) and Freq(2) are set respectively at 180 MHz and 180.8 MHz. These frequencies represent the start and target ( nal) frequencies used for frequency transient measurement. The 4352B is set at Freq(2) as target frequency in line 1570. Parallel data for each of the frequencies to be supplied to the PLL is substituted into Divider$. In the case of this PLL, 180 MHz and 180.8 MHz are represented respectively by 225 and 226. Data is supplied to the PLL by the Send pll freq subroutine in line 3210.
Lines 1300 to 1340: Select Frequency Transient Measurement This block selects frequency transient measurement as measurement type. The analyzer mode (VA) is selected. Then, frequency transient measurement (MEAS TRAN) is selected. At the same time, HOLD is selected for trigger so that frequency transient measurement can be triggered by a later block.
be stored in T span msec, divided by 1000 for converting the unit into millisecond, and the result of division stored in T span. Line 2250 displays the new measurement time on the screen while line 2260 sets the 4352B at the new measurement time. Whether you can obtain a proper transient measurement screen depends on your measurement time. In this program, you can return from line 2820 to line 2000 so that you can enter a new measurement time to repeat measurement if your screen is not appropriate.
measurement trigger" and "2-5. Sending divider data to a serial-input PLL" supplied with the 4352B Function Reference for more information. Lines 4000 to 4070: Subroutine for Detecting End of Measurement This subroutine monitors the contents of the event status register to determine whether measurement is complete, then goes to the next block when measurement is complete. Lines 5000 to 5040: End the Program This block turns OFF the DC voltage to end the program.
d 10 ! File Name : FIG12_35.TXT 20 ! IBASIC SAMPLE PROGRAM for Frequency Transient Measurement with Value Trigger Function 30 ! (Parallel Data Transfer) 40 ! 50 ASSIGN @Hp4352 TO 800 60 DISP "" 70 ! 80 !################################################################ 90 ! Follow the instructions given in comments to modify this 100 ! program to work with your PLL IC. For further information, 110 ! refer to 4352S GPIB Programming Manual.
d c a 940 1000 1010 1020 1030 1040 1050 1060 1070 1080 1100 1110 1120 1130 1140 1150 1160 1170 1200 1210 1220 1230 1240 1300 1310 1320 1330 1340 1400 1410 1420 1430 1440 1450 1460 1470 1480 1490 1500 1510 1520 1530 1540 1550 ! !##### These 4 lines set Local SG Type and the switching wait time. !##### Change the Sg_type and Sg_wait values to match the SG used. Sg_type=1 ! "1" for 866XA/B OUTPUT @Hp4352;"SGTYPE ";Sg_type ! Set SG Type Sg_wait=.
d c a 1560 ! 1570 OUTPUT @Hp4352;"TRTARG ";Freq(2) ! Set Target Frequency 1580 OUTPUT @Hp4352;"TRTPOS 50" ! Set Target Position 50% of Freq Span700 ! 1590 ! 1700 !------------------------------------- Value Trigger Setting 1710 OUTPUT @Hp4352;"TRGS VAL" ! Set Value Trigger 1720 OUTPUT @Hp4352;"TRGVAL ";Trig_freq ! Set Trigger Frequency 1730 ! 1740 IF Freq(2)>Freq(1) THEN 1750 OUTPUT @Hp4352;"TRGP POS" ! Set Trigger Porality Positive 1760 ELSE 1770 OUTPUT @Hp4352;"TRGP NEG" ! Set Trigger Porality Negative
c 2360 2400 2410 2420 2430 2600 2610 2620 2630 2640 2700 2710 2720 2800 2810 2820 2830 2840 2850 3000 3200 3210 3220 3230 3240 3250 3260 3270 3280 3290 4000 4010 4020 4030 4040 4050 4060 4070 5000 5010 5020 5030 5040 ! OUTPUT @Hp4352;"CLES" OUTPUT @Hp4352;"*OPC?" ENTER @Hp4352;Opc ! OUTPUT @Hp4352;"SING" ! Measurement Trigger Freq_index=2 ! for Target Frequency GOSUB Send_pll_freq ! Send Divider for Target Freq.
Application in the Analyzer Mode (Limit Testing) Setting Limit Lines This program sets the limit lines for the 4352B. In this program, RF power characteristics vs. DC control (tuning) voltage measurement is selected as a measurement parameter, and the 4352B functions as the system controller. The number of points used to trace limit lines using straight lines is de ned (line 130).
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 c 440 450 460 ! File Name : FIG12_36.TXT ! IBASIC SAMPLE PROGRAM to Set Limit Lines ! Point=10 ! Number of Points ! DIM Lmt_up(1:10),Lmt_lw(1:10) DATA +1.0, +1.2, +1.4, +1.6, +1.8 ! Upper Limit Line Data DATA +2.0, +2.0, +2.0, +2.0, +1.5 DATA -1.0, -1.2, -1.4, -1.6, -1.8 ! Lower Limit Line Data DATA -2.0, -2.0, -2.0, -2.0, -1.
Limit Testing This program sets the limit lines for the 4352B to perform limit testing. Phase noise is selected as a measurement item. Limit lines are de ned by a speci c o set frequency and a combination of the corresponding upper and lower phase noise limits. (If an o set frequency is not de ned, the upper and lower limits obtained through linear interpolation are used.) In this program, the 4352B functions as the system controller.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 ! File Name : FIG12_37.
c 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 DISP "CONNECT DEVICE and PRESS CONTINUE." PAUSE DISP ! EXECUTE "SING" ! Measurement ! OUTPUT @Hp4352;";LIMISTAT?" ! Read Limit Test Result ENTER @Hp4352;Limistat SELECT Limistat CASE 0 DISP "TEST FAILED" CASE 1 DISP "TEST PASSED" END SELECT ! END Figure 12-31.
Application in the Analyzer Mode (Post-tuning Drift Characteristics Measurement) This program repeats the device output frequency measurement at the speci ed DC power and tuning voltages during a speci ed time of more than 1 hour. It then displays the changes in this frequency over time. Note Be sure to use this program when you want to observe changes in the frequency for more than an hour.
d a 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 ! File Name : FIG12_39.
510 ! 520 OUTPUT @Hp4352;"VA" 530 OUTPUT @Hp4352;"MEAS TRAN" c 540 550 560 570 580 590 600 610 620 ! Select Analyzer Mode ! Select Frequency Transient Measurement ! Set Span ! Send Trace Data OUTPUT @Hp4352;"SPAN ";Stop_time/Time_scale OUTPUT @Hp4352;"INPUDATA #6006408"; OUTPUT @Dt;Dat(*),END OUTPUT @Hp4352;"AUTO" ! AUTO SCALE ! CLEAR SCREEN PRINT "TIME SCALE : ";Time_scale ! Print Time Scale ! END Figure 12-32.
Application in the Analyzer Mode (Automatic Measurement of All the 4352B's Measurement Parameters) This program automatically makes the following measurements: RF power vs. DC control (tuning) voltage characteristic. Frequency vs. DC control (tuning) voltage characteristic and Tuning sensitivity. Phase noise. Spectrum (Carrier and Third Harmonics). There are two programs.
d a 100 ! File Name : FIG12_41.
c 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 ! !******************************************************** ! Download: SUB Download(@Hp4352,File$) DIM Line$[1024] OUTPUT @Hp4352;"HOLD" OUTPUT @Hp4352;"PROG:DEL:ALL" OUTPUT @Hp4352;"PROG:DEF #0" ASSIGN @File TO File$ ON END @File GOTO End_of_file LOOP ENTER @File USING "K";Line$ OUTPUT @Hp4352;Line$ END LOOP End_of_file: ! OUTPUT @Hp4352;" " END ASSIGN @File TO * SUBEND Figure 12-33.
d a 100 ! File Name : FIG12_43.
d c a 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 810 820 830 840 850 860 870 880 ! Rf_power_setup:! OUTPUT @Hp4352;"MEAS POWE" OUTPUT @Hp4352;"STAR 1" OUTPUT @Hp4352;"STOP 4" OUTPUT @Hp4352;"POIN?" ENTER @Hp4352;N_powe RETURN ! Frequency_setup:! OUTPUT @Hp4352;"MEAS FREQ" OUTPUT @Hp4352;"SENSPOL POS" OUTPUT @Hp4352;"STAR 1" OUTPUT @Hp4352;"STOP 4" OUTPUT @Hp4352;"POIN?" ENTER @Hp4352;N_freq RETURN ! Phs_noise_setup:! OUTPUT @Hp4352;"MEA
d a 890 ! 900 ! 910 Rf_power:! 920 OUTPUT @Hp4352;"MEAS POWE" ! RF Power Measurement 930 EXECUTE "SING" ! Single Sweep 940 CALL Get_result(@Hp4352,@Dt,"OUTPSWPRM?",Swp_powe(*)) 950 960 970 980 990 1000 1010 1020 1030 1040 1050 1060 1070 1080 1090 1100 1110 1120 1130 1140 1150 1160 1170 c ! Read Sweep Parameters CALL Get_result(@Hp4352,@Dt,"OUTPDATA?",Dat_powe(*)) ! Read Data Trace Data OUTPUT @Ext_pc;N_powe,Swp_powe(*),Dat_powe(*) ! Send Result to External Controller RETURN ! Frequency:! OUTPUT @Hp4352;
1180 ! 1190 Spectrum:! 1200 OUTPUT @Hp4352;"MEAS SPEC" 1210 OUTPUT @Hp4352;"MKR ON" 1220 1230 OUTPUT @Hp4352;"AFC ON" OUTPUT @Hp4352;"AFCTARG ";Target_freq 1240 1250 EXECUTE "SING" OUTPUT @Hp4352;"CARRCENT" 1260 1270 1280 1290 1300 EXECUTE "SING" OUTPUT @Hp4352;"SEAM MAX" OUTPUT @Hp4352;"OUTPMKR?" ENTER @Hp4352;Lvl_1st,Frq_1st OUTPUT @Hp4352;"CARR3CENT" 1310 1320 1330 1340 1350 1360 EXECUTE "SING" OUTPUT @Hp4352;"SEAM MAX" OUTPUT @Hp4352;"OUTPMKR?" ENTER @Hp4352;Lvl_3rd,Frq_3rd OUTPUT @Hp4352;"AFC
File Transfer Function This section describes how to use the le transfer function, showing you a sample program. The le transfer function uses the external controller to transfer les between the selected storage device of this instrument (memory disk or diskette) and an external storage device (such as hard disk). This function allows you to: Directly access data you want to use on the external controller.
File Transfer from 4352B to External Controller This program transfers a speci ed le in the current directory of the 4352B to the current directory of the storage device connected to the external controller, giving a le name you desire. When executed, this program rst prompts you to enter a source le name, as shown below. Enter the name of a le you want to transfer.
c 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 810 ASSIGN @Dst_file TO Dst_file$ ! CLEAR @Hp4352 OUTPUT @Hp4352;"CLES" OUTPUT @Hp4352;"ROPEN """;Src_file$;"""" IF FNCheck_error(@Hp4352,"")=-1 THEN SUBEXIT ! LOOP OUTPUT @Hp4352;"READ?" ENTER @Hp4352 USING "#,2A";Dmy$ ENTER @Hp4352 USING "#,6A";Len$ Block_size=VAL(Len$) ! IF Block_size=0 THEN ENTER @Hp4352 USING "%,A";D
Lines 510 to 560 check the data length. If the data length is 0, the transfer process is terminated. Depending on the data length obtained in lines 590 to 610, the program adjusts the format and reads the data part. Line 620 writes the data to the destination le. The maximum length of data transferred at a time is 16 Kbytes. Therefore, if the size of the source le is greater than 16 Kbytes, the transfer routine, lines 460 to 650, is repeated until transferring all of the data is completed.
d 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 ! File Name : FIG12_48.
c 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 810 820 830 840 END SELECT Xfr_done=Xfr_done+Block_size ! ALLOCATE Dat$[Block_size] ! Img$="#,"&VAL$(Block_size)&"A" ENTER @Src_file USING Img$;Dat$ ! Img$="8A,ZZZZZZ,"&VAL$(Block_size)&"A" OUTPUT @Hp4352 USING Img$;"WRITE #6",Block_size,Dat$,END DEALLOCATE Dat$ IF FNCheck_error(@Hp4352," ")=-1 THEN SUBEXIT END LOOP SUBEND ! ! Instrument Error Check ! DEF FNCheck_error(@Hp4352,Str$) DIM Err$[64]
Displaying List of Files in Current Directory This program displays the list of the les in the current directory. d c 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 ! File Name : FIG12_49.
The following is the output result of the program, assuming that the selected storage device is the memory disk and the current directory, nTEST, contains 2 les, FILE1.STA (size: 24576 bytes) and FILE2.TIF (size: 16384 bytes) and 1 directory, DIR1. For size of a directory, -1 is displayed. To view the list of the les in DIR1, use the CHAD command to change the current directory to DIR1 and then execute this program again. [MEMO]: \TEST Size[byte] File Name ------------------------1 ..
A Manual Changes Introduction This appendix contains the information required to adapt this manual to earlier versions or con gurations of the 4352B than the current printing date of this manual. The information in this manual applies directly to the 4352B if its serial number pre x is the same as that listed on the title page of this manual.
Serial Number Agilent Technologies uses a two-part, ten-character serial number that is stamped on the serial number plate (see Figure A-1) attached to the rear panel. The rst ve characteristics are the serial pre x and the last ve digits are the su x. Figure A-1.
Change 1 The rmware revision 1.00 does not support the following commands. Please delete the descriptions about these commands in this manual.
Change 2 The rmware revision 1.02 or later does not support the following commands. Please delete the descriptions about these commands in this manual.
B Key Codes Figure B-1 lists the key codes for the front panel keys. You can use one of these key codes as a parameter of the GPIB command KEY. Figure B-1.
C Data Formats Data Formats There are four di erent types of data formats used to transfer data from the 4352B via GPIB. You must consider the data format not only at data transfer, but also when making the data array declaration of either real or integer because this format determines the type of data to be transferred. Form 2 Form 2 is IEEE 32-bit oating point format. This format expresses a number in four bytes. Figure C-1 shows the data transfer format of Form 2 in the Tester mode. Figure C-1.
Figure C-3. The Data Transfer Format for Form 3 (Tester mode) When the Analyzer mode is selected, the data trace is transferred in a similar manner to Form 2, except it is transferred in sequences of 8-byte data. For example, the data length for 201 measurement values will be 1,608 bytes. Figure C-4 shows the data transfer format of Form 3 in the Analyzer mode. Figure C-4. The Data Transfer Format for Form 3 (Analyzer mode) Form 4 Form 4 is the ASCII data transfer format.
D I/O Port Function Speci cations The 4352B's rear panel provides two parallel I/O ports, a 24-bit parallel I/O port that enables a 24-bit output or an 8-bit input at maximum, and a 12-bit parallel I/O port that enables 8-bit output and 4-bit input. These I/O ports enable the handshake between the 4352B and an external controller such as a PC or an external device such as handlers used in production line testing. To control these I/O ports, you must use either GPIB commands or some special IBASIC commands.
24-bit I/O port The 24-bit I/O Port The 4352B's 24-bit I/O port has four independent parallel ports for data input or output, and several control signal and power lines. All signals are TTL level. The data I/O port consists of 2 pairs of 8-bit output ports and 2 pairs of 4-bit two-ways ports. If you use these ports together, you can use them as a 24-bit output port or as an 8-bit input port at maximum.
24-bit I/O port WRITE STROBE Output Signal When data is output to any output port, a negative pulse is output to the WRITE STROBE output. This negative output pulse noti es an external device of data output to the parallel I/O port. The pulse width is 10 s (typical). Figure D-1 shows the timing chart for the WRITE STROBE output and data output. Figure D-1. Write Strobe Signal Timing Chart INPUT1 Input Signal When a negative pulse is input to INPUT1, OUTPUT1 and OUTPUT2 are set to LOW or HIGH.
24-bit I/O port +5V Output A +5V output can be provided to an external device. The maximum current supplied is 100 mA. This line does not have a fuse. When excessive current ows, the 4352B's protection circuit automatically shuts down its internal power supply circuits. If you remove the cause of the excessive current, the 4352B's power will be turned on but the 4352B's setups are reset to the default settings.
24-bit I/O port Figure D-2 shows the overview of I/O ports and control signal lines. Figure D-2. The Overview of 24-bit I/O Ports Pin Assignment Figure D-3 shows the pin numbers. Table D-1 shows the signal lines assigned to the pin numbers. Figure D-3.
24-bit I/O port Table D-1. Assignment of Signals to Pins (Standard) Pin No.
24-bit I/O port Power-ON Default The 24-bit I/O port is set to the following defaults at power-on. (These settings do not change when 4Preset5 is pressed.
24-bit I/O port Basic I/O circuit Table D-2. 24-bit I/O Port, Basic I/O Circuit Basic circuit I/O pin Basic circuit Input port INPUT1 Output port I/O pins OUTPUT1, 2 port A1 , B1 , C(output)1 , D(output)1 Write strobe signal SWEEP END signal Port C status, Port D status 1 Port C, D (input)1 Others +5V pullup Common to all bits IBASIC Commands for 24-bit I/O Port Control IBASIC commands related to 24-bit I/O port are described in the following paragraphs.
24-bit I/O port WRITEIO WRITEIO WRITEIO WRITEIO 16,4; 16,5; 16,6; 16,7; Output 8-bit data to port E. Output 16-bit data to port F. Output 20-bit data to port G. Output 24-bit data to port H. Data Input The following commands read data sent from an external device to an input port (C to E) and return the value to an HP IBASIC program. If you use the port as an input port, the port must be de ned as an input port using the GPIB commands CIN and/or DIN.
24-bit I/O port Positive or Negative Logic Setting You can set the logic level of the following ports and signal to negative or positive using the following GPIB command NEGL or POSL. When the power is turned ON, negative logic is set. 4Preset5 does not a ect this setup. This setup is saved to an instrument state le using the Save function. Output ports A to H Input ports C and D PASS/FAIL signal NEGL Sets negative logic. POSL Sets positive logic.
12-bit I/O port 12-bit I/O port The 4352B's 12-bit I/O port consists of an 8-bit output, a 4-bit input, and three ground terminals. This I/O port also uses TTL level operation. I/O Pins Figure D-4 shows the I/O pins. Figure D-4. The I/O Port Pin The signals assigned to each pin are described below: OUT 0 through 7 Signal lines used to output signals to an external device. They are controlled by the command, WRITEIO or OUT8IO as described below.
12-bit I/O port GPIB Commands for the 12-bit I/O Port Control The GPIB commands related to the parallel I/O ports are described below: OUT8IO Outputs 8-bit data through lines OUT 0 to OUT 7. The OUT 0 signal is the LSB (least signi cant bit), and the OUT 7 signal is the MSB (most signi cant bit). INP8IO? Inputs 4-bit data through lines from IN 0 to IN 3 to the 4352B's memory and returns the data to a control device such as an external controller IBASIC program.
Error Message This section lists the error messages that are displayed on the 4352B display or transmitted by the instrument over GPIB. Each error message is accompanied by an explanation, and suggestions are provided to help in solving the problem. Where applicable, references are provided to the related chapter of the appropriate manual. When displayed, error messages are preceded with the word \CAUTION:." That part of the error message has been omitted here for the sake or brevity.
Error Messages (Alphabetical Order) Error Messages in Alphabetical Order 1st IF Out Of Range The 4352B's 1st IF frequency is outside of the proper range. Possible problems and the corrective action are shown below: The frequency of the external signal generator is not correct. The 4352B has not performed automatic control of the external signal generator via GPIB ( LO CONTROL MAN and/or ADDRESSABLE ONLY is selected). Verify the frequency of the external signal generator.
Error Messages (Alphabetical Order) A/D Overload in Downconverter Unit An over ow occurred in the A/D converter of the 43521A (Down Converter Unit). If this error occurs often, the 43521A may be at fault and need repair. Contact our service o ce or the company from which you purchased this instrument. 71 AFC Out Of Loop The automatic frequency control function could not follow the uctuation in the measurement condition, and did not converge on the target frequency.
Error Messages (Alphabetical Order) 100 CAN'T CHANGE- ANOTHER CONTROLLER ON BUS The 4352B cannot assume the mode of system controller until the active controller is removed from the bus or relinquishes the bus. See the 4352B Programming Guide. CAN'T CHANGE NUMBER OF POINTS The number of points in the spectrum measurement cannot be changed manually, except in zero span. 144 CAN'T SAVE GRAPHICS WHEN COPY IN PROGRESS If you attempt to save graphics when a print is in progress, this error message is displayed.
Error Messages (Alphabetical Order) Command Ignored - Invalid Freq Band This message appears if you execute the TRMIN or TRMAX GPIB command when DOWNCONV ON off is set to ON and a frequency band other than 10 MHz to 3 GHz (high frequency band) is selected. The command is ignored.
Error Messages (Alphabetical Order) 76 DC Power Current Overload The current through the DC POWER connector is too large (50 mA or more). Possible problems and the corrective action are shown below: The DUT's power current is too large. Verify that the DUT is correctly connected to the 4352B. An e ect of the high value capacitor connected to the DUT's power voltage (Vcc ) terminal. This is a transient error. Wait until the DC POWER voltage is stabilized, then perform the measurement.
Error Messages (Alphabetical Order) 0105 GET not allowed A Group Execute Trigger (GET) was received within a program message (see IEEE 488.2, 7.7). 0240 Hardware error Indicates that a legal program command or query could not be executed because of a hardware problem in the 4352B. De nition of what constitutes a hard ware problem is completely device-speci c. This error message might be displayed if the 4352B detects an unknown problem related to errors 0241 through 0249.
Error Messages (Alphabetical Order) This message is also displayed if a positive DC voltage component (TTL output, etc.) is included in the DUT's output signal. In this case, insert a high-pass lter to su ciently eliminate the positive DC voltage component. 0161 Invalid block data A block data element was expected, but was invalid for some reason (see IEEE 488.2, 7.7.6.2). For example, an END message was received before the length was satis ed.
Error Messages (Alphabetical Order) LIF-DOS COPY NOT ALLOWED Indicates that you tried to copy a le between the di erent formatted disks. For example, if you try to copy a le between the RAM disk and the exible disk when the format of the RAM disk is di erent from the format of the exible disk, this message is displayed. 133 0250 Mass Storage Error Indicates that a mass storage error occurred. This error message might be displayed if the 4352B detects an unknown problem related to error 0257.
Error Messages (Alphabetical Order) 118 NO FIXED DELTA MARKER The xed 1marker was not turned on. Be sure to turn the xed 1marker on before using FIXED 1MKR VALUE or FIXED 1MKR AUX VALUE . NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 114 NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NO MARKER DELTA - RANGE NOT SET Indicates that MKR1!SEARCH RNG was selected when the 1marker is not turned on.
Error Messages (Alphabetical Order) Noise Overload The noise level during a C/N ratio measurement or a phase noise measurement is too large. This is caused by either the DUT's noise level being too large or by the DUT's spurious component being too large in the measurement range. Verify the spectrum of the DUT's output signal. 55 NOT ENOUGH DATA The amount of data sent to the 4352B is less than that expected when the data transfer format is binary.
Error Messages (Alphabetical Order) 0112 Program mnemonic too long The header contains more than twelve characters (see IEEE 488.2, 7.6.1.4.1). 0286 Program runtime error A program runtime error of the HP instrument BASIC has occurred. To get more speci c error information, use the ERRM$ or ERRN command (HP instrument BASIC). 0285 Program syntax error Indicates that a syntax error appears in a downloaded program. The syntax used when parsing the downloaded program is device-speci c.
Error Messages (Alphabetical Order) Verify that the DUT generates the proper signal, and inputs it to the 4352B RF IN connector. If the signal is generated, check its frequency. Press 4Sense Range5, MAX TRANS FREQ or MIN TRANS FREQ , and the entry keys to change the detection bandwidth, if required.
Error Messages (Alphabetical Order) 41 Set RF ATT 5 dB Less Press 4Sense Range5, RF ATTN , and the entry keys to set a value 5 dB lower than the current setting. NNNNNNNNNNNNNNNNNNNNNNN 42 Set RF ATT 5 dB More Press 4Sense Range5, RF ATTN , and the entry keys to set a value 5 dB higher than the current setting. NNNNNNNNNNNNNNNNNNNNNNN 0221 Settings con ict A legal program data element was parsed but could not be executed due to the current device state (See IEEE 488.2, 6.4.5.3, and 11.5.1.1.5.).
Error Messages (Alphabetical Order) Thermometer Out Of Range The 4352B's internal thermometer reading is out of the proper range. Adjustment or repair is necessary. Contact our service o ce or the company from which you purchased the 4352B. 82 0124 Too many digits The mantissa of a decimal numeric data element contains more than 255 digits excluding leading zeros (see IEEE 488.2, 7.7.2.4.1).
Error Messages (Numerical Order) Error Messages in Numerical Order Note The positive number error messages are listed rst, and then negative number error messages are listed. (No error) The error queue is empty. Every error in the queue has been read (OUTPERRO? query) or the queue was cleared by power-on or the 3CLS command. 0 BACKUP DATA LOST Data checksum error on the battery backup memory has occurred. Wait until the battery is re-charged (approximately 10 minutes after turning the 4352B on).
Error Messages (Numerical Order) 41 Set RF ATT 5 dB Less Press 4Sense Range5, RF ATTN , and the entry keys to set a value 5 dB lower than the current setting. NNNNNNNNNNNNNNNNNNNNNNN 42 Set RF ATT 5 dB More Press 4Sense Range5, RF ATTN , and the entry keys to set a value 5 dB higher than the current setting. NNNNNNNNNNNNNNNNNNNNNNN F-V Input Under ow The input frequency to the 4352B's F-V converter is too low.
Error Messages (Numerical Order) The tuning sensitivity is improperly set. Press 4Menu5, AUTO FREQ CONTROL , SENSITIVITY , and the entry keys to specify a proper tuning sensitivity (the unit is [Hz/V]). The maximum value of the control voltage is too small. Press 4Menu5, AUTO FREQ CONTROL , MAX CTRL VOLTAGE , and the entry keys to specify a maximum value larger than the current setting.
Error Messages (Numerical Order) Carrier Overload The carrier level in a C/N ratio measurement or a phase noise measurement is too large. The 4352B RF IN connector's input level is too large. Verify the input level to the 4352B RF IN connector. 54 Noise Overload The noise level during a C/N ratio measurement or a phase noise measurement is too large. This is caused by either the DUT's noise level being too large or by the DUT's spurious component being too large in the measurement range.
Error Messages (Numerical Order) 61 No Downconverter Unit Connected This message appears in the following cases. When you try to set DOWNCONV on OFF to ON with the 43521A (Down Converter Unit) disconnected. When you try to set DOWNCONV on OFF to ON with the 43521A turned o . NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN When you turn o the 43521A with DOWNCONV ON off set to ON.
Error Messages (Numerical Order) A/D Overload The input level to the 4352B's internal A/D converter is too large. Adjustment or repair is necessary. Contact our service o ce or the company from which you purchased the 4352B. 70 A/D Overload in Downconverter Unit An over ow occurred in the A/D converter of the 43521A (Down Converter Unit). If this error occurs often, the 43521A may be at fault and need repair. Contact our service o ce or the company from which you purchased this instrument.
Error Messages (Numerical Order) 79 X-tal PLL Unlocked (40 MHz) The 4352B's internal PLL cannot be locked. Verify the reference frequency input to the EXT REF input connector on the 4352B rear panel is 10 MHz 6 100 Hz. X-tal PLL Unlocked (85.6 MHz) The 4352B's internal PLL cannot be locked. Adjustment or repair is necessary. Contact our service o ce or the company from which you purchased the 4352B. 80 2nd PLL Unlocked The 4352B's internal 2nd PLL cannot be locked.
Error Messages (Numerical Order) ANALYZER TYPE MISMATCH Indicates the invalid function was selected in the present measurement item. Change the measurement item, or select the di erent function. 102 111 NO DATA TRACE Indicates that MKR ON [DATA] was pressed when no data trace is displayed. NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN 112 NO MEMORY TRACE Indicates that MKR ON [MEMORY] was selected when no memory trace is displayed.
Error Messages (Numerical Order) 133 LIF-DOS COPY NOT ALLOWED Indicates that you tried to copy a le between di erent formatted disks. For example, if you try to copy a le between the RAM disk and the exible disk when the format of the RAM disk is di erent from the format of the exible disk, this message is displayed. NO STATE/DATA FILES ON MEMORY There are no les with extensions (\_D" or \_S" for LIF format, or \.STA" or \.DTA" for DOS format) in the RAM disk memory.
Error Messages (Numerical Order) 0100 Command error This is a generic syntax error that the 4352B displays when it cannot detect more speci c errors. This code indicates only that a command error, as de ned in IEEE 488.2, 11.5.1.1.4, has occurred. 0101 Invalid character A syntax element contains a character that is invalid for that type. For example, a header containing an ampersand (SING&). 0102 Syntax error An unrecognized command or data type was encountered.
Error Messages (Numerical Order) 0114 Header Su x out of range The value of a numeric su x attached to a program mnemonic makes the header invalid. 0120 Numeric data error This error, as well as errors 0121 through 0129, are generated when parsing a data element that appears to be numeric, including the nondecimal numeric types. This error message might be displayed if the 4352B detects an unknown problem.
Error Messages (Numerical Order) 0144 Character data too long The character data element contains more than twelve characters (see IEEE 488.2, 7.7.1.4). 0148 Character data not allowed A legal character data element was encountered where prohibited by the 4352B. 0150 String data error This error, as well as errors 0151 and 0158, are generated when analyzing the syntax of a string data element. This error message might be displayed if the 4352B detects an unknown problem.
Error Messages (Numerical Order) 0220 Parameter error Indicates that a program data element related error occurred. This error message might be displayed if the 4352B detects an unknown problem related to 0221 through 0229. 0221 Settings con ict A legal program data element was parsed but could not be executed due to the current device state (See IEEE 488.2, 6.4.5.3, and 11.5.1.1.5.).
Error Messages (Numerical Order) 0280 Program error Indicates that a downloaded program-related execution error occurred. This error message might be displayed if the 4352B detects an unknown problem related to errors 0281 through 0289. 0281 Cannot create program Indicates that an attempt to create a program was unsuccessful. A reason for the failure might include not enough memory. 0282 Illegal program name The name used to reference a program was invalid.
Error Messages (Numerical Order) 0410 Query INTERRUPTED A condition causing an interrupted query error occurred (see IEEE 488.2, 6.3.2.3). For example, a query followed by DAB or GET before a response was completely sent. 0420 Query UNTERMINATED A condition causing an unterminated query error occurred (see IEEE 488.2, 6.3.2.2). For example, the 4352B was addressed to talk and an incomplete program message was received by the controller.
Index 2 24-bit I/O port, 12-18 A active controller, 6-1 ADDRCONTt, 11-3 address, 1-2, 1-4 ADDRSGt, 11-3 AFCITERt, 9-3, 10-3 AFCMAXVt, 9-3, 10-3 AFCMINVt, 9-4, 10-4 AFCt{OFF|0|ON|1}, 9-3, 10-3 AFCSENSt, 9-4, 10-4 AFCTARGt, 9-4, 10-4 AFCTOLt, 9-5, 10-5 ASCII data transfer, 4-3, 4-9 ASSIGN, 1-7 AUTO, 10-5 AVERFACTt, 9-5, 10-5 AVERt{OFF|0|ON|1}, 9-5, 10-5 AVERREST, 9-5, 10-5 B BACIt, 11-3 BEEPDONEt{OFF|0|ON|1}, 11-3
E ENABLE INTR, 3-4 ENKEY, 11-9 ENTER, 1-8 error message, Messages-1 ESB?, 11-10 *ESE, 3-6 ESNB, 3-3 ESNBt, 11-10 *ESR?, 3-8 Event Status Enable Register, 3-6 Event Status Enable Register B, 3-3 Event Status Register B, 3-3, 8-2, 8-4 EXDATLIML, 10-11 EXDATLIMU, 10-12 F FBANDt, 9-10, 10-12 FCOUNt{RES1KHZ|RES64KHZ}, 9-11, 10-12 FILCt,,,, 11-10 K key code, B-1 KEYt, 11-13 L LCOMPt{OFF|0|ON|1}, 9-11,
N NATTt, 9-14, 10-21 NEGL, 11-14 NEXP, 11-14 NOMFREQt, 9-15, 10-21 O ON INTR, 3-4 *OPC?, 3-2 OPEP, 11-14 Operation Status Negative Transition Filter, 8-6 Operation Status Positive Transition Filter, 8-6 Operation Status Register, 8-2, 8-5 OSEt, 11-14 OSER?, 11-15 OSNT, 8-6 OSNTt, 11-15 OSPT, 8-6 OSPTt, 11-15 OSR?, 11-15 OUT1ENVH, 11-15 OUT1ENVL, 11-15 OUT1H, 11-15 OUT1L, 11-15 OUT2ENVH, 11-16 OUT2ENVL, 11-16 OUT2H, 11-16 OUT2L, 11-16 OUT8IO , D-12 OUT8IOt
:PROGram[:SELected]:NUMBer t, [, [, . . . [,], 11-36 :PROGram[:SELected]:STATet {RUN|PAUSe|STOP|CONTinue}, 11-36 :PROGram[:SELected]:STRing t,[,[, . . .
TRTPOSt, 10-38 Typeface Conventions, 9-2, 10-2, 11-2 VPOWt, 9-20, 10-39 VT, 4-5, 4-7, 10-39 V W VA, 4-12, 9-19 VBWt, 10-38 VCTRLt, 9-19, 10-39 VOUTt{OFF|0|ON|1}, 9-19, 10-39 WOPENt, 11-27 WRITEt, 11-28 WRITEIO, 12-25 Write strobe, D-3 Index-5
REGIONAL SALES AND SUPPORT OFFICES For more information about Agilent Technologies test and measurement products, applications, services, and for a current sales office listing, visit our web site: http://www.agilent.com/find/tmdir. You can also contact one of the following centers and ask for a test and measurement sales representative. 11/29/99 United States: Agilent Technologies Test and Measurement Call Center P.O.