HP FET MULTIPLEXER E1351A/53A manual Using the Scan Complete Bit, Example Scan Complete Monitor

Page 52

Using the Scan Complete Bit

You can use the Scan Complete Bit (bit 8) in the SCPI Operation Status Register to determine when a scanning cycle completes (no other bits in the register apply to the switchbox). Bit 8 has a decimal value of 256 and you can read it directly with the STAT:OPER? command (refer to the STATus:OPERation[:EVENt]? command in Chapter 5 for an example). Note that this is not the same register as the multiplexer Status/Control Register.

When enabled by the STAT:OPER:ENAB 256 command, the Scan Complete Bit will be reported as bit 7 of the Status Register. Use the HP-IB Serial Poll or the IEEE 488.2 Common Command *STB? to read the Status Register. When bit 7 of the status Register is enabled by the *SRE 128 Common Command to assert an HP-IB Service Request (SRQ), you can interrupt the controller when the Scan Complete Bit is set, after a scanning cycle completes. This allows the controller to do other operations while the scanning cycle is in progress.

The following example monitors bit 7 in the Status Register to determine when the scanning cycle completes. The computer used in the example is an HP Series 200/300 used with HP BASIC as the program language. The computer interfaces with the mainframe over HP-IB. The HP-IB select code is 7, the HP-IB primary address is 09, and the HP-IB secondary address is 14.

Example: Scan

Complete Monitor

10

OUTPUT 70914;"*CLS"

!Clear all switchbox status

 

 

structure

20

OUTPUT 70914;"STAT:OPER:ENAB 256"

 

 

!Enable Scan Complete Bit to set

 

 

bit 7 in Status Register

30

OUTPUT 70914;"*SRE 128"

!Enable bit 7 of Status Register to

 

 

assert SRQ

40

OUTPUT 70914;"TRIG:SOUR EXT"

!Set to external trigger mode

50

OUTPUT 70914;"SCAN (@100:115)"

!Select channels to be scanned

60

OUTPUT 70914;"INIT"

!Start scanning cycle

70

WHILE NOT BIT (SPOLL(70914),7)

!Waiting for scan complete

80

PRINT "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

110 END

52 Understanding the HP E1351A/53A FET Multiplexer Modules

Chapter 4

Image 52
Contents Contents Understanding the HP E1351A/53A FET Multiplexer Modules Appendix C.HP E1351A/53A FET Multiplexer Error Messages HP E1351A/53A FET Multiplexer User’s Manual Contents Certification Documentation History July 20 According to ISO/IEC Guide 22 and ENPage Business Reply Mail Page Using This Chapter FET Multiplexer Module DescriptionAnalog Bus Connector Multimeter Connection PointsFET Multiplexer Module Block Diagram Switchbox and Scanning Voltmeter Configurations Output 70903OUTP onDigital Bus and Triggering Programming Language Initial OperationConfiguring the HP E1351A/53A FET Multiplexer Modules Card Numbers for Single-Module Switchboxes Multiplexer Card NumbersSetting the Address Switch Card Numbers for Scanning VoltmeterSetting the Interrupt Line Number Selecting the Interrupt Line NumberSetting the Card ID Switch Card ID SwitchConnecting User Inputs Channel FET Multiplexer Connector Pin-outAdding Signal Conditioning Components/Current Shunts Signal Conditioning Components/Current ShuntsConnecting Field Wiring Wiring GuidelinesWiring a Terminal Module Connecting Multimeters and Signal Generators 10. Analog Bus and Digital Bus ConnectionsAnalog Bus and Digital Bus Cables 11. Analog Bus and Digital Bus CablesPage Using the HP E1351A/53A FET Multiplexer Modules Selecting ChannelsUsing the HP E1351A/53A FET Multiplexer Modules Chapter Multiplexer Commands Matrix Commands Used in ChapterConnecting Switchbox Channels to Direct Terminals Scanport NoneCLOS? Closing Channels 02 and 09 for a Voltage Measurement Connecting Channels 02 and 10 for 4-Wire Ohms Measurement Scanning a Range of Switchbox Channels Example Making Voltage Measurements By ScanningScanning Channels 100 to 215 of a Two-Module Switchbox Example Making 2-Wire Ohms Measurements by Scanning Example Making 4-Wire Ohms Measurements by ScanningDownloading a Scan List Scanning a Switchbox without a Downloaded Scan List Output 70904INITScanning a Switchbox with a Downloaded Scan List Output 70904STATOPERENABScanning Voltmeter Configuration with HP E1326B Connecting the Analog Bus and Digital Bus CablesTemperature Measurement Using a Thermocouple Using the HP E1351A/53A FET Multiplexer Modules Chapter Using Scanning Trigger Sources Commands for Scanning Switchbox ChannelsScanning with External Instruments Scanning Commands Trigger Sources Example Scanning With External Instruments Example Scanning Using Trig Out Event In Ports Output 70914OUTP onOutput 722TRIG Extdcvmem Fifo SCANMODE, Scanport and TRIGgerSOURce Dbus Using the Scan Complete Bit Example Scan Complete MonitorCommon Command Format Command TypesScpi Command Format ROUTeSCANMODE Volt Scpi Command Reference Subsystem Syntax ABORtExample Stopping a Scan with ABORt COUNt ParametersComments Example Query Number of Scanning CyclesDISPlay Example Select Module #2 in a Switchbox for MonitoringMONitorCARD Example Enabling the Monitor Mode ModeINITiate CONTinuousExample Enabling Continuous Scans Example Query Continuous Scanning StateOUTPut STATe∙ Downloaded Scans The OUTPut subsystem does not work with Example Enabling Trig Out PortROUTe ∙ Closing Channels To close∙ Query is Software Readback The ROUTeCLOSe? command Example Closing Multiplexer ChannelsExample Query Multiplexer Channel Closure ∙ Opening Channels To open∙ Query is Software Readback The ROUTeOPEN? command ExampleOpening Multiplexer Channels Query Multiplexer Channel Open StateExample Scanning Using External Instruments ∙ Scanning Operation With a valid channel listExample Query Scan Mode Example Selecting the Abus Port Example Query Scan PortExample Setting 16 μsec SETTling Time Example Set and Query the SETTling TimeExample Enable the Status Register Bit OPERationENABleSTATus SYSTem CDEScription?∙ 16-Channel FET Multiplexer Module Description Example Reading the Description of Card #1 ModuleComments ∙ 16-Channel FET Multiplexer Module Model Number Example Reading the Model Number of a Card #1 Module∙ Executing the TRIGgerIMMediate Command a channel list Example Advancing Scan using the TRIGger CommandTRIGger IMMediate∙ Enabling the Trigger Source The TRIGgerSOURce command ∙ Trig Out Port Shared by Switchboxes See the OUTPut commandScanning Using Bus Triggers Example Scanning Using External TriggersExample Query Trigger Source Ieee 488.2 Common Commands ANSI/IEEE StandardCommand Quick Reference Scpi Commands Quick Reference DescriptionPage Maximum Voltage Screw Terminal Wire Size Watts/Slot Connectors Used P1 Maximum Offset Voltage Number of SlotsInput Impedance Power Requirements Power Off High to LowHP E1351A/53A FET Multiplexer Specifications Appendix a About This Appendix Register AddressingHP E1351A/53A Register-Based Programming Appendix B A16 Address Space Outside Command Module Or Mainframe A16 Address Space Inside Command Module Or MainframeRegister Descriptions Device Type Register Register module Register Bit DescriptionsManufacturer ID Register Enable IRQ EN Status/Control RegisterContinuous Enable CNT EN Reset Pointer RST PTR Scan Channel Delay RegisterScan Control Register Scan Channel Configuration Register Direct Channel Configuration RegisterA Tree Isolation Switch Disable A-D Valid Channel VLD C1 C0Executing Commands Direct Control RegisterROUTe ROUTeCLOSe channellist is equivalent to the following HP E1351A/53A Register-Based Programming Appendix B Register-Based Programming for Maximum Speed Decimal code Appendix B HP E1351A/53A Register-Based Programming Multimeter Command Parameter Opcodes Table B-1. Multimeter Command and Parameter OpcodesFigure B-3. Configuring the Multimeter Multimeter Register-Based Programming Error Codes Error Code CauseHP E1351A/53A FET Multiplexer Error Messages HP E1351A/53A FET Multiplexer Error Messages Appendix C Index LaddrHP E1351A/53A FET Multiplexer User’s Manual Index HP-IB HP E1351A/53A FET Multiplexer User’s Manual Index HP E1351A/53A FET Multiplexer User’s Manual Index HP E1351A/53A FET Multiplexer User’s Manual Index HP E1351A/53A FET Multiplexer User’s Manual Index