EasyManua.ls Logo

Aeroflex 3412 - Reading Status Information

Aeroflex 3412
467 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
REMOTE OPERATION STATUS COMMANDS
4-200
Register structures
The operation and questionable register structures consist of condition, event, transition and enable
registers.
The condition registers continuously monitor the instrument's hardware and firmware status. Bits
in a condition register are not latched but are updated in real time (so that they represent the actual
state of the instrument at all times) and are read by the above commands.
The bits of the event registers (read by STATus:OPERation:EVENt? and
STATus:QUEStionable:EVENt?) are set on events. For example, the averaging bit in the
operation register only indicates if the measurement is being performed with averaging enabled,
while the associated event register shows that the averaging has completed.
A set of transition filters (transition register) control what type of change in a condition register
will set the corresponding bit in the event register. The type of transition filter — negative,
positive or both — is fixed for each bit. For example, the averaging bits in the operation register
structure have negative transition filters so that the bits in the event register are set when averaging
is complete. When the event register bits are set they remain set, even if the corresponding
condition bits change. They are reset after being read by the query commands
STATus:OPERation:EVENt? and STATus:QUEStionable :EVENt?, or when the *CLS (clear
status) common command is issued. Transition registers are read−write, and are unaffected by
query commands or *CLS.
The ability of each bit in the event registers to affect the summary bit in the status byte register can
be enabled or disabled by corresponding bits in the event enable registers. These can be set and
read by the commands/queries STATus:OPERation:ENABle\? and
STATus:QUEStionable:ENABle\? The enabled bits are combined in a logical OR operation to
produce the summary bit (summary bits are recorded in the instrument’s status byte). Enable
registers are cleared by *CLS.
The above status−reading commands return the decimal number equivalent of the register contents.
The events and conditions that are monitored by the instrument’s status registers, and the
commands for reading and writing to them, are described in more detail in ‘Remote status
reporting structure’ on pages 4-203 and following.
Reading status information
As already stated, two techniques are used to interact with the status reporting structure:
Direct-read method. In many cases it is adequate and convenient for the controller simply to read
the appropriate registers when necessary to determine the required status information. This
technique does not involve the use of SRQ and therefore does not require any interrupt handling
code in the application program. The following steps are used to monitor a condition:
Determine which register contains the bit that monitors the condition.
Send the query command that reads the register.
Examine the bit to see if the condition has changed.
The direct-read method works well when it is not necessary to know about changes the moment
they occur. A program that uses this method to detect changes in a condition as soon as possible
would need to continuously read the registers at very short intervals; the SRQ method is better
suited to this type of need.
Service request (SRQ) method. In the SRQ method the instrument plays a more active role, in that
it tells the controller when there has been a condition change without the controller asking. The
following steps are required to monitor a condition:

Table of Contents

Related product manuals