Agilent Technologies 34420A Spezifikationen Seite 215

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 294
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 214
HP BASIC Language Programs
All of the HP BASIC examples in this chapter were developed and tested
on an HP 9000 Series 300 controller. Each device on the HP-IB
(IEEE-488) interface must have a unique address. You can set the
meter’s address to any value between 0 and 30. The current address is
momentarily displayed on the front panel when you turn on the meter.
The HP-IB (IEEE-488) address is set to "22" when the meter is shipped
from the factory. The examples in this chapter assume a HP-IB address
of 22. When sending a remote interface command, you append this
address to the HP-IB interface’s select code (normally 7). Therefore, with
an address of 22 and a select code of 7, the combination is "722".
HP BASIC / HP-IB Program Example 1
This example demonstrates the general sequence of programming and
the use of the MEASure? command to set and obtain a 4-wire Ohms
measurement.
10 !
20 ! This program configures the meter for a 4-wire ohms measurement on
30 ! Channel 1 using the MEAS command.
40 !
50 REAL Value,Rdg ! Dimension real variables
60 CLEAR 7 ! Clear interface - send "device clear"
70 ASSIGN @Meter TO 722 ! Assign I/O path to address 722
80 !
90 OUTPUT @Meter;"*RST" ! Reset the meter
100 OUTPUT @Meter;"*OPC?" ! Send "1" to output buffer when reset complete
110 ENTER @Meter;Value ! Enter value
120 !
130 ! Select 4-wire ohms on the 10 ohm range with the least resolution;
140 !
150 OUTPUT @Meter;"MEAS:FRES? 10,MAX"
160 ENTER @Meter;Rdg ! Enter reading
170 PRINT Rdg ! Print reading
180 END
6
Chapter 6 Application Programs
HP BASIC Language Programs
215
GPIB
GPIB
GPIB
GPIB
GPIB
Seitenansicht 214
1 2 ... 210 211 212 213 214 215 216 217 218 219 220 ... 293 294

Kommentare zu diesen Handbüchern

Keine Kommentare