HP 53150A Series Programming Manual page 82

Microwave frequency counter
Table of Contents

Advertisement

Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter for Status Reporting
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.
3-42
Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

53152a series53151a series

Table of Contents