Agilent Technologies 35670A Manual page 762

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

Advertisement

Example Programs
GETCURF
GETCURF
10
!
GETCURF
20
!———————————————————————————————————
30
! BASIC/IBASIC Programs; Get Curve Fit table
40
! This program will query the Curve Fit Data in Binary and print out
50
! most of the information on the CRT screen. The program does not cover
52
! all cases but uses the default conditions. The program assumes that
54
! the Curve Fit has already been run, and the user wishes to dump the
56
! data out of the Instrument and into the controller. The program also
58
! prints out most of the acquired data. Use the descriptions found in
60
! the CALC:CFIT:DATA to extract other available information from the
70
! Curve Fit table.
80
! This program will also distinguish between IBASIC and BASIC.
90
!————————————————————————————————————
92
!
94
ON ERROR GOTO Not_ibasic
100
Device = 800
110
CLEAR Device
120
GOTO Start_prog
130
!
140 Not_ibasic:
150
Device=711
160 Start_prog:
170
OFF ERROR
250
!
260
ASSIGN @Analyzer TO Device
270
DIM A(5000)
280
ASSIGN @Analyzer_bin TO Device;FORMAT OFF
290
OUTPUT @Analyzer;"FORM:DATA REAL,64"
300
!
320
OUTPUT @Analyzer;"CALC1:CFIT:DATA?"
340
!
342
!
344
!
346
!
350
ENTER @Analyzer USING "%,A,D";A$,Digits
390
ENTER @Analyzer USING "%,"&VAL$(Digits)&"D";Num_of_bytes
400
Num_points=Num_of_bytes DIV 8
410
!
430
REDIM A(Num_points-1)
440
ENTER @Analyzer_bin;A(*)
450
ENTER @Analyzer;A$
Program listing continues on page F-26.
F-24
!

Advertisement

Table of Contents
loading

Table of Contents