Programming; Example; Multiple Commands; Examples - HP 8112A Operating, Programming And Servicing Manual

50 mhz programmable pulse generator
Table of Contents

Advertisement

Programming

Note

Multiple Commands

6-4 Programming
To select an operating mode or to set a parameter to a specific value,
the appropriate ASCII mnemonic must be sent to the HP 8112A.

Example:

To set the Operating Mode to TRIG, the ASCII mnemonic M2 has
to be sent to the HP 8112A.
HP Basic Statement for this is:
OUTPUT 712*"!42"
When programming parameters, such as Period, Delay or Width,
the ASCII mnemonic must be followed by the value and the
appropriate unit. The ASCII mnemonic, the value and unit may be
separated by a comma or space character. For better readability it is
recommended to use a space character.
Example:
To set the Period to 2.2 ms, the ASCII mnemonic PER followed by
the new value 2.2 and the unit MS must be sent to the HP 8112A.
HP Basic Statement for this is:
OUTPUT 712;"PER 2.2 MS"
OUTPUT 712;"PER2.2MS"
Program commands can be a combination of upper case or lower
case ASCII characters, whereas the responses are always returned in
uppercase.
You can send multiple programming commands on the same line.
The commands may be separated by a comma or a space character.
It is recommended to separate the commands with a comma, because
this makes it easier to read such a programming message.

Examples:

OUTPUT 712; 94l,CTO,PER 1.25 MS"
OUTPUT 712;"Ml CT0 PER 1.25 MS"
OUTPUT 712;"MlCTOPER 1.25 MS"
Commands which change modes are processed before commands
which set parameters, irrespective of the command order within the
programming message. If your application requires a parameter
change to occur before a mode change, use seperate programming
messages for the two commands.
Commands separated with
commas
Commands separated with
space characters
Commands not separated

Advertisement

Table of Contents
loading

Table of Contents