HP E1368A manual Repeat

Page 44

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 Series 200/300 Computer with HP BASIC

Execute:

10 !Call computer subprogram “Errmsg” if a Microwave

20!Switch programming error occurs. Enable the computer to respond

30!to an interrupt from the Microwave Switch.

35!

40ON INTR 7 CALL Errmsg

50ENABLE INTR 7:2

60!

70!Unmask the Event Status bit in the Microwave Switch’s Status

80!Register. Unmask the Microwave Switch error conditions in its

90!Standard Event Status Register.

95!

100OUTPUT 70915;"*SRE 32"

110OUTPUT 70915;"*ESE 60"

120!

130!At this point, the Microwave Switch is programmed for the intended

140!application.

145!

150OUTPUT 70915;" . . .

160OUTPUT 70915;" . . .

170ENTER 70915; . . .

180PRINT . . .

190END

200!

210!When an error occurs, clear the Microwave Switch to regain

220!control. Execute a Serial Poll to clear the service request

230!bit in the Status Register. Read all error messages in the

240!Microwave Switch error queue. Clear all bits in the counter

250!Standard Event Status Register.

255!

260SUB Errmsg

270DIM Message$[256]

280CLEAR 70915

290B=SPOLL (70915

300REPEAT

310OUTPUT 70915; “SYST:ERR?”

320ENTER 70915; Code, Message$

330PRINT Code,Message$

340UNTIL Code=0

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

Chapter 3

Image 44
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 Scpi Command Format Command TypesCommon Command Format HP E1368A/69A/70A Command Reference Chapter Semicolon between the commands. For example Example Stopping a Scan with ABORt Scpi Command ReferenceABORt 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 Use∙ Selecting the Module to be Monitored Use Example Enabling the Monitor ModeExample Querying the Monitor Mode Example Enabling Continuous Scans ∙ Stopping Continuous Scans See the ABORt commandINITiate Example Query Continuous Scanning State Example Enabling Trig Out Port Example Query Trig Out Port Enable StateOUTPut ∙ Closing Channels To close Example Closing Microwave Switch ChannelsROUTe 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 Model Number of a Card #1 Module Comments Microwave Switch Module Model NumberExample Reading the Error Queue ∙ 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 DefinitionsID and Device Type Registers Addressing the RegistersReading the 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