Reading Parameters; Example - HP 8112A Operating, Programming And Servicing Manual

50 mhz programmable pulse generator
Table of Contents

Advertisement

Reading parameters

Note
Standard w IPER

Example

The HP 8112A provides special commands with which information
can be read by the computer. These commands are called Talker
Function Commands. After Sending a Talker Function Command
the HP 8112A will return a response message. A response message
remains in the HP 8112A output queue until it is read or another
command is issued.
For example, to read the current value of the Period, the following
commands are necessary:
OUTPUT
;A$
ENTER
PRINT "8112A PER= ";A$
After the Interrogate Parameter commands (IPER, IDEL, IDBL,
etc.) the HP 8112A does not return only the numeric values, instead
it returns an ASCII-response that contains the command to set the
interrogated parameter to its present value.
If the current period is set to 1 ms, the variable A$ will contain the
string "PER 1.00 MS" after conducting the example above.
It is possible to read the current setting of a parameter using the
interrogation mnemonics listed here:
IDEL
n
IDBL
n
IDTY
n
IWID
n
n
ITRE
n
IHIL
n
n
IBUR
n
The HP 8112A reply has the same format as that used when setting
the parameter, for example:
PER iOMS
The reply length is always 12 characters.
It is also possible to read all the instrument settings in one go using
the CST mnemonic. Refer to "Reading the Current Settings"
DIM B$[12]
OUTPUT 712*"IDEL"
ENTER 712;;t
PRINT "8112A DEL= ";B$
Dimension string allocates 12 char-
acters of memory for reply.
Request current delay setting.
Read reply into allocated memory.
Print the reply.

Advertisement

Table of Contents
loading

Table of Contents