Agilent Technologies 35670A Manual page 749

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

Advertisement

FREQRESP
10
! FREQRESP
20
!———————————————————————————————————
30
! BASIC/IBASIC Program: Freq Response
40
! This program puts the instrument in a 2-channel mode, sets up a
50
! frequency response measurement, runs the measurement and then
60
! transfers the data. This program also distinguishes between IBASIC
70
! and BASIC run modes.
80
!
90
! NOTE: for best results connect the source and channel to the input of
100
! !the device under test, and Channel 2 to the output of the device
110
! !under test. You could also use a straight connection between
120
! !both inputs and the source.
130
!———————————————————————————————————-
140
!
150
ON ERROR GOTO Not_ibasic
160
Device=800
170
CLEAR Device
180
GOTO Start_prog
190
!
200 Not_ibasic:
210
Device=711
220 Start_prog:
230
OFF ERROR
240
!
250
!
260
ASSIGN @Analyzer TO Device
270
!
280
!
290
!
300
DIM A(5000)
310
!
320
OUTPUT @Analyzer;"*RST"
330
OUTPUT @Analyzer;"INP2 on"
340
OUTPUT @Analyzer;"OUTP ON"
350
OUTPUT @Analyzer;"SOUR:FUNC RAND"
360
OUTPUT @Analyzer;"SOUR:VOLT 1 VPK"
370
OUTPUT @Analyzer;"AVER ON"
380
OUTPUT @Analyzer;"ABOR;:INIT; *WAI"
390
OUTPUT @Analyzer;":INIT:CONT OFF"
400
!
410
!
420
ASSIGN @Analyzer_bin TO Device;FORMAT OFF
430
!
440
!
450
! .
460
OUTPUT @Analyzer;"form:data real,64"
470
!
Program listing continues on page F-13.
Example Programs
FREQRESP
F-11

Advertisement

Table of Contents
loading

Table of Contents