Agilent Technologies ESG Especificaciones Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 259
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
Programming Guide 1-27
ESG Family Signal Generators Preparing for Use
Getting Started with SCPI
Response Examples
Response examples look like this:
3.000000000000E+009
These are the characters you would read from an instrument after sending a query
command. To actually pull them from the instrument into the controller, use the input
statement appropriate to your application programming language. If you have problems,
study the details of how the input statement operates. In particular, investigate how the
input statement handles punctuation characters such as the comma and the semicolon and
how it handles <new line> and EOI. To enter the previous response in HP BASIC you
type:
ENTER 719;CW_frequency
Response examples do not show response message terminators because they are always
<new line> <END>. These terminators are typically automatically handled by the input
statement. See “Details of Commands and Responses” on page 1-35 for more information
about terminators.
Program and Response Messages
To understand how your instrument and controller communicate using SCPI, you must
understand the concepts of program and response messages. Program messages are the
formatted data sent from the controller to the instrument. Conversely, response messages
are the formatted data sent from the instrument to the controller. Program messages
contain one or more commands, and response messages contain one or more responses.
The controller may send commands at any time, but the instrument sends responses only
when specifically instructed to do so. The special type of command used to instruct the
instrument to send a response message is the query. All query mnemonics end with a
question mark. Queries return either measured values or internal instrument settings.
Any internal setting that can be programmed with SCPI can also be queried.
Forgiving Listening and Precise Talking
SCPI uses the concept of forgiving listening and precise talking outlined in IEEE 488.2.
Forgiving listening means that instruments are very flexible in accepting various
command and parameter formats. For example, the signal generator accepts either
:POWer:ALC[:STATe] ON or :POWer:ALC[:STATe] 1 to turn on the source’s RF output.
Precise talking means that the response format for a particular query is always the same.
For example, if you query the power state when it is on (using :POWer:ALC[:STATe]?), the
response is always 1, regardless of whether you previously sent :POWer:ALC[:STATe] 1 or
:POWer:ALC[:STATe] ON.
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 258 259

Comentarios a estos manuales

Sin comentarios