HP E1368A manual Example Scanning Channels, Output 722TRIG EXT …

Page 40

Example: Scanning Channels

This example uses the mainframe’s "Trig Out" port to synchronize Microwave Switch channel 00 to 02 closures to an external measurement device (e.g. Frequency Counter, Spectrum Analyzer). For measurement synchronization, the HP E1300A/E1301A "Trig Out" port is connected to the external instrument’s "EXT Trig In" port.

Figure 3-9 shows how to connect the Microwave Switch module to the external instrument. The mainframe and external instrument are connected to the computer’s HP-IB port, and the measurement results are transferred directly to the computer. For the example, use:

an HP-IB select code of 7, primary address of 09, and secondary address of 15 for the Microwave Switch

an HP-IB select code of 7, primary address of 22 for the External Instrument

an HP Series 200/300 Computer with HP BASIC

Execute:

10

OUTPUT 722;"TRIG EXT;"

!Configures the external

 

 

instrument. Appropriate instrument

 

 

commands must be added to make

 

 

the measurement.

20

OUTPUT 70915;"*RST"

!Opens all channels, resets

 

 

Microwave Switch module to

 

 

known state.

30

OUTPUT 70915;"OUTP ON"

!Enable "Trig Out" port.

40OUTPUT 70915;"TRIG:SOUR BUS" !Sets trigger source to bus triggering.

50OUTPUT 70915;"SCAN (@100:102)" !Defines channel list to scan channels 00, 01, and 02.

60

OUTPUT 70915;"INIT"

!Closes channel 00 and enables the

 

 

scan. Causes a trigger output from

 

 

mainframe’s "Trig Out" port which

 

 

initiates the external instrument to

 

 

make a measurement.

70

FOR I=1 to 3

!Start counting loop (3 channels).

80

WAIT 1

!Allows external instrument time to

 

 

settle and make measurement.

90

ENTER 722;A

!Enters measurement result.

100

PRINT A

!Displays measurement result.

110

TRIGGER 70915

!Advance scan to channel 01 (then

 

 

02).

120

NEXT I

!Increment the count and repeats

 

 

measurement process for a total of

 

 

three measurements (channels 00,

 

 

01, and 02).

130

END

!Terminate program.

40 Using the HP E1368A/69A/70A Modules

Chapter 3

Image 40
Contents Contents Open OPEN? Scan Scanmode SCANMODE? Cpon HP E1368A/69A/70A Modules User’s Manual Contents Certification Documentation History April According to ISO/IEC Guide 22 and ENPage Business Reply Mail Page Using This Chapter Microwave Switch DescriptionGetting Started with the HP E1368A/69A/70A Chapter Power Supply Circuit HP E1368A SwitchesProgramming the Microwave Switch Instrument DefinitionCard Numbers for Multiple-Module Switchboxes Example Reset the switchbox and close channel Initial OperationConfiguring the HP E1368A/69A/70A Modules Setting the Address Switch Logical Address SelectionSelecting the Interrupt Priority Interrupt Priority SelectionInstalling Switches on the HP E1369A Installing Switches on the ModuleChapter Configuring the HP E1368A/69A/70A Modules Microwave Switch Installation Connecting Switches External To the Module Selecting Switch Power Connecting Field Wiring Selecting Switch VoltageInstalling a Switch Or Attenuator on Module Microwave Switch/Attenuator Installation Shows the internal schematic of a single attenuator section Using the HP E1368A/69A/70A Modules Microwave Switch CommandsReset Conditions Switching Channels Example Single Channel SwitchingPower To connect C to Port 1, execute 33363K 33364K 33365K 33366K Example Multiple Channel Switching Using EXTernal Example Transfer Switch Using Two Port Switches Example Transfer Switch Using One Port Switch To route signal B to the output, execute Example 4 x 1 MultiplexerScanning Channels Selects the Trigger SourceExample Scanning Channels Output 722TRIG EXT …Example Using the Scan Complete Bit Example Multiple Channel Scanning110END Detecting Error Conditions Recalling and Saving StatesRepeat Synchronizing the Microwave Switch Synchronizing InstrumentsQuerying the Microwave Switch Common Command Format Command TypesScpi Command Format HP E1368A/69A/70A Command Reference Chapter Semicolon between the commands. For example ABORt Scpi Command ReferenceExample Stopping a Scan with ABORt For the number of scanning cycles default is ∙ Number of Scans Use only numeric values between 1Armcoun Example Select Module #2 in a Switchbox for Monitoring DISPlayMONitorCARD ∙ Selecting a Specific Module to be Monitored UseExample Querying the Monitor Mode Example Enabling the Monitor Mode∙ Selecting the Module to be Monitored Use INITiate ∙ Stopping Continuous Scans See the ABORt commandExample Enabling Continuous Scans Example Query Continuous Scanning State OUTPut Example Query Trig Out Port Enable StateExample Enabling Trig Out Port ROUTe Example Closing Microwave Switch Channels∙ Closing Channels To close Example Opening Microwave Switch Channels ∙ Opening Channels To openExample Scanning Using External Device Or any combinationChapter HP E1368A/69A/70A Command Reference STATus ∙ Setting Bit 7 of the Status Byte Register Example Query the Standard Operation Status Enable RegisterSTATOPER? SYSTem CDEScription?Example Reading the Error Queue Comments Microwave Switch Module Model NumberExample Reading the Model Number of a Card #1 Module ∙ Executing the TRIGgerIMMediate Command a channel list Example Advancing Scan Using the TRIGger CommandTRIGger ∙ Hold or BUS Source Remains If selected, the TRIGgerSOURce∙ Trig Out Port Shared by Switchboxes See the OUTPut command Example Scanning Using External TriggersScanning Using Bus Triggers Example Query the Trigger SourceIeee 488.2 Common Commands HP Command Module User’s Manual, or the ANSI/IEEE StandardCommand Quick Reference Scpi Commands for Quick ReferenceHP E1368A/69A/70A Command Reference Chapter Characteristic Impedence 50Ω Insertion Loss Maximum Input Power 1 Watt averageConnectors Used P1 No. Slots Operating TemperatureHP E1368A/69A/70A Specifications Appendix a HP E1368A/69A/70A Registers Register DefinitionsReading the Registers Addressing the RegistersID and Device Type Registers Status/Control Register Channel Enable Register Writing to the RegistersHP E1368A/69A/70A Registers Appendix B HP E1368A/69A/70A Error Messages Page Index HP E1368A/69A/70A Modules User’s Manual IndexHP E1368A/69A/70A Modules User’s Manual Index HP-IB HP E1368A/69A/70A Modules User’s Manual Index HP E1368A/69A/70A Modules User’s Manual Index HP E1368A/69A/70A Modules User’s Manual Index