Agilent Technologies 35670A Manual page 766

Dynamic signal analyzer gpib programming
Hide thumbs Also See for 35670A:
Table of Contents

Advertisement

Example Programs
GETWATR
GETWATR
10
!
GETWATR
20
!———————————————————————————————————-
30
! BASIC/IBASIC Programs; Octave Waterfall Dump
40
!
50
! this program is divided into three parts. (1) set up the source,(2) set up
60
! and take a MEASUREMENT,(3) dump the data out of the instrument and print
70
! out the information. The information is in dBSLPrms units
80
!
90
! Some items of note.
100
! !
1. default is 1 engineering unit per volt
110
! !
2. engineering unit is defined in Pascals
120
! !
3. 20E-6 pascals = 1 SPL
130
! !
4. waterfall can only be dumped if the MEASUREMENT is PAUSED
140
! !
5. Connect the SOURCE to CHANNEL 1
150
! !
6. Overall power and A-weight Filter data is always outputted
160
! !
7. Data in the array A(*) is from Oldest to newest data.
170
! !
8. This is the opposite of the display which has oldest on
180
! ! !the bottom
190
!
200
! This program will also distinguish between IBASIC and BASIC run
201
!
Modes.
210
!———————————————————————————————————-
220
ON ERROR GOTO Not_ibasic
230
Device = 800
240
CLEAR Device
245
CLEAR SCREEN
250
GOTO Start_prog
260
!
270 Not_ibasic:
280
Device=711
290 Start_prog:
300
OFF ERROR
310
!
320
ASSIGN @Analyzer TO Device
330
!
340
!
350
DIM A(20000),X(100)
360
!
370
!
380
OUTPUT @Analyzer;"*RST"
390
OUTPUT @Analyzer;"INST OCT"
395
OUTPUT @Analyzer;"FREQ:RES:OCT THIR"
400 ! OUTPUT @Analyzer;"FREQ:RES:OCT FULL"
410 ! OUTPUT @Analyzer;"FREQ:RES:OCT TWEL"
420 !
Program listing continues on page F-30.
F-28
or 0 dBVrms = approx 94 dBSPLrms

Advertisement

Table of Contents
loading

Table of Contents