HP E1366A, E1367A Example Scanning Using External Triggers, Example Scanning Using Bus Triggers

Page 58

Example Scanning Using External Triggers

This example uses external triggering (TRIG:SOUR EXT) to scan channels 00 through 03 of a single-module switchbox. The trigger source to advance the scan is the input to the “ Event In” BNC on an HP E1 300A/E1301A mainframe. When INIT is executed, the scan is started and channel 00 is closed. Then each trigger received at the “ Event In” BNC advances the scan to the next channel.

TRIG:SOUR EXT

! Select external triggering

SCAN (@100:103)

! Scan channels 00 through 03

INIT

! Begin scan, close channel 00

trigger externally

! Advance scan to next channel

Example Scanning Using Bus Triggers

This example uses bus triggering (TRIG:SOUR BUS) to scan channels 00 through 03 of a single-module switchbox. The trigger source to advance the scan is the *TRG command (as set with TRIGger:SOURce BUS). When INIT is executed, the scan is started and channel 00 is closed. Then each *TRG command advances the scan to the next channel.

TRIG:SOUR BUS

! Select interface (bus) triggering

SCAN (@100:103)

! Scan channels 00 through 03

INIT

! Start scan, close channel 00

loop statement

! Loop to scan all channels

*TRG

! Advance scan using bus triggering

increment loop

! Increment loop count

:SOURce? TRIGger:SOURce? returns the current trigger source for the switchbox. Command returns either "BUS", "EXT", " HOLD", or "IMM" for trigger sources BUS, EXTernal, HOLD, or IMMediate, respectively.

Example Query Trigger Source

This example sets external triggering and queries the trigger source. Since external triggering is set, TRIG:SOUR? returns "EXT".

TRIG:SOUR EXT

! Set external trigger source

TRIG:SOUR?

! Query trigger source

58 HP E1366A/E1367A RF Multiplexers Command Reference

Chapter 5

Image 58
Contents Contents HP E1366A/E1367A RF Multiplexers Command Reference HP E1366A/E1367A RF Multiplexer Specifications HP E1366A/67A RF Multiplexers User’s Manual Contents HP E1366A & E1367A RF Multiplexer Modules User’s Manual Documentation History December 5 According to ISO/IEC Guide 22 and ENHP E1366A & E1367A RF Multiplexer Modules User’s Manual Measurement Systems Division Reader Comment SheetHP E1366A & E1367A RF Multiplexer Module User’s Manual Getting Started with the HP E1366A/E1367A RF Multiplexers Using This ChapterMultiplexer Module Description Multiplexers Switching Diagram Programming the Multiplexer Module Typical ConfigurationSpecifying Scpi Commands AddressMultiplexer Card Numbers Multiplexer Channel NumbersInitial Operation Example RF Multiplexer Channel Lists/RangesPage Configuring the HP E1366A/E1367A RF Multiplexers Chapter Configuring the HP E1366A/E1367A RF MultiplexersConnecting User Inputs Configuring the HP E1366A/E1367A RF Multiplexers ChapterHewlett-Packard BNC Cables Typical Multiplexer Configurations Standard ConfigurationTypical Tree Configuration Matrix-Type Configuration Typical Matrix-Type ConfigurationChanging Multiplexer Components RF Multiplexer Component LocationsConfiguring the HP E1366A/E1367A RF Multiplexers Chapter Switching Channels Using the HP E1366A/E1367A RF Multiplexer ModuleMultiplexer Commands Chapter Using the HP E1366A/E1367A RF Multiplexer ModuleExample Standard Switching Using the HP E1366A/E1367A RF Multiplexer Module ChapterExample Tree Switching Tree SwitchingExample Matrix-Type Switching Query Channel States. Use CLOSe? channellist orExample Scanning Using Trig Out Port Scanning ChannelsScanning Channels Comments Understanding the HP E1366A/E1367A RF Multiplexers Scanning Channels CommandsUsing Scanning Trigger Sources Scanning with External InstrumentsUnderstanding the HP E1366A/E1367A RF Multiplexers Chapter Scanning Trigger Sources Example Scanning with External Device Scanning with External DeviceExample Scanning Using Trig Out Event Ports Using the Scan Complete Bit Example Scan Complete InterruptCommon Command Format HP E1366A/E1367A RF Multiplexers Command ReferenceCommand Types Scpi Command FormatHP E1366A/E1367A RF Multiplexers Command Reference Chapter Semicolon between the commands. For example Subsystem Syntax ABORt Scpi Command ReferenceABORt Example Stopping a Scan with ABORtSubsystem Syntax ARM ParametersExample Query Number of Scanning Cycles DISPlay Example Enabling the Monitor ModeSubsystem Syntax DISPlay Example Select Module #2 in a Switchbox for Monitoring INITiate ∙ Non-Continuous Scanning Operation This is enabled with∙ Stopping Continuous Scans See the ABORt command Example Enabling Continuous ScansExample Query Continuous Scanning State OUTPut Example Enable Trig Out PortExample Query Trig Out Port Enable State Subsystem Syntax OUTPutComments ∙ Closing Channels To close ROUTeSubsystem Syntax ROUTe Example Closing Multiplexer Channels∙ Opening Channels To open CommentsExample Opening Channels Open Example Scanning Using External Devices Example Query Scan Mode Example Selecting Paired-Channel ScanningSubsystem Syntax STATus ∙ Setting Bit 7 of the Status RegisterSTATus ∙ Returned Data after sending the STATusOPERationEVENt?CTYPe? SYSTemSubsystem Syntax SYSTem Comments ∙ RF Multiplexers Model Number ∙ RF Multiplexers Power-On State The power-on state is allExample Setting Card #1 Module to its Power-on State Example Reading the Model Number of a Card #1 ModuleTRIGger Example Advancing Scan Using the TRIGger CommandSubsystem Syntax TRIGger ∙ Trig Out Port Shared by Switchboxes See the OUTPut command Example Scanning Using Bus Triggers Example Scanning Using External TriggersExample Query Trigger Source Ieee 488.2 Common Commands Command Title DescriptionCommand Quick Reference Commands for the RF Multiplexer modules used in a switchboxAppendix a HP E1366A/E1367A RF Multiplexer Specifications HP E1366A/E1367A RF Multiplexer SpecificationsInput Characteristics AC Performance GeneralHP E1366A/E1367A RF Multiplexer Specifications Appendix a Typical Crosstalk channel-channel Cooling/SlotEnd of Life Detection Replacement Strategy Relay LifeHP E1366A/E1367A RF Multiplexer Specifications Appendix a Appendix B HP E1366A/E1367A Multiplexer Registers HP E1366A/E1367A Multiplexer RegistersID Register Reading the Registers Status/Control Register Channel Enable RegistersAddressing the Registers ID/Device Type RegistersWriting to the Registers HP E1366A/E1367A Multiplexer Registers Appendix B HP E1366A/E1367A RF Multiplexer Error Messages Appendix C HP E1366A/E1367A RF Multiplexer Error MessagesHP E1366A/E1367A RF Multiplexer Error Messages Appendix C Index HP E1366A/67A RF Multiplexers User’s Manual IndexHP-IB HP E1366A/67A RF Multiplexers User’s Manual Index HP E1366A/67A RF Multiplexers User’s Manual Index