
Remote Operation
Remote Program Examples
5
5-45
5-57.
Error Queue
When a command error, execution error, or device-dependent error occurs, its error code
is placed in the error queue where it can be read by the
ERR?
command. (See
Appendix F for a list of error messages.) A way to decode an error code is to send the
command,
EXPLAIN?
, which returns a description of a error code. Reading the first
error with the
ERR?
command removes that error from the queue. A response of 0 means
the error queue is empty. The Error Available (EAV) bit in the Serial Poll Status Byte
indicates whether the queue is empty. The error queue is cleared when you turn off the
power, and when you use the
*CLS
(Clear Status) common command.
The error queue contains up to 16 entries. If many errors occur, only the first 15 errors
are kept in the queue. A 16th entry in the queue is always an "error queue overflow"
error, and all later errors are discarded until the queue is at least partially read. The first
errors are kept, because if many errors occur before the user can acknowledge and read
them, the earliest errors are the most likely to point to the problem. The later errors are
usually repetitions or consequences of the original problem.
5-58.
Remote Program Examples
The following programming examples illustrate ways to handle errors, to take
measurements, take a number of successive readings, lock the range, and calibrate the
calibrator. These excerpts from programs are written in DOS BASIC.
5-59.
Guidelines for Programming the Calibrator
Commands are processed one at a time as they are received. Some commands require a
previous condition be set before the command will be accepted by the 5820A Calibrator.
Using the following programming guidelines will insure that the output is programmed to
the desired state.
•
The SCOPE command should be programmed first.
•
The output should be programmed next with the OUT command.
•
All other output parameters such as offset and waveform should be programmed
next.
•
The error status should be checked with the ERR? command. The calibrator will not
process the OPER command if an unacknowledged error exists.
•
Finally, the calibrator should be placed in operate with the OPER command.
A controller program first needs to initialize the interface and the 5820A Calibrator.
Refer to following sample program:
10 INIT PORT 0 \ REMOTE @6
! PUT THE 5820A INTO THE
! REMOTE STATE
20 PRINT @6, "*RST;SCOPE VOLT; OUT 1v, 0HZ;;OPER" ! RESET THE 5820A,
! PROGRAM IT TO OUTPUT
! 1 V DC
If you wish to use SRQs, first use the
*SRE
,
*ESE
, and
ISCE
commands to enable the
desired event. Refer to “Checking 5820A Status.”
Содержание 5820A
Страница 10: ...5820A Operators Manual vi ...
Страница 14: ...5820A Operators Manual x ...
Страница 16: ...5820A Operators Manual 1 2 ...
Страница 32: ...5820A Operators Manual 2 2 ...
Страница 40: ......
Страница 144: ...5820A Operators Manual 6 2 ...
Страница 190: ......
Страница 212: ...5820A Operators Manual 7 24 ...
Страница 214: ...5820A Operators Manual 8 2 ...
Страница 230: ...5820A Operators Manual 9 2 ...
Страница 234: ...5820A Operators Manual ...
Страница 244: ...5820A Operators Manual A 10 ...
Страница 245: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes ...
Страница 246: ...5820A Operators Manual B 2 ...
Страница 248: ...5820A Operators Manual B 4 ...
Страница 250: ...5820A Operators Manual C 2 ...
Страница 258: ...5820A Operators Manual E 4 ...
Страница 264: ...5820A Operators Manual F 6 ...
Страница 272: ...5820A Operators Manual 8 ...