How Does Scpi Work In The Instrument; Message Exchange Control Protocol - Fluke 9640A Series Instruction Manual

Only to older units with firmware up to lss 2.x
Table of Contents

Advertisement

How does SCPI Work in the Instrument?

The functions inside an instrument that control the operation provide SCPI compatibility.
Figure 4B-3 shows a simplified logical model of the message flow inside a SCPI
instrument.
When the controller sends a message to a SCPI instrument, roughly the following
happens:
The GPIB controller addresses the instrument as listener.
The GPIB interface function places the message in the Input Buffer.
The Parser fetches the message from the Input Buffer, parses (decodes) the message,
and checks for the correct syntax. The instrument reports incorrect syntax by sending
command errors via the status system to the controller. Moreover, the parser will
detect if the controller requires a response. This is the case when the input message is
a query (command with a "?" appended).
The Parser will transfer the executable messages to the Execution Control block in token
form (internal codes). The Execution Control block will gather the information required
for a device action and will initiate the requested task at the appropriate time. The
instrument reports execution errors via the status system over the GPIB and places them
in the Error Queue.
When the controller addresses the instrument as talker, the instrument takes data from the
Output Queue and sends it over the GPIB to the controller.

Message Exchange Control Protocol

Another important function is the Message Exchange Control, defined by IEEE 488.2.
The Message Exchange Control protocol specifies the interactions between the several
functional elements that exist between the GPIB functions and the device-specific
functions.
The Message Exchange Control protocol specifies how the instrument and controller
should exchange messages. For example, it specifies exactly how an instrument shall
handle program and response messages that it receives from and returns to a controller.
This protocol introduces the idea of commands and queries; queries are program
messages that require the device to send a response. When the controller does not read
this response, the device will generate a Query Error. On the other hand, commands will
not cause the device to generate a response. When the controller tries to read a response
anyway, the device then generates a Query Error.
The Message Exchange Control protocol also deals with the order of execution of
program messages. It defines how to respond if Command Errors, Query Errors,
Execution Errors, and Device-Specific errors occur. The protocol demands that the
instrument report any violation of the IEEE-488.2 rules to the controller, even when it is
the controller that violates these rules.
SCPI and IEEE Bus Descriptions

How does SCPI Work in the Instrument?

4B
4B-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

9640a-lpn9640a-std

Table of Contents