![Fluke 5790A Скачать руководство пользователя страница 88](http://html1.mh-extra.com/html/fluke/5790a/5790a_operators-manual_2309650088.webp)
5790A
Operators Manual
5-12
5-20.
Using Commands
Communication between the controller and the 5790A consists of interface messages and
commands. Interface messages are defined by the IEEE-488.1 standard and control the
lowest level of bus communication. Interface messages are handled automatically by the
controller. (See "Interface Messages" further on in this section for more information.)
Commands are sent to the 5790A literally, for example, with the Fluke 1722A BASIC
PRINT statement. The commands are described in Section 6. There are three types of
commands:
Common commands: Commands that start with an asterisk. These are defined by the
IEEE-488.2 standard.
Device-dependent commands: Commands specific to the 5790A.
Queries: Commands that cause the 5790A to send a response to the controller. (These
commands always end with a question mark (?).)
A controller program first needs to initialize the interface and the 5790A.
Refer to following sample program:
10 INIT PORT 0 \ REMOTE @6 ! PUT THE 5790A INTO THE REMOTE STATE
20 PRINT @6, "INPUT INPUT2" ! MAKE INPUT2 THE ACTIVE INPUT
30 PRINT @6, "MEAS?" ! TAKE A MEASUREMENT
40 INPUT @6, V,F,ST ! GET THE RESULT
If you wish to use SRQs, first use the *SRE, *ESE, and ISCE commands to enable the
desired event. Refer to "Checking the Instrument Status" further on in this section for
more information.
You retrieve instrument parameters with a query (a programming command that ends
with a question mark):
200 PRINT @6, "DUNIT?"
! RETRIEVE DELTA UNITS
210 INPUT LINE @6, A$
220 PRINT "Delta Units are: "; A$
230 PRINT @6, "ONTIME?" ! RETRIEVE ON TIME
240 INPUT LINE @6, A$
250 PRINT "The instrument has been on for "; A$;" minutes"
This program generates the following sample output:
Delta Units are: PPM
The instrument has been on for 1595 minutes
Check for programming errors as in the following sample programs. Check the Error
Available (EAV) bit in the serial poll register using a serial poll.
300 A = SPL(6) ! CHECK FOR ERRORS
310 IF (A AND 8) THEN PRINT "There was an error"
320 PRINT @6, "*CLS" ! CLEAR ERRORS
Retrieve errors and explanations as follows. Since errors are accumulated in a queue, you
must read the entire queue to retrieve and clear all the errors.
400 PRINT @6, "ERR?"
! CHECK FOR ERRORS
410 INPUT @6, A, A$
! READ IN THE ERROR
420 IF (A = 0) THEN GOTO 500 ! NO MORE ERRORS
430 PRINT "Error# :";A, A$ ! PRINT ERROR# AND EXPLANATION
440 GOTO 400
500 END
Содержание 5790A
Страница 4: ......
Страница 12: ...5790A Operators Manual vi...
Страница 14: ...5790A Operators Manual viii...
Страница 16: ...5790A Operators Manual 1 2...
Страница 34: ...5790A Operators Manual 2 2...
Страница 40: ...5790A Operators Manual 2 8...
Страница 41: ...3 1 Chapter 3 Features Title Page 3 1 Introduction 3 3 3 2 Front Panel Features 3 3 3 3 Rear Panel Features 3 3...
Страница 42: ...5790A Operators Manual 3 2...
Страница 48: ...5790A Operators Manual 3 8...
Страница 108: ...5790A Operators Manual 6 2...
Страница 146: ...5790A Operators Manual 7 2...
Страница 164: ...5790A Operators Manual 7 20...
Страница 166: ...5790A Operators Manual 8 2...
Страница 170: ...5790A Operators Manual 8 6...
Страница 172: ...5790A Operators Manual 9 2...
Страница 176: ...5790A Operators Manual...
Страница 185: ...B 1 Appendix B ASCII and IEEE 488 Bus Codes...
Страница 186: ...5790A Operators Manual B 2...
Страница 187: ...Appendices ASCII and IEEE 488 Bus Codes B B 3...
Страница 188: ...5790A Operators Manual B 4...
Страница 204: ...5790A Operators Manual C 16...
Страница 210: ...5790A Operators Manual D 6...