HP E1368A manual 110END

Page 42

Execute:

10 OUTPUT 70915;"*CLS"

!Clear all switchbox status

 

structure.

20OUTPUT 70915;"STAT:OPER:ENAB 256"!Enable Scan Complete Bit to set bit 7 in Status Register.

30

OUTPUT 70915;"*SRE 128"

!Enable bit 7 of Status Register to

 

 

assert SRQ.

40

OUTPUT 70915;"TRIG:SOUR EXT"

!Set to external trigger mode.

50

OUTPUT 70915;"SCAN (@100:103)" !Select channels to be scanned.

60

OUTPUT 70915;"INIT"

!Start scanning cycle.

70

WHILE NOT BIT (SPOLL(70915),7)

!Waiting for scan complete.

80PRINT “DO OTHER OPERATION HERE” !Enter program lines for computer to do other operations.

90 END WHILE

100PRINT “INTERRUPT GENERATED” !Program goes to this line after interrupt is generated by a completed scanning cycle.

110END

!Terminate program.

Comments Channel List Can Be Extended Across Boundaries. For multiple module switchbox instruments, the channels to be scanned can extend across switch modules. For example, for a two module switchbox instrument, SCAN (@100:203) will scan all channels of both Microwave Switch modules.

Setting Multiple Continuous Scans. Use ARM:COUNt number to set from 1 to 32767 scans. Use INITiate:CONTinuous ON to set continuous scanning.

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

Chapter 3

Image 42
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 Command Types Common Command FormatScpi Command Format HP E1368A/69A/70A Command Reference Chapter Semicolon between the commands. For example Scpi Command Reference ABORtExample Stopping a Scan with ABORt For the number of scanning cycles default is ∙ Number of Scans Use only numeric values between 1Armcoun MONitorCARD Example Select Module #2 in a Switchbox for MonitoringDISPlay ∙ Selecting a Specific Module to be Monitored UseExample Enabling the Monitor Mode Example Querying the Monitor Mode∙ Selecting the Module to be Monitored Use ∙ Stopping Continuous Scans See the ABORt command INITiateExample Enabling Continuous Scans Example Query Continuous Scanning State Example Query Trig Out Port Enable State OUTPutExample Enabling Trig Out Port Example Closing Microwave Switch Channels ROUTe∙ 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?Comments Microwave Switch Module Model Number Example Reading the Error QueueExample Reading the Model Number of a Card #1 Module TRIGger ∙ Executing the TRIGgerIMMediate Command a channel listExample Advancing Scan Using the TRIGger Command ∙ 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 Connectors Used P1 No. Slots Characteristic Impedence 50Ω Insertion LossMaximum Input Power 1 Watt average Operating TemperatureHP E1368A/69A/70A Specifications Appendix a HP E1368A/69A/70A Registers Register DefinitionsAddressing the Registers Reading 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