Hameg HMC8012 Programmer's Manual page 19

Scpi commands
Hide thumbs Also See for HMC8012:
Table of Contents

Advertisement

connected to the controller.
Query of an instrument status
Each part of any status register can be read using queries. There are two types of com
SCPI Commands HMC8012
mands:
The common commands *ESR?, *IDN?, *IST?, *STB? query the higher-level reg
isters.
Query of an instrument status
The commands of the STATus system query the SCPI registers
Each part of any status register can be read using queries. There are two types of commands:
(STATus:QUEStionable...)
– The common commands *ESR?, *IDN?, *STB? query the higher-level registers.
The returned value is always a decimal number that represents the bit pattern of the
– The commands of the STATus system query the SCPI registers (STATus:QUEStionable...)
queried register. This number is evaluated by the controller program.
S C P I P r o g r a m m e r s M a n u a l
The returned value is always a decimal number that represents the bit pattern of the queried register. This number is
Queries are usually used after an SRQ in order to obtain more detailed information on
evaluated by the controller program.
the cause of the SRQ.
Queries are usually used after an SRQ in order to obtain more detailed information on the SRQ cause.
Decimal representation of a bit pattern
S C P I P r o g r a m m e r s M a n u a l
S C P I P r o g r a m m e r s M a n u a l
The STB and ESR registers contain 8 bits, the SCPI registers 16 bits. The contents of a
Decimal representation of a bit pattern (binary weights)
status register are specified and transferred as a single decimal number. To make this
The STB and ESR registers contain 8 bits, the SCPI registers 16 bits. The contents of a status register are specified
possible, each bit is assigned a weighted value. The decimal number is calculated as the
and transferred as a single decimal number. To make this possible, each bit is assigned a weighted value. The decimal
sum of the weighted values of all bits in the register that are set to 1.
number is calculated as the sum of the weighted values of all bits in the register that are set to 1.
Fig. 1.7: Decimal representation of a bit pattern (please refer to page 20)
Example:
The decimal value 40 = 32 + 8 indicates that bits no. 3 and 5 in the status register (e.g.
Example:
the QUEStionable status summary bit and the ESB bit in the STatus Byte ) are set.
The decimal value 40 = 32 + 8 indicates that bits no. 3 and 5 in the status register (e.g. the QUEStionable status
Error Queue
summary bit and the ESB bit in the STatus Byte ) are set.
Each error state in the instrument leads to an entry in the error queue. The entries of the
error queue are detailed plain text error messages that can be looked up in the Error Log
Error Queue
or queried via remote control using SYSTem:ERRor[:NEXT]? or
:ACQuire
SYSTem:ERRor:ALL?. Each call of SYSTem:ERRor[:NEXT]? provides one entry from
Each error state in the instrument leads to an entry in the error queue. The entries of the error queue are de-
tailed plain text error messages that can be looked up in the error log or queried via remote control using
the error queue. If no error messages are stored there any more, the instrument responds
:CHAN1OFFSet
SYSTem:ERRor[:NEXT]?. Each call of SYSTem:ERRor[:NEXT]? provides one entry from the error queue. If no error
with 0, "No error".
messages are stored, the instrument responds with 0, „No error".
The error queue should be queried after every SRQ in the controller program as the
The error queue should be queried after every SRQ in the controller program as the entries describe the cause of an er-
entries describe the cause of an error more precisely than the status registers. Especially
ror more precisely than the status registers. Especially in the test phase of a controller program the error queue should
be queried regularly since faulty commands from the controller to the instrument are recorded there as well.
HAMEG Instruments GmbH • Industriestr. 6 • D-63533 Mainhausen • Deutschland
HAMEG Instruments GmbH • Industriestraße 6 • D-63533 Mainhausen
HAMEG Instruments GmbH • Industriestraße 6 • D-63533 Mainhausen
Tel.: +49 (0) 6182 800 0 • Fax: +49 (0) 6182 800 100 • E-Mail: info@hameg.com
Tel.: +49 (0) 6182 800 0 • Fax: +49 (0) 6182 800 100 • E-Mail: info@hameg.com
Tel.: +49 (0) 6182 800 0 • Fax: +49 (0) 6182 800 100 • E-Mail: info@hameg.com
Geschäftsführer: Dipl.-Ing. Holger Asmussen, Dipl.-Ing. Andre Vander Stichelen • AG Offenbach am Main HRB 41200
Geschäftsführer: Dipl.-Ing. Holger Asmussen • AG Offenbach am Main HRB 41200
Geschäftsführer: Dipl.-Ing. Holger Asmussen • AG Offenbach am Main HRB 41200
:DISPlay
:HCOPy
*ESR?
H M O S e r i e s
H M S S e r i e s
H M S S e r i e s
Firmware Version: 01.020 and later
Firmware Version: 01.020 and later
Firmware Version: 03.00 and later
:MEASure
:LOGic:SIZE
*OPC?
HMO352x, HMO2524
HMO72x ... HMO202x
:POD1
:SYSTem
*SRE?
192
Subject to change without notice
Subject to change without notice
Subject to change without notice
English
English
English
19
1
1
1

Advertisement

Chapters

Table of Contents
loading

Table of Contents