Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 384

Multimètre

Publicité

7
BASIC Language for the 3458A
3458A BASIC Language Example Program
The following example program illustrates the use of the 3458AA's internal BASIC
language along with the use of new multimeter commands. This program example
uses a Series 300 BASIC computer for program development and for downloading
the program to the multimeter over the GPIB interface. The multimeter's bus
address is 22 and the computer's GPIB interface address is set to 700.
10 !
20 ! The following program uses the
30 ! the mean (throwing away the largest and smallest values).
40 ! Four BASIC language commands are used:
50 ! RMATHV, LET, REAL, and OUTPUT.
60 !
70 !
80 ! RMATHV - Fills a variable with the present value of
90 !
100 !
110 ! OUTPUT - Returns the value to the source from which the command
120 !
130 !
140 !
150 !
160 ! LET and REAL - Assign values to the specified variables.
170 !
180 !
190 !
200 DIM Rdgs(1:300)
210 ASSIGN @Dvm TO 722
220 !
230 CLEAR @Dvm
240 OUTPUT @ Dvm; "RESET"
250 WAIT 0.5
260 !
270 OUTPUT @Dvm; "PRESET FAST"
280 OUTPUT @Dvm; "OHM 1000"
290 OUTPUT @Dvm; "APER 167E-6"
300 OUTPUT @ Dvm; "OFORMAT ASCII"
310 OUTPUT @Dvm; "MEM FIFO"
320 OUTPUT @Dvm; "NRDGS 300,TIMER"
330 OUTPUT @Dvm; "TIMER 0.0002"
340 !
350 !
384
a math register; similar to RMATH.
was executed (since the example called the
subprogram from the GPIB bus, the value of
AVG is sent over the bus).
3458A
A to calculate
! Dimension data array in computer
! Set up GPIB address
! Set up to acquire 300 readings
! 5000 Rdgs/sec sample rate
Keysight 3458A User's Guide

Publicité

loading