Wiltron 360B Programming Manual

Vector network analyzer
Hide thumbs Also See for 360B:
Table of Contents

Advertisement

Quick Links

MODEL
360B
VECTOR NETWORK ANALYZER
GPIB PROGRAMMING MANUAL
Software Version 4.03
490 JARVIS DRIVE
P/N: 10410-00113
MORGAN HILL, CA 95037-2809
REVISION: B
PRINTED: SEPTEMBER 1993
COPYRIGHT 1991 WILTRON CO.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 360B and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Wiltron 360B

  • Page 1 MODEL 360B VECTOR NETWORK ANALYZER GPIB PROGRAMMING MANUAL Software Version 4.03 490 JARVIS DRIVE P/N: 10410-00113 MORGAN HILL, CA 95037-2809 REVISION: B PRINTED: SEPTEMBER 1993 COPYRIGHT 1991 WILTRON CO.
  • Page 2 WARRANTY The WILTRON product(s) listed on the title page is (are) warranted against defects in materials and workmanship for one year from the date of shipment, except for YIG-tuned oscillators, which are warranted for two years. WILTRON’s obligation covers repairing or replacing products which prove to be defective during the warranty period.
  • Page 3 This chapter describes the manual and contains a brief de- scription of the GPIB hardware and the GPIB data trans- fer and control functions. It also describes the 360B VNA GPIB interface function subset capability and response to IEEE-488 interface function messages.
  • Page 4 This tab section includes application notes pertaining to 360B GPIB programming. GPIB Command Function Index This index lists the GPIB commands for the 360B by func- tion. The paragraph number and page number for each of 28 GPIB command function categories are referenced.
  • Page 5: Table Of Contents

    INTRODUCTION ....1-3 Relationship of This Manual to Other 360B VNA Manuals ....1-3 How to Use This Manual .
  • Page 6: Introduction

    Chapter 1 General GPIB Information INTRODUCTION This manual describes remote operation of the WILTRON 360B Vector Network Analyzer using IEEE-488 Interface Function Messages and 360B GPIB Commands (i.e., Product Specific Commands). Included is a description of the IEEE-488 General Purpose Interface Bus (GPIB) hardware and the bus data transfer and control functions.
  • Page 7: How To Use This Manual

    The remainder of the manual is or- ganized as follows: Chapter 2 — Introduction to GPIB Programming for the 360B VNA — contains a brief introduction to GPIB programming techniques and describes proce- dures to be used when preparing GPIB programs for the 360B VNA.
  • Page 8: Command Categories Used In This Manual

    Calibration Functions The set of calibration commands can be used to set up the calibration parameters under program con- trol and to guide an operator through the 360B VNA calibration process. These commands are described in Chapter 4. GPIB Unique Functions...
  • Page 9 GPIB to a 360B VNA REPRESENTED and other microwave instruments. The second dedicated BY LOW STATE ON GPIB that is part of the 360B VNA is not shown (refer to THESE TWO LINES Figure 2-1 in the next section). **IF USED Figure 1-1.
  • Page 10: Ieee-488 Hardware Interface

    Data Bus DIO1–DIO8 Data Input/Output, 1 thru 8 Data Byte Trans- Data Available fer and Control NRFD Not Ready For Data NDAC Not Data Accepted General Attention Interface Control Interface Clear Service Request Remote Enable End Or Identify 360B GPIB PM...
  • Page 11 In summation, the wired-OR con- struction forces a talker to wait for the slowest in- strument to accept the current data byte before placing a new data byte on the bus. 360B GPIB PM...
  • Page 12: Ieee-488 Interface Functions And Protocols

    Table 1-2 lists the functional subset supported by the 360B VNA. Table 1-2. 360B VNA GPIB Interface Function Subset Capability Function Function 360B Capability...
  • Page 13 These commands (also referred to as “360B GPIB commands”) are transmitted over the data bus of the GPIB interface to the 360B VNA in the form of ASCII strings containing one or more codes. They are decoded by the internal 360B VNA controller and cause the various measurement functions of the system to be performed.
  • Page 14 To send this message, the 360B VNA sets the SRQ bit of the General Interface Management Bus true and then sends a status byte on the data bus lines.
  • Page 15 INFORMATION OPERATION 360B VNA GPIB All of the front panel control functions of the 360B VNA, except for OPERATION LINE ON/OFF, are controllable using 360B GPIB commands sent from the external computer. When in the GPIB operating mode, the 360B VNA functions as both a listener and a talker (Table 1-2).
  • Page 16: Vna Gpib Operation

    GENERAL GPIB 360B VNA GPIB INFORMATION OPERATION Table 1-3. 360B VNA Response to IEEE-488 Interface Function Messages Inter- face Message Addressed Func- 360B VNA Response Function Command tion Message Device Clear Resets the 360B to its default state. Selected Equivalent to the RST Device Clear command.
  • Page 17 It also sends an SRQ (if enabled) to the external computer. The error is cleared upon execution of the next instruction. Action Requested Not Possible The 360B sends an SRQ (if enabled) to the external computer and ignores the command. 1-14 360B GPIB PM...
  • Page 18 360B GPIB PROGRAMMING BASICS ..2-6 360B GPIB Command Set ....2-6 Command Syntax ....2-6 Programming Tips .
  • Page 19: Introduction

    This chapter contains a brief introduction to GPIB programming tech- niques and describes procedures to be used when preparing GPIB pro- grams for the 360B VNA. It includes information about equipment re- quirements and configuration for GPIB control of the 360B VNA, 360B GPIB command syntax, and programming tips.
  • Page 20 Once the software has finished load- ing, the 360B is ready to be remotely controlled via the GPIB. It is important to note that the 360B will not respond to GPIB commands until the 360B sys- tem software has been loaded.
  • Page 21: Equipment And Configuration

    (36SSXX (or 66XXB/67XXB) Series) ** DEDICATED GPIB FOR 360 SYSTEM USE. Figure 2-1. Minimum 360B VNA Configuration with GPIB Control Default GPIB The default GPIB address for the 360B is 06, and Operating the default data delimiting terminator is CR-LF. The Parameters...
  • Page 22: Gpib Programming Basics

    PROGRAMMING FOR THE 360B VNA PROGRAMMING BASICS 360B GPIB In the “remote” mode of operation, the 360B is controlled using IEEE- PROGRAMMING BASICS 488 Product Specific Commands and Interface Function Messages. The Product Specific Commands are a set of pre-defined mnemonics that are unique to the WILTRON Model 360B Vector Network Analyzer.
  • Page 23: Programming Tips

    These terminators are codes that perform the same function as the termination keys located on the front panel of the 360B. Example: To enter a start fre- quency using the 360B front panel keys, type “40"; then press the ”MHz" terminator key. Likewise, a nu-...
  • Page 24 Application Note AN360-8 lists and describes an example main program and associated program functions written in “C” that initialize the 360B and perform calibration, measurement and data output functions. Application Note AN360-9 contains a similar example of a main program and associated subprograms written in HP BASIC.
  • Page 25 Front panel setup involves the configuration of the Setup 360B for a particular measurement. In the “Setup” subroutine, the 360B is set up to display all four S-Parameters ( ). The graph type for all four channels is set to Log Magnitude and Phase (...
  • Page 26 360B calibration are also presented in Chapter 4. Measurement The commands that control the measurement func- and Data tions of the 360B VNA are listed and described in Output paragraph 3-4, “Measurement Control Commands.” These commands mimic the measurement opera- tions that are performed using the 360B front panel keys and menus.
  • Page 27 PROGRAM STRUCTURE Data The commands that control the transfer of data to Transfer Pro- and from the 360B are listed and described in para- gramming graph 5-3, “Data Transfer Commands.” The func- tions performed by many of these commands are unique—most do not have direct counterparts when...
  • Page 28: Typical Gpib Program Structure

    Example Main Program The main program shown in Figure 2-5 performs the following operations: 1. The 360B and GPIB are initialized to a known state by the first two program functions so that the program starts under identical conditions each time it is run:...
  • Page 29 TYPICAL GPIB PROGRAMMING FOR THE 360B VNA PROGRAM STRUCTURE /*************************************************************/ Program to Transfer Data over the GPIB to/from a Wiltron 360 Vector Network Analyzer using an IBM AT Computer with National Instruments GPIB Written in Microsoft C /*************************************************************/ #include <stdio.h>...
  • Page 30 360B to trigger a sweep ( ), wait a full sweep ) and hold ( 4. The 360B is then instructed to output the data types listed below to the external computer. The external computer reads the data sent from the 360B using multiple functions.
  • Page 31 INTRODUCTION TO GPIB TYPICAL GPIB PROGRAMMING FOR THE 360B VNA PROGRAM STRUCTURE /*————————————————————————————— Data Output Function Setup, calibrate and measure a_device, transfer data from 360 to controller, and return 360 to local operation. —————————————————————————————*/ xfr_from_360(vna) ibwrt(vna,"RTL",3); printf(“\n\t\t* INSTRUCTIONS *”); printf(“\n\t\t* Perform a Reflection Only calibration, *”);...
  • Page 32: Front Panel Setup

    Figure 2-7, sheet 2) then displays the measure- ment frequency data and calibration coefficients on the external computer monitor (Figure 2-8). 3. The 360B is then instructed to input the data types listed below from the external computer. The external computer sends the data to the 360B using multiple functions.
  • Page 33 INTRODUCTION TO GPIB TYPICAL GPIB PROGRAMMING FOR THE 360B VNA PROGRAM STRUCTURE /*————————————————————————————- Data Input Function Reset 360 to default parameters, transfer data from controller to 360, and turn on calibration. ————————————————————————————-*/ xfr_to_360(vna) printf(“\n\t\t* PRESS ANY KEY *”); printf(“\n\t\t* TO DISPLAY CAL DATA AND OUTPUT DATA TO 360*\n”);...
  • Page 34: Calibration

    INTRODUCTION TO GPIB TYPICAL GPIB PROGRAMMING FOR THE 360B VNA PROGRAM STRUCTURE printf(“\n\n\t\t —- 360 data transfer completed —-”); prn_data() points=cal_headr.size/16; printf(“\n\n\n\t\t —- CALIBRATION COEFFICIENTS —-”); printf(“\nFREQUENCY CAL1 CAL2"); printf(“ CAL3\n”); printf(“ (GHz) (Real) (Imag) (Real) (Imag)”); printf(“ (Real) (Imag)\n”);...
  • Page 35 Chapter 3 Front Panel Functions Table of Contents INTRODUCTION ....3-3 CHANNEL CONTROL COMMANDS ..3-4 DATA ENTRY TERMINATOR CODES ..3-4 MEASUREMENT CONTROL COMMANDS .
  • Page 36: Introduction

    This chapter describes the GPIB Product Specific Commands that con- trol the basic test and measurement functions associated with the 360B VNA front panel controls and menus. In this chapter, these mes- sages are referred to as “360B GPIB commands” or simply “commands”.
  • Page 37: Channel Control Commands

    The commands listed in Table 3-1 set up the current display mode and COMMANDS active channel for the 360B VNA. Commands CH1–CH4 select the ac- tive channel. The active channel is that channel to which any channel- based changes are applied. Commands D13, D14, D24, DSP, T13, and T24 select which channels are displayed.
  • Page 38: Measurement Control Commands

    PWR (value) Sets source 1 power level in dBm. Value depends on power range of source. Terminates in DBM, XX1, XX3, XM3. Sets RF off while in hold Sets RF on while in hold on active channel Measures S 360B PM...
  • Page 39 STP (value) Sets stop to any frequency between start and stop frequency. Terminates in GHZ, MHZ, KHZ. Places the 360B into a continuous swept mode. TA1 (value) Sets test set test port 1 and test port 2 attenuators. Possible TA2 (value) values are from 0 to 100, depending on test set in use.
  • Page 40: Display Control Commands

    SME, ISE, SMC, and ISC commands. REF Command — This command selects which graticule line will be considered the “reference.” Notice that for graphs with one type of in- formation—such as MAG or PHA—the allowable reference line values 360B PM...
  • Page 41 OFF (value) Sets offset for display on active Depends on channel. graph type Mag offset: 999.99 to – 999.99 Phase offset: –360 to +360 Polar offset: 999.99 – – 1000.0 Lin polar offset: 360B PM...
  • Page 42 200 max Selects compressed Smith chart DBL, XX1 (value) for active channel SME (value) Selects expanded Smith chart 10, 20, 30 DBL, XX1 for active channel Selects normal Smith chart for active channel Selects SWR display for active channel 360B PM...
  • Page 43: Enhancement Commands

    The commands listed in Table 3-5 control the data enhancement func- COMMANDS tions of the 360B VNA. These include IF bandwidth, averaging, and smoothing. Note that for the averaging function the maximum averag- ing number is 4095. For the smoothing function, the maximum smooth- ing number is 20 (%).
  • Page 44: Reference Delay Commands

    (2.1) Sets automatic reference delay calculation RDD (value) Sets reference delay in –999.999 to MMT, CMT, distance for active channel 999.999 RDT (value) Sets reference delay in time for –999.999 to PSC, NSC, 999.999 µs active channel 360B PM 3-11...
  • Page 45: Trace Memory Commands

    STD command. Example: “WFS STD DIV DNM” This example code causes the 360B to: Wait a full sweep until data is valid (WFS). Store data to memory (STD). Select complex division as the trace math (DIV).
  • Page 46: Marker Commands

    The M1S–M6S, M1E–M6E and M1C–M6C command are used to de- fine a marker sweep using the specified marker for either the start, stop, or CW frequency. This code sequence causes the 360B to: Wait for a full sweep of data to be present (WFS).
  • Page 47 Sets active marker to minimum trace value Sets active marker to maximum trace value MO1-MO6 Turns off marker 1-6 Sets Marker display off Sets Marker display on MR1-MR6 Sets Read-out frequency at marker 1-6 (through GPIB) 3-14 360B PM...
  • Page 48: Limits Commands

    Turns on lower limit and set to value. Value and terminator de- pend on the graph type. Turns limits display off Turns limits display on LUP (value) Turns on upper limit and set to value. Value and terminator depends on the graph type. 360B PM 3-15...
  • Page 49: Hard Copy Commands

    Stop print/plot characters specified for the command. An example of embedding quote Prints tabular data for characters in a string sent to the 360B is shown in Figure 3-1. This displayed traces example is written in HP 85 BASIC. ! EXAMPLE OF USE OF STRINGS 20 Q$=CHR$(34) ! QUOTE SYMBOL 30 M$="4_TO_8_FILTR"...
  • Page 50 Selects quarter-size plot, bottom right corner Selects full-size plot. PT0-PT9 Selects tabular printout points skipped, 0-9. Selects quarter-size plot, top left corner. Selects quarter-size plot, top right corner. SPD (value) Defines pen speed percentage. 10 to 100 XX1, XX3, 360B PM 3-17...
  • Page 51: System State Commands

    Sets CRT blanking on Sets display for a totally blank screen. (screen blanked). The 360B is fully operational over the GPIB but nothing appears on display. This code is useful for security reasons. Sets CRT blanking off Turns off screen blanking.
  • Page 52 Displays V male connector information. Displays waveguide parameters. Causes frequency Instructs the 360B to blank any fre- information to be quency information from the screen and blanked. any hard copy output. This code is useful for security reasons.
  • Page 53: Test Set Multiplexer Control Commands

    3-13 TEST SET Table 3-13 list the test set multiplexer commands. These commands MULTIPLEXER control the 360B Test Set Multiplexer during remote (GPIB) system op- CONTROL COMMANDS eration. Command ACF—Accept 360B System Configuration—is normally used in conjunction with these commands (refer to paragraph 3-12). Com- mands SFA and SFB are used to control an external A/B RF switch (if used).
  • Page 54: Video Switch Control Commands

    The video output control commands perform the same functions as the U7 menu selections. (The U7 menu is invoked from the VIDEO CON- FIGURATION selection of the U1 Utility Menu; refer to the 360B Vec- tor Network Analyzer Operation Manual.) Table 3-14.
  • Page 55: Pulse System Command

    Pulsed VNA system. This command provides control of the 3636A Pulsed/CW Test Set pulse modulators by writing a control byte image to the modulator control register of the test set (via the 360B VNA). Re- fer to the 360PS20A Pulsed/CW Vector Network Analyzer Operation Manual for further information about operation of the 360PS20A Pulsed VNA system and system components.
  • Page 56: Noise Figure System Commands

    Selects model number 3640 for port 2. Selects model number 3641 for port 2. Selects Q band (33-50 GHz) with WR-22. Selects U band (40-60 GHz) with WR-19. Selects V band (50-75 GHz) with WR-15. Selects W band (75-110 GHz) with WR-10. 360B PM 3-23/3-24...
  • Page 57 Chapter 4 Calibration Functions Table of Contents INTRODUCTION ....4-3 DESCRIPTION OF CALIBRATION COMMANDS Major Calibration Commands ... . 4-3 Required Command Sequence .
  • Page 58: Introduction

    Control the calibration data-taking process. DESCRIPTION OF Table 4-2 located at the rear of this chapter lists all GPIB commands that are used to perform the 360B VNA calibration function under re- CALIBRATION COMMANDS mote control. This table provides a brief description of the function for each command and lists permissible values and terminators, if re- quired.
  • Page 59 This command allows a non-standard connector to be specified. This is the same as selecting OTHER from the control panel menu. When specifying the CND command, the connector offset for the open and/or short device and the capacitance coefficients 360B GPIB PM...
  • Page 60: Required Command Sequence

    These commands can be used for advanced applications that input calibration coefficients into the 360B (refer to Chapter V, paragraph 5-3). Commands CON and COF These commands are not used during calibration.
  • Page 61 Commands U10, U15, and U25 These commands are used to select 10, 15, or 25 mil UTF calibration kits respectively. These calibration kits are used to perform a 360B calibration for mi- crostrip device measurements. Example: ibwrt(pna, “U10", 3);/∗ select 10 mil calibration ∗/...
  • Page 62 Calibration ** FP0, FP1 Begin Calibration (Data Collection) ∗ Required commands if DEC command previously issued. Command CND must be issued before sending CCO–CC3, and COS. ∗∗ May be done as part of regular calibration, or seperately. 360B GPIB PM...
  • Page 63 CALIBRATION COMMANDS A Simple The following is an example program to set up a Example typical calibration sequence for the 360B VNA: Program “SCM LTC C12 DFC FRS 1.0 GHZ FRI 100MHZ FRP 41 XX1 FIL DFD P1C CFK P2C CMK BBL BEG”...
  • Page 64 4-2. This example program segment is in written in HP-BASIC. The calibration control program should determine if the 360B is ready for the next step of the calibration sequence before prompting the system operator to connect new calibration standards to the test ports.
  • Page 65 The flattened test set power level set by the flat test port calibration. The signal source attenuator setting (if differ- ent from that used during the calibration.) The signal source power level adjustment range (as related to the source power setting during calibration). 4-10 360B GPIB PM...
  • Page 66 This command begins the flat test port calibration sequence. CommandS FP0 and FP1 Command FP1 causes the flat test port power cor- rection data to be used during normal measurement mode. Command FP0 turns off use of this data. 360B GPIB PM 4-11...
  • Page 67: An Example "C" Program Function

    “A Simple Example Pro- gram” (page 4-8). In Figure 4-1, the program function “cal_data()” in- structs the 360B to take calibration data (TCD) and advance to the next step (NCS) after determining if the 360B is ready.
  • Page 68 NCS ONP", point_str[40]; printf(“\tPress ENTER key to Take Cal Data\n”); while((key = getch())!=’\r’); printf(“Taking Calibration Data...\n”); ibwrt(vna,c,sizeof(c)); ibrd(vna,point_str,40); Figure 4-1. Example “C” Program Function to Perform a 12 Term Calibration (2 of 2) 360B GPIB PM 4-13...
  • Page 69: An Example Hp-Basic Subprogram

    A listing of an example calibration subprogram that is written in HP SUBPROGRAM BASIC is shown in Figure 4-2. This program guides the 360B system operator through a 12 term calibration sequence. The calibration is performed at 41 discrete frequencies with 100 MHz spacing from 1 to 5 GHz (see explanation of line 330 in the paragraph entitled “A Simple...
  • Page 70 Select female TNC connector for current port Select female K connector for current port Select female Type N connector for current port Select transmission and reflection frequency response calibration Select female SMA connector for current port 360B GPIB PM 4-15...
  • Page 71 Enter offset for short for user- –999.999 m to MMT, CMT, specified connector 999.999 m Select reflection only calibration Select reflection-only frequency response calibration Select CW frequency calibration data points Select discrete frequency calibration data points Done specifying discrete frequency ranges 4-16 360B GPIB PM...
  • Page 72 Enter reference impedance for 0.001 to XX1, XX3, 1x10E + 6 calibration Select a match for the second device during a LRM type calibration Select a match for the third device during a LRM type calibration 360B GPIB PM 4-17...
  • Page 73 1 to 50 points to be skipped during power measurement sweep for flat test port calibration Select reflective device greater than Z0 (LRL) Select reflective device less than Z0 (LRL) Select reference plane at line 1 midpoint (LRL) 4-18 360B GPIB PM...
  • Page 74 Through DC coefficient for loss –999.999 to +999.999 TFE (value) Through frequency exponent –9.999 to for loss +9.999 TFL (value) Through frequency coefficient –999.999 to for loss +999.999 TOL (value) Through offset length –999.9999 to MMT, CMT, +999.9999 360B GPIB PM 4-19...
  • Page 75 Enter microstrip impedance for 1.0 to 9999.99 XX1, XX3, microstrip calibration WCO (value) Set waveguide cutoff 0 to current GHZ, MHZ, frequency for user-defined kit START freq. Select user-defined waveguide calibration kit Select installed waveguide calibration kit 4-20 360B GPIB PM...
  • Page 76 Chapter 5 Advanced/Unique Functions Table of Contents INTRODUCTION ....5-3 SAVE/RECALL COMMANDS ... . 5-3 DATA TRANSFER COMMANDS .
  • Page 77: Introduction

    Calibration and front panel setup data to/from the disk. The syn- Command Description tax for entering a file name string to the 360B is the same as the SV1- Saves front panel syntax for the strings in the LMS, LID, LDT and LNM commands setup to internal described in Chapter 3, paragraph 3-11.
  • Page 78: Data Transfer Commands

    For transfers involving more than one item of information, separate each item by a line feed. For example, the 360B response to the commands “FMA OCD” would Binary data transfers involving numerical values use 32-bit or 64-bit floating point numbers in IEEE-754 format.
  • Page 79 The data-format commands (FMA, FMB and FMC) and the byte-order- ing commands (LSB and MSB) control the format of the data that is in- put or output by the 360B under control of many of the data transfer commands (Table 5-2). However, the commands that transfer binary data strings and ASCII data are not affected by the data format and byte-ordering commands.
  • Page 80 IS4 (Binary string) Select least significant byte first binary transfers Select most significant byte first binary transfers OAP (value) Output active parameter value (See Figure 5-3) ASCII OC1 (value) – Output calibration coefficient 1–9 FMA, OC9 (value) FMB, 360B PM...
  • Page 81 Output raw data for parameter of active channel FMA, FMB, OS1 (Binary Ouput information for front panel setups (1–4) in Binary string) – binary string format string OS4 (Binary string) OTV (value) Output time values for time domain measurements FMA, 360B PM 5-7/5-8...
  • Page 82 COMMANDS REM oap.bas REM A short program to demonstrate the command: OAP - Output Active Parameter REM using National Instruments GPIB PCII/IIA and QuickBasic. REM WILTRON CO, 1993 REM $INCLUDE: 'qbdecl.bas' i$ = SPACE$(60) BDNAME$ = "DEV6" CALL IBFIND(BDNAME$, BD%) CALL IBTMO(BD%, 13) PRINT ;...
  • Page 83 #define VNA_SW_REV below to the new SW specific struct name found in the new ocf.h. 3. Recompile your application with the new ocf.h file. * WILTRON Co, 8/1/93 #include <stdio.h> #include <stdlib.h> #include <process.h> #include "decl.h" #include "ocf.h"...
  • Page 84 Refer to 360 GPIB Manual, OCF Command Binary String for info. */ printf("\n360 SW Version = %5.2f \n", vna_rev); printf("\nStart freq = %Lf \n", ((long double)(sys_setup->strtswp)) ); Figure 5-4. A “C” Language Program showing use of “OCF” Command (2 of 2) 360B PM 5-11...
  • Page 85 = 3 characters Figure 5-5. ODR Command Byte Structure * odr.c * A short program to output disk directory from 360B. * The "ODR" mneumonic outputs a binary string (3.5 * Kbytes) that contains DOS style file structures.
  • Page 86 '\0'; /* make a string of the name */ if ((filenames[j]) != ' ') /* file deleted indicator */ j += FILE_NAME_SIZE+1; numfiles++; Figure 5-6. A “C” Language Program showing use of “ODR” Command (2 of 2) 360B PM 5-13...
  • Page 87 RLD - Recall Calibration File from Internal Disk. * and more. * Include vnaf.h and compile and link vnaf.c with this program * to access the 360 vna library functions. * WILTRON Co, 8/1/93 #include <stdio.h> #include <stdlib.h> #include "decl.h"...
  • Page 88 ("\nWait full sweep, marker 2 to max,\nMarker freq = "); ibwrt(vna, cmd4, sizeof(cmd4)); ibrd(vna, data, sizeof(data)); printf ("%8.5f GHz\n", atof(data)/1e+9); ibtmo(vna, T10s); /* reset to default */ vna_off(vna); Figure 5-7. A “C” Language Program showing use of “ONP” Command (2 of 2) 360B PM 5-15...
  • Page 89: Descriptions Of Data Transfer Commands

    Seconds, degrees This command outputs a 40-byte ASCII string defin- Log polar dB, degrees ing the current 360B system configuration. The for- mat of the OID string is shown in Table 5-4. Linear polar Lin Mag (Rho or Tau), degrees...
  • Page 90 If a request is made for an unavailable calibration co- efficient array, the 360B treats it as an impossible re- quest and ignores the command. OFV, IFV The OFV command outputs the current 360B meas- urement frequencies.
  • Page 91 This command outputs a binary string that is an im- age of the directory table of the current disk mounted in the floppy disk drive of the 360B. If a disk error occurs, the 360B does a disk-error-status- update and transfers no data. The data string for the directory is exactly 3.5 kBytes (3584 bytes) long.
  • Page 92 When parameter data input to the 360B is complete (ICD and IFD) the 360B redraws the parameter on the active channel using this data. To prevent the...
  • Page 93 When the system is ready to begin a new sweep, bit 7 of the main status register is set. If in CW mode, the 360B phase locks at that frequency before bit 7 of the main status register is set. The number of data points that can be collected is determined by the data format shown in Table 5-6.
  • Page 94: Program Notes

    ADVANCED/UNIQUE DATA TRANSFER FUNCTIONS TRIGGER COMMANDS Turn on correction in the 360B and read in a full corrected sweep of data using this as the er- ror term. Print the results on the computer screen. Data Transfer Program Notes This program uses a large time-out value (100 sec- onds).
  • Page 95 /* Get a full sweep of data and then input raw data in 32-bit form into etfbufr[] */ ibwrt(pna_360,"TRS WFS FMC LSB ORD",19); Figure 5-8. A “C” Language Example Program for Data Transfer Using the 360B (1 of 2) 5-22 360B PM...
  • Page 96 = (ibcnt / 8); /* each point is (dB,degrees) @ 4 bytes each for(i=0; i num_pts; i++) printf(“%13e: %13.6f %13.6f\n”, freqs[i], s21[i].dB, s21[i].degrees); return; Figure 5-9. A “C” Language Example Program for Data Transfer Using the 360B (2 of 2) 360B PM 5-23...
  • Page 97: Group Execute Trigger Commands

    “DEF CFT NOC SRT 1 GHZ STP 18 GHZ BEG TCD NCS MR1 WFS MMX OM1 MMN OM1 END” When this sequence of commands is sent to the 360B, it is stored as the response to the group execute trigger. The commands between the DEF and END commands will not be executed as part of the normal program flow.
  • Page 98: Disk Function Commands

    ADVANCED/UNIQUE DISK FUNCTION FUNCTIONS COMMANDS Thus, every time the 360B receives a GET interface function message , it outputs the maximum and minimum values for the new calibration just performed. NOTE 1. When the 360B is triggered via the GPIB, the 360B puts the trigger command (GET) into the command buffer be- hind any preceding instructions.
  • Page 99 Store calibration data and front String up to 8 panel setup information to disk file characters long for file (See Figure 5-10) name TDD(filename) Store tabular printout data to ASCII String up to 8 disk file characters long for file name 5-26 360B PM...
  • Page 100 ! FILE NAME FOR TRACE DATA ! STORE TO DISK FILE “S11TRACE.NRM” OUTPUT 706;"SDK"&Q$&N$&Q$ ! RECALL SAME DATA ON CHANNEL 3 OUTPUT 706;"CH3 RCK"&Q$&N$&Q$ ! DELETE THE TRACE MEMORY FILE OUTPUT 706;"DEN"&Q$&N$&Q$ Figure 5-9. Disk Function Commands Example 360B PM 5-27...
  • Page 101 STRUCTURE AND COMMANDS * sto.c * A short program to demonstrate the use of the STO and * RLD commands forsaving and recalling calfiles * on 360 internal disk. * WILTRON Company, 8/1/93 #include <stdio.h> #include <stdlib.h> #include "decl.h" void main() int vna=0;...
  • Page 102: Srq Status Byte Structure And Commands

    SRQ STATUS BYTE FUNCTIONS STRUCTURE AND COMMANDS SRQ STATUS BYTE The status of the 360B is defined by primary and secondary status STRUCTURE AND bytes. The structure and contents of these status bytes are described in COMMANDS the following paragraphs.
  • Page 103: Secondary Status Byte

    Power On. This bit is set when the system is first powered on. Table 5-11 lists the status byte commands. These commands are used to: Output the status of the 360B to the external computer. Input service request enable masks. Clear the primary and secondary status bytes.
  • Page 104 ADVANCED/UNIQUE SRQ STATUS BYTE FUNCTIONS STRUCTURE AND COMMANDS In order for the 360B to generate a service request ! SET UP SERVICE REQUEST SUBROUTINE AD- for a particular condition, both the condition bit and DRESS the SRQ bit in the Primary Status Byte Mask must ON INTR 7 GOSUB 1000 be enabled.
  • Page 105: Time Domain Commands

    TIME DOMAIN FUNCTIONS COMMANDS TIME DOMAIN The time domain commands for the 360B are listed below in Table COMMANDS 5-12. Option 2A (High-Speed Time Domain [Distance] Software option) adds these commands to the 360B software. The time domain commands are used to: Specify the domain of a channel.
  • Page 106 The 360 can only execute this command string if the active channel is in the time do- main low pass mode (TLP or DLP) or if a valid lowpass set of frequencies exist for frequency domain (FQD) or frequency gated by time (FGT). 360B PM 5-33...
  • Page 107: Multiple Source Control Commands

    The DUT frequency range is entered using any of the frequency entry commands. The MSD com- mand puts the 360B in the DEFINE mode, which allows entry of arbi- trary frequencies for the DUT. Band equations for source 1, source 2, and the receiver are then set up using the ED1, ED2, EDR, etc, com- mands.
  • Page 108 60 OUTPUT 706; “ED2 ECW EOS 500 MHZ” 70 OUTPUT 706; “EDR ESW EML 1 XX1" 80 OUTPUT 706; “EDV 1 XX1 EOS - 500 MHZ” 90 OUTPUT 706; “SVB MS1" 100 END Figure 5-12. Multiple Source Control Example 360B PM 5-35...
  • Page 109: Sweep Control Commands

    ADVANCED/UNIQUE SWEEP CONTROL FUNCTIONS COMMANDS SWEEP CONTROL Table 5-14 lists the 360B GPIB commands that allow control of sweep COMMANDS triggering. The TIN, TEX and TIB commands select the measurement trigger source, as follows: Command TIN selects internal triggering; Command TEX selects triggering via the rear-panel input connector;...
  • Page 110: Rear Panel Output Control Commands

    Table 5-15 lists the commands for controlling the rear-panel voltage CONTROL COMMANDS output of the 360B. The RV1 command enables the output and com- mand RV0 disables it. The orientation of the output can be set to either horizontal (RVH), vertical (RVV), or lock direction (RVL).
  • Page 111: Screen Draw Commands

    Terminate entry in XX1. Turn off data drawing Turn on data drawing 5-12 RECEIVER MODE The commands listed in Table 5-17 control the 360B receiver mode COMMANDS functions in the GPIB mode of operation. Table 5-17. Receiver Mode Control Commands Command...
  • Page 112 GPIB COMMAND FUNCTION INDEX This index is a listing of the GPIB commands for the 360B VNA grouped into 28 functional categories. These categories are listed in alphabetical order in the functional index table on the next three pages. The listing for each category includes references to the paragraph and page number in the text which explain that group of commands.
  • Page 113 COMMAND CODES INDEX LISTED BY FUNCTION Index of GPIB Command Codes Listed by Function (1 of 3) GPIB Command Command Code Group Para. Page Group Function Calibration A8T, A12, AFR, AFT, ARF, ARL, BBL, BEG, BPF C8T, C12, CC0 (value) thru CC3 (value), CF2, CF3, CFC, CFK, CFN, CFR, CFS, CFT, CFV, CM2, CM3, CMC, CMK, CMN, CMS, CMV, CND, CNG, COF, CON,...
  • Page 114 INDEX COMMAND CODES LISTED BY FUNCTION Index of GPIB Command Codes Listed by Function (2 of 3) GPIB Command Command Code Group Para. Page Group Function Group Execute DEF, END 5-16 Trigger Hard Copy DPN (value), FFD, GPN (value), 3-11 3-16 HD0, HD1, HPN (value), LDT (string), LID (string), LMS (string),...
  • Page 115 COMMAND CODES INDEX LISTED BY FUNCTION Index of GPIB Command Codes Listed by Function (3 of 3) GPIB Command Command Code Group Para. Page Group Function Sweep Control HC0, HC1, TEX, TIB, TIN 5-28 System State ACF, BC0, BC1, BLU, CYN, 3-12 3-18 DC1, DC3, DCP, DF2, DF3, DFK, DFN,...

Table of Contents