Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter for Status Reporting
3-42
Programming Guide
3
Resetting the Counter and Clearing
the Remote Interface—Example 1
Before attempting any programming, it is a good idea to set the Counter to
a known state. The following command grouping shows how to reset the
Counter. Before issuing these commands, execute a device clear to reset
the interface and Counter. Consult your interface card's documentation
for how to issue a device clear since the device clear command will be
specific to the interface you are using. Perform the following:
1.
Issue an Interface Clear and a Device Clear. (See your computer or
interface card documentation on how to issue this command).
2.
Issue the following commands:
*RST
*CLS
*SRE 0
*ESE 0
:STAT:PRES
Using the Standard Event Status Register to
Trap an Incorrect Command—Example 2
The following command grouping shows how to use the Standard Event
Status Register and the Status Byte Register to alert the computer when
an incorrect command is sent to the Counter. The command *ESE 32 tells
the Counter to summarize the command error bit (bit 5 of the Event
Status Register) in the Status Byte Register. The command error bit is set
when an incorrect command is received by the Counter. The command
*SRE 32 tells the Counter to assert the SRQ line when the Event Status
Register summary bit is set to 1. If the Counter is serial-polled after a
command error, the serial poll result is 96 (Bit 6 + Bit 5).
Event Status Register
*ESE 32 Enable for bad command.
*SRE 32 Assert SRQ from Standard Event Status Register summary.
Содержание 53150A Series
Страница 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Страница 2: ......
Страница 10: ...Contents x Programming Guide ...
Страница 11: ...1 Before You Start ...
Страница 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Страница 21: ...2 Command Summary A Quick Reference ...
Страница 41: ...3 Programming Your Counter for Remote Operation ...
Страница 100: ...Chapter 3 Programming Your Counter for Remote Operation Programming Examples 3 60 Programming Guide 3 ...
Страница 101: ...4 Command Reference A Dictionary ...
Страница 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Страница 163: ...5 Errors ...
Страница 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Страница 184: ......
Страница 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...