Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 6 of 18

8840A Digital Multimeter Instruction Manual, pages 51 to 60

Pages 51 to 60 of 180

The original document is the PDF (42 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Fluke 8840A

Page 51 read from a scan by OCR; it may hold reading errors

Remote Programming INPUT SYNTAX

In some instances, a terminator is automatically transmit-ted at the end of the controller’s output string. For example, in Fluke BASIC, the PRINT statement always finishes with a CR LF pair. If a controller does not have this feature, the programmer must transmit a terminator explicitly.

The 8840A accepts alphabetic characters in either upper or lower case. Spaces, commas, and control codes are ignored and are not placed in the input buffer. If the 8840A receives a group of terminators (such as CR LF or CR LF EOI), only a single terminator is loaded into the input buffer. Numeric values used in PUT commands may be in NR1, NR2, or NR3 format as described in the IEEE-488 Codes and Formats Recommended Practice. (These correspond to the signed integer, real number, and real-number-with-exponent formats described under the N command.) For reference, Figure 3-8 shows how the 8840A interprets messages.

Illegal commands (e.g., F9) generate an error message, but are otherwise ignored, and do not affect the instrument’s configuration.

Example

“* FQ” This would load the output buffer with an error message and select F1 (established by the * command).

3-39. Syntax Rules

Explanation

Four syntax rules should be followed when constructing input command strings. They are:

* RULE 1: Read output data only once.

To prevent old (previously read) data from being read a second time by mistake, the output buffer is always cleared after it has been read. If the output buffer is read twice without an intervening output command, the 8840A will not respond to the second attempt to tead the output buffer. (However, if the 8840A is in TO, no intervening command is necessary.)

* RULE 2: Use no more than one output command per input command string.

Because the 8840A has only one output buffer, it writes new data over old. If an input command string contains more than one output command, only the data from the last command can be read.

Example Explanation

“Fl T3 ? F2 2” Improper construction. The second trigger writes over the first. To obtain two readings, send two complete command strings (sepa- tated by terminators).

“F2 R3 SO T3 Correct construction. The string

” contains only one output com- mand. “F2 R3 SO” Correct construction. It is permissi-ble for a string not to contain an _ output command.

* RULE 3: Read the output data generated by one input command string before sending the next input command string.

Output data remains available in the output buffer until it is read, or until the next input command string is received. As soon as the controller finishes reading the output buffer, or as soon as the 8840A receives a new input terminator, the Data Available bit in the

~ serial poll register is set false. When this bit is false, data can no longer be read from the output buffer. Therefore, ah output string which is available must be read by the controller before, rather than after, the next input command string is sent.

Rule 3 is most evident in the extemal trigger mode, and is best demonstrated by a programming example. The following program is written first incorrectly, and then correctly, in Fluke BASIC using the 1722A Instrument Controller.

Incorrect example:

100 PRINT @3, "T1 2" 200 PRINT @3, "F4" 300 INPUT @3, A

In this incorrect example, the INPUT statement is located incorrectly for reading the measurement data from line 100. The new input command string “F4” disallows the reading of data from the output buffer.

Correct example:

100 PRINT @3, "T1 2?” 200 INPUT @3, A 300 PRINT @3, "F4”

In this example, the reading taken at line 100 is read at line 200. Then the F4 command is sent. Note that in the external trigger mode, the reading from line 100 flashes on the 8840A display too briefly to see. This is because the function change at line 300 blanks the display unti] the next trigger.

The previous example could also be correctly programmed as follows:

100 PRINT @3, "T1 ? F4" 200 INPUT @3, A

* Rule 4: If an input command string contains a trigger, enter the commands in the following order:

_ a Commands to configure the instrument (if any). b. The trigger command.

c. Commands to re-configure the instrument (if any). d. Terminator(s). The principle behind this rule is that the 8840A executes all commands in the exact order they are received, from left to right as written.

Example “F3 F4 2”

Explanation

Improper construction. F3 is effectively discarded.

3-15

Page 52 read from a scan by OCR; it may hold reading errors

Remote Programming INPUT SYNTAX :

DEVICE-DEPENDENT MESSAGES

Single-character. Commands ”? *

Two-character Commands Bn Cn Dn Fn Gn Pn Rn Sn Wn Xn Yn Zn

Numeric-entry Characters NE.+ - 0123456789

Terminators CR LF GET EOI

INTERFACE MESSAGES

Address Messages MLA MTA UNL UNT

Universal Commands ATN DCL lFC LLO REN SPD SPE

Addressed Commands GET GTL SDC ignored Characters , comma space All other ASCH non-printing characters (except CR and LF)

ERROR-PRODUCING CHARACTERS "#3 ()/: <=>; @I/) fo~ HIJKLMOQUV

These two. commands are complete in them- selves (except for string terminator).

Each of these commands requires the single numeric digit (n).

These characters are used for entering numbers

Carriage Return

Line Feed:

Group Execute Trigger =

End Or Identify (used as END/DAB)

My Listen Address My Talk Address Unlisten

Untalk

Attention

Device Clear Interface Clear Local Lockout Remote Enable Serial Poll Disable Serial Poll Enable

Group Execute Trigger Go To Local Selected Device Clear

These characters may be inserted anywhere ina. character string without affecting the string.

They carry no special meaning and are ignored by the 8840A. They are not placed in the input buffer.

The error annunciator is displayed on the 8840A front pane! when one of these characters is encountered (ERROR 71).

Figure 3-8. interpretation. of Messages

3-16

Page 53 read from a scan by OCR; it may hold reading errors

Remote Programming INPUT SYNTAX

Correct construction. The’ 8840A is con- format shown in Table 3-2. The exponent is always a figured in F3, and the trigger is executed. multiple of 3, as in engineering notation. The position of Then the 8840A is left in F4. the decimal point matches the front panel display.

3-40. OUTPUT DATA

The following paragraphs describe the data that can be loaded into the 8840A output buffer and sent to the IEEE-488 bus. The paragraphs describe how and when data is loaded into the output buffer, the types of output data, and their relative priority.

“F3 ? F4”

Numeric data is of constant length, It is 11 characters (plus terminators) when the suffix is disabled, and 16 characters (plus terminators) when the suffix is enabled.

The suffix is enabled by the Y1 command, and consists of five ASCII characters as shown in Figure 3-6. The suffix is appended only to numeric data, never to status data. The terminators are determined by the Terminator commands. The default is CR LF EOI.

Note that the 8840A can also send data to the IEEE-488 bus from the serial poll register. For a description of this data, see paragraph 3-50. -

; There are three types of numeric data: measurement data, Overrange indication, and error messages.

3-44. MEASUREMENT DATA

Measurement data has the numeric data format shown in Table 3-2, and is always in the units of volts, amps, or ohms.

3-41. Loading Output Data

The output buffer is loaded when the 8840A receives an output command, or when an error occurs. Output commands are those device-dependent commands which load the output buffer with data:

* Get commands (GO through G8)

* Single-trigger command (?) NOTE In the fast (F) reading rate, the least significant digit is always zero, and should be dis-regarded when interpreting accuracy specifications.

* Group execute trigger (GET) * Continuous Trigger (TO)

Because the 8840A gives priority to input processing, it completely processes all characters in the input. buffer before it loads the output buffer. When the output buffer is loaded, the Data Available bit in the serial poll register is set true.

9-45. OVERRANGE INDICATION |

If a reading is overrange (=200,000 counts), the measure- ; ment data has the following format: Data from the output buffer is not actually loaded onto the IEEE-488 bus until the controller addresses the 8840A as a talker. This is done by sending the interface message MTA (My Talk Address).

+9.99999E+9 <suffix> <terminators>

Overvoltage readings (> 1000V dc or 700V ac) do not result in this display. 3-46. ERROR MESSAGES.

If the 8840A detects an error, it loads an error message into the output buffer in the following numeric format:

3-42. Types of Output Data

The types of data that can be loaded into the output buffer are- shown in Figure 3-6. Each type has its own format. Error messages, which are loaded into the output buffer if an error occurs, are formatted as numeric data. +1.00xxE+21 <terminators>

3-43. Numeric Data and Error Messages

Numeric data is loaded into the output buffer in response to the G2 command or an instrument trigger, and has the

The digits xx represent a two-digit error code. (Error codes are listed in Table 2-1, Section 2.) The suffix is always Suppressed for error messages. -

Table 3-2. Numeric Output Data Format

OVERRANGE

NGE MEASUREMENT DATA ERROR RANG VDC, VAC 2-, 4WIRE kQ | mA DC, mA AC INDICATION MESSAGES R1 £1XX.XxXxE-3 £1XX.XxxXE+0 - +9.99999E+9 +1.00xxE+21 R2 +1. 0OKxE+0 +1. XOOKE+3 - +9.99999E+9 +1.00xxE+21 R3 +1X:xXxXxxE+0 *1X.00XE+3 - +9.99999E+9 +1.00xxE+21 | R4 *1XX.xxxE+0 +1 XX.xXxxE+3 - +9.99999E+9 +1.00xxE+21 R5 +1200. xxXE+0 21XXx.xxE+3 £1 XXX.xXXE-3 +9.99999E+9 ~ +1.00xxE+21 R6 - *1X.XXxxxE+6 -- +9.99999E+9 +1.00xxE+21

3:17

Page 54 read from a scan by OCR; it may hold reading errors

Remote Programming OUTPUT DATA

Example Explanation

+1.0071E+21 CR LF ERROR 71: Syntax error in device-dependent command string.

As with local operation, none of the errors are latching except for ERROR 31. If the mA DC or mA AC function is requested while the FRONT/REAR switch is in the REAR position, ERROR 31 will persist until the switch is set to FRONT or another function is selected.

To check for an error condition, test whether the output buffer data is greater than or equal to +1E+21, or test the Any Error bit (bit.6) in the serial poll register.

. 3-47. Status Data

Status data is the output in response to GO, G1, G3, G4, G5, G6, G7, and G8 commands. The data is formatted as shown in Figure 3-2, and is interpreted in Table 3-1. Examples of status data can be found in the description of the Get commands.

The user-defined message loaded by the G3 command consists of 16 characters plus terminators. The SRQ mask loaded by the G1 command consists of two integers plus terminators. All other status data except G8, is always a four-digit integer plus terminators. The terminators LF (Line Feed) and CR (Carriage Retum) each add an extra character when enabled.

The 8840A. begins some status data with a leading ASCII one (1) or a one and a zero (10). This prevents the controller from suppressing any leading zeros present in the 8840A’s output string. It also gives a uniform four-character length to all instrument configuration data.

Status data from the Get commands reflects the status of the 8840A at the time the command is executed at its place in the input command string.

3-48. Output Priority

Since only one output string is allowed per input command string, the 8840A gives priority to some types of data over others. An input command string may call for more than one output string. (For example, an input string may contain a Get command but also cause an error message.) However, the output buffer is loaded with only one output String. That string is selected according to the following priority:

1. Status data (from GO, G1, G3;-G4, G5, G6, G7, or G8)

2. Error messages (if an. error exists)

3. Numeric data (from G2 or a trigger)

3-18

-.. This. means ‘that an error message always overrides numeric data, but status data is sent even in the presence of an error. However, the status data does not clear the error message, the error message is sent the next time numeric data is requested.

3-49. SERVICE REQUESTS

Service requests let bus instruments get the attention of the system controller. The requests are sent over the SRQ line (one of the IEEE-488 bus lines). If more than one instrument on the bus is capable of sending service requests, the controller can learn which one made the request by taking a serial poll. Each device (including the 8840A) responds to the poll by sending the contents of its serial poll register. The serial poll register indicates. whether or not the device requested service, and if so, the reason for the request.

The 8840A may be programmed to make a service request on user-specified conditions. The conditions are specified by entering a value for the service request mask (SRQ mask) with the P1 command. The SRQ mask works by monitoring the serial poll register, which in turn monitors various conditions in the 8840A.

Service requests may also be initiated using the front panel SRQ button if it has been enabled by the SRQ mask.

3-50. The Serial Poll Register

The serial poll register is a binary-encoded register which contains eight bits, as illustrated in Figure 3-9. The ¢on-troller can read the 8840A serial poll register at any time by taking a serial poll. Because’ serial poll register data i is loaded directly onto the bus (instead of being loaded into the output buffer first), reading the serial poll Tegister leaves data in the output buffer intact.

The eight bits of the serial poll register are described in Figure 3-9. Note that the SRQ mask uses bits 1 through 6 to set bit 7 (the ROS bit). When the ROS bit is set true, the 8840A sets the SRQ line true, which generates a service request. A bit is considered true when it is set to 1.

* Bit. 1 (the lowest-order bit) is set true on overrange. When overrange occurs, the output buffer is loaded +9.99999E+9 (and a suffix, if enabled).

* Bit 2 is not used. It is always set to 0.

* Bit 3 is set true when the front panel SRQ button is pressed.

* Bit 4, Cal Step Complete, is set te when a tore command is completed in the calibration proced

* - Bit 5, Data Available, is set true every time the output buffer is loaded, regardless of the kind of output data (including error messages). This bit is cleared (set to 0) when any new bus input occurs, when the output buffer is read, or when an external trigger occurs.

* Bit 6, Any Error, is set trae whenever an error condition occurs. At the same time that bit 6 is set true, the output buffer is loaded with an error message.

Page 55 read from a scan by OCR; it may hold reading errors

Remote Programming SERVICE REQUESTS interface messages described here originate at the controller.

3-53. Address Messages

Address messages are used by the controller to communicate talk and listen control to other devices on the bus. Address messages are sent over the eight data lines of the bus while the controller holds ATN true. Address messages are processed immediately and are not-placed in the input buffer. The address messages are:

* MLA My Listen Address -- Addresses a device to listen

* MTA My Talk Address -- Addresses a device to talk * UNL Unlisten -- Addresses all listeners to unlisten * UNT Untalk -- Addresses all talkers to untalk

3-54. Universal Commands

Universal commands are accepted and interpreted by all devices on the bus. The commands are of two types, multiline messages and uniline messages. Multiline messages are sent over the eight parallel data lines in the IEEE-488 bus. Uniline messages are sent over one of the individual interface management lines in the IEEE-488 bus. All universal commands except DCL are processed immediately by the 8840A, ahead of any device-dependent commands. Only DCL enters the 8840A input buffer.

The 8840A responds to the following universal messages:

ATN Attention -- A uniline message which causes the. 8840A to interpret multiline messages as interface messages (AD, AC, or UC). When false, multiline messages are interpreted as device-dependent messages.

IFC Interface Clear -- A uniline message which clears only the interface (not the 8840A) by placing it in a known quiescent state.

REN Remote Enable -- A uniline message which, when received with MLA, switches the 8840A to remote. When REN is set false, the 8840A switches to local and removes local lockout.

DCL Device Clear -- A multiline message which is loaded into the input buffer as a special device-clear command. DCL performs the Same operation as the device-dependent com- mand *, except that it is read before any. other characters that are already present in the input buffer, and clears the entire input buffer. Processing then continues normally. The action of DCL is not immediate; if the 8840A is taking a reading when DCL is received, the DCL command is executed after the measurement is finished.

LLO Local Lockout -- A multiline message which disables the front panel LOCAL button. The result is that the local mode is not accessible by front panel control.

details.

SPD Serial Poll Disable - A multiline message which removes. the serial poll enable state.

SPE Serial Poll Enable - A multiline message which causes the serial poll data (rather than output buffer data) to be transferred on the bus once ATN becomes false.

3-55. Addressed Commands

Addressed commands are multiline messages which are accepted and interpreted by only those devices currently addressed to listen. The 8840A responds to the following addressed commands:

GET Group Execute Trigger -- (Not to be confused with the device-dependent Get commands.) GET loads a trigger command into the |input buffer and also terminates the string at that point. Only a single character is loaded into the input buffer. The trigger command is executed in its proper turn in the input string, rather than immediately. When executed, GET initiates a measurément.

GTL Go To Local -- Causes the 8840A to switch to local. This command does not enter the input buffer. If the display has been blanked (with a D1 command), issue a DO command before sending GTL.

SDC Selected Device Clear -- Identical.to the universal command DCL, but is accepted and interpreted by current listeners only. Therefore, it clears the 8840A only if it is addressed to listen.

3-56. TALK-ONLY MODE

The talk-only mode. lets you take advantage of the remote capability of the 8840A without having to use an instrument controller. To put the 8840A in the talk-only mode:

1. Turn the 8840A POWER switch OFF.

2. Set the rear panel TALK ONLY bit switch to 1 (the up position).

3. Connect the 8840A via the IEEE-488 bus to your printer, data logger, or other device.

4. Configure the other device as a listener only. 5. Turn the 8840A POWER switch ON. 6. Configure the 8840A with the front panel controls.

The 8840A reads the TALK ONLY bit switch on power-up and when it receives the interface command IFC. You can therefore set the TALK ONLY switch to 1 after power-up as long as you then send the 88404 the IFC command. |

3-57. REMOTE CALIBRATION

The 8840A. can be calibrated over the IEEE-488 bus using Temote commands. Refer to the Maintenance section for

Page 56 read from a scan by OCR; it may hold reading errors

Remote Programming

TALK-ONLY MODE

Table 3-3. immediate-Mode Commands for Various Controliers

FUNCTION PERFORMED FLUKE-BASIC HP-HPL on HP-BASIC on HPggis-pc| TEK-BASIC on 1720A or 1722A HP9825 Caiculator and HP-85 Calculator | Graphics System INITIALIZE Port INIT PORT 0 cli7 CLEAR 7 INIT CLEAR Instrument CLEAR @4 clr 704 CLEAR 704 PRINT @4:“*”" REMOTE Commands REMOTE @4 rem 704 REMOTE 704 WBYTE @36,17: LOCAL Control LOCAL @4 ic] 704 LOCAL 704 WBYTE @36,1: EXTERNAL TRIGGER PRINT @4,"T1” wrt 704,"T1i” OUTPUT 704;“T1” PRINT @4:"T1” TRIGGER Instrument TRIG @4 trg 704 TRIGGER 704 PRINT @4:"2” GET Output Data INPUT @4,A red 704,A ENTER 704;A (Note 2) INPUT @4:A PRINT Data to Screen PRINT A prtA PRINT A (Note 2) PRINT A CONFIGURE for VAC PRINT @4,“F2” wrt 704,“F2” OUTPUT 704;"F2” PRINT @4:“F2” CONFIGURE for 200Vac PRINT @4,"R4” wrt 704,“R4” OUTPUT 704;“R4” PRINT @4:"R4” TRIGGER Continuously PRINT @4,"TO” wrt 704,“TO” OUTPUT 704;“TO” PRINT @4:“TO” SUFFIXES Enable PRINT @4,“Y1” wrt 704,“Y1" OUTPUT 704;“Y1” PRINT @4:"Y1” GET Data & Suffix INPUT @4, A,A$ red 704,A,A$ (Note 1) ENTER 704;A,A$ (Note 2) | INPUT %4:A,AS$ PRINT Data & Sutfix _ PRINT A,AS prt A$,A PRINT A,A$ (Note 2) PRINT A,A$

Notes:

1. Before using A$ on the 9825 is necessary to enter “dim A$[6]" to.allocatea String variable. This statement allows six characters.

2. In the HP9816 system, variables cannot be created from the keyboard; they must be created by running a program. (See error

910 for that system.) To get around this, type in a very short program as follows:

SCRATCH (Hit “EXEC” key) 10A=0 = (Hit “ENTER” key) 20A$="", (Hit “ENTER” key) 30 END (Hit “ENTER” key) (Hit “RUN” key)

This program creates the variables ‘A’ and ‘A$’ so that they may be accessed in immediate mode and changed at will. This program is not necessary for the HP-85 Calculator.

3-58. TIMING CONSIDERATIONS

To help you take the best advantage of the speed of the 8840A, external trigger timing for the IEEE-488 Interface is described in the specifications in Section 1.

3-59. IMMEDIATE MODE COMMANDS

Many controllers have some amount of “immediate mode” capability. That is, commands may be given interactively to the 8840A via the run-time-system without the need for actually running a program. The controller accepts and executes these commands one at a time. Some commonly used commands are listed in Table 3-3 for several controllers. These are provided for the convenience of instrument demonstrations, set-up and check-out, and for those* with limited experience with IEEE-488 bus operations.

As a genera] note: The entire 8840A command set should work well provided the “port clear” and “device clear” commands are given first. You should then be able to send any other commands in the 8840A command set without ' repeating the clearing commands.

- 3-60. EXAMPLE PROGRAMS

Several example programs for the 8840A using various controllers are presented in the remaining figures in this section. In all of these examples, the 8840A is set to TEEE-488 address 4 (rear panel switch setting 000100). Of course, any other address (00 to 30) could be substituted.

In each of these examples, the instrument is cleared prior to configuration set-ups. This ensures that the 8840A configuration has been completely defined.

To run these programs, it is not necessary to type in all the comments (which appear to the right of the exclamation marks). Also, spaces are placed between commands for ease of reading; they are not required.

NOTE

For the examples using the Fluke 1720A or 17224, the 8840A is plugged into port 0. The port is initialized by the INIT statement, which sends IFC (interface clear).

Page 57 read from a scan by OCR; it may hold reading errors

Remote Programming EXAMPLE PROGRAMS

1! 2! 3! 4! 5! 6! 7 8! 9! 20

35 40 45 50 55

This program selects VDC (F1), Autorange (RO), Slow rate (SO), continuous trigger (TO) and . suffixes enabled (Y1). The program takes 10 readings and stops. The 8840A is addressed on port 0, device #4 under control of a Fluke 1720A or 1722A Instrument Controller.

In the INPUT statement, the controller assigns the first part of the 8840A output response (the measurement value) to R, and assigns the second part (the suffix) to R$.

FLUKE-BASIC on 1720A, 1722A

INIT PORT 0

CLEAR PORT O .

PRINT @4, ‘F1 RO SO TO Y1" FORI=1T010, INPUT @4, R, R$

PRINT " ",LR.RS NEXT I END

{Clear Port | . !Clear instr to default functions !Write functions to instrument

!Get data from 8840A {Print to 1722A display

3-22

Figure 3-10. Example Program: Taking 10 Readings

Page 58 read from a scan by OCR; it may hold reading errors

Remote. Progr EXAMPLE: PRO’

RAMS

1! This is a sample program which commands the 8840A to the state of VDC, autorange, slow rate,

2! continuous trigger and suffixes enabled. All readings appear simultaneously on the - 3! instrument display while being logged on the controller display with suffixes enabled for 4! function readout. Full local control is given to the 8840A so that any range or function

5! may be invoked easily. The controller always echos the 8840A display while this program 6! is running.

7!

8! FLUKE-BASIC on 1720A, 1722A

9!

30 INIT PORTO {Clear Port

40 CLEAR PORT 0 !Clear instrument to default functions

50 WAIT 1000 !Wait 1 second before sending commands 60 PRINT @4, "F1 RO SO TO Y1" 'F1=VDC, RO=Autorange, SO=Slow rate 70! !TO=Continuous trigger, Yl=Enable suffix 80 X=0

90 LOCAL @4 !Give local control to instrument

95!

110 INPUT @4,A,A$ {Get reading and suffix from 8840A

120. X=X+1 "increment reading count

130 PRINT" "XA,AS !Display reading and suffix

140 GOTO 110

200 END

Figure 3-11. Example Program: Taking Readings with Local Control

3-23

Page 59 read from a scan by OCR; it may hold reading errors

Remote Programming EXAMPLE PROGRAMS

The following program illustrates one possible use of the serial poll register. In this

1!

2! case it is merely looking for data available. The instrument is addressed on port 0, 3! device #4 under control of a Fluke 1720A or 1722A instrument controller. The function 4! of this program is to display on the controller screen the lowest resistance measured 5! across the input terminals of the 8840A using the 2-wire ohms function in autorange. 6! The command string sets up the 8840A by using the Put Instrument Configuration command PO. 7!

8! FLUKE-BASIC on 1720A, 1722A

9!

100 INIT PORT 0 \ CLEAR PORT 0 \ WAIT 500 !Clear port, instrument, delay |

110 PRINT @4, "N3001P0 Y1 ?* ‘Instrument functions and trigger

120 INPUT @4, A,A$ 1Get first reading

130 PRINT" ",A,A$;"S (2-wire) Lowest Reading”

140 TRIG @4 |

160 B%=SPL(4) !Get serial poll register

170 IF (B%=0%) THEN 160 !Looking for data available

175 INPUT @4,R,A$ !Get next data

180 IF R>=A THEN 140 !Throw away data if not lowest’

185 A=R !Update lowest reading

190 GOTO 130 Print new low

900 END |

3-24

Figure 3-12. Example Program: Using the Serial Poll Register

1 1

Page 60 read from a scan by OCR; it may hold reading errors

Remote Programming | EXAMPLE PROGRAMS

10! This program demonstrates a method of recording any errors produced by the 8840A during self test. 20!

30! It should be noted that:

40! 1. If more than one digital test error occurs, only the last one will be reported.

50! 2. The response to the Get Instrument Configuration (GO) command during selftest is "Oxxx", 60! 3. The response to a Get Error Status (G7) command with no errors present is "1000". 70! ; 80! FLUKE-BASIC on 1720A, 1722A 90!

100 DA%=4% Device address #4

110 TIMEOUT 10000 110 second timeout

120 PRINT :

130 PRINT "MONITORING SELFTEST"

140 INIT PORT 0 Nnitialize port

150 CLEAR @DA% !Clear device

160 PRINT @DA%, "ZO" 'Start selftest

170!

180 PRINT @DA%, "G7" \ INPUT @DA%, E$

190 IF (E$ = "1000") THEN 220

200 PRINT @DA%, "XO"

210 PRINT "ERROR ";RIGHT(E$,3);" OCCURRED" !Print analog errors 220 PRINT @DA%, "GO" \ INPUT @DA%, STS

230 IF (ST$ >= "9000") GOTO 180

240 PRINT @DA%, "G7" \ INPUT @DA%, ES

250 IF (E$ = "1000") THEN 270

260 PRINT "ERROR *;RIGHT(E$,3);" OCCURRED" {Print last digital error 270 PRINT "SELFTEST COMPLETE"

280 END

Figure 3-13. Example Program: Record Errors During Selftest 3-25