Hameg HMC8012 Programmer's Manual page 13

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

Advertisement

SCPI Commands HMC8012
1.5.1
Preventing Overlapping Execution
To prevent an overlapping execution of commands, one of the commands *OPC, *OPC? or *WAI can be used. All
three commands cause a certain action only to be carried out after the hardware has been set. By suitable program-
ming, the controller can be forced to wait for the corresponding action to occur.
Command
S C P I P r o g r a m m e r s M a n u a l
*OPC
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
*OPC?
*WAI
Table 1.7: Synchronization using *OPC, *OPC? and *WAI
Command synchronization using *WAI or *OPC? appended to an overlapped command is a good choice if the overlap-
ped command takes time to process. The two synchronization techniques simply block overlapped execution of the
command.
For time consuming overlapped commands it is usually desirable to allow the controller or the instrument to do other
useful work while waiting for command execution. Use one of the following methods:
*OPC with a service request
1. Set the OPC mask bit (bit no. 0) in the ESE: *ESE 1
:ACQuire
2. Set bit no. 5 in the SRE: *SRE 32 to enable ESB service request.
:CHAN1OFFSet
3. Send the overlapped command with *OPC
4. Wait for a service request
The service request indicates that the overlapped command has finished.
*OPC? with a service request
1. Set bit no. 4 in the SRE: *SRE 16 to enable MAV service request.
2. Send the overlapped command with *OPC?
3. Wait for a service request
The service request indicates that the overlapped command has finished.
Event Status Register (ESE)
1. Set the OPC mask bit (bit no. 0) in the ESE: *ESE 1
2. Send the overlapped command without *OPC, *OPC? or *WAI
3. Poll the operation complete state periodically (by means of a timer) using the sequence: *OPC; *ESR?
A return value (LSB) of 1 indicates that the overlapped command has finished.
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
Action
Sets the Operation Complete bit in the
ESRafter all previous commands have
been executed.
Stops command processing until 1 is
returned.This is only the case after the
Opera-tion Complete bit has been set
in the ESR. This bit indicates that the
previous setting has been completed.
Stops further command processing until
allcommands sent before *WAI have
been executed.
:DISPlay
:HCOPy
*ESR?
Programming the controller
– Setting bit 0 in the ESE
– Setting bit 5 in the SRE
H M O S e r i e s
– Waiting for service request (SRQ)
Sending *OPC? directly after the command whose
processing should be terminated before other com-
mands can be executed.
H M S S e r i e s
H M S S e r i e s
Sending *WAI directly after the command whose
processing should be terminated before other com-
mands are executed
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?
Subject to change without notice
Subject to change without notice
Subject to change without notice
English
English
English
13
1
1
1

Advertisement

Chapters

Table of Contents
loading

Table of Contents