Agilent Technologies E5071C Manual page 1005

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

E5071C
Writing Data in Ascii Format
Overview
Sample Program in HT Basic
Other topics about Sample Programs
Overview
The sample program demonstrates to Write Formatted Data Arrays in
Using the ASCII Transfer Format
See Entering Data into a Trace for this programming.
Sample Program in HT Basic (write_a.htb)
10 REAL Freq,Fdata(1:1601,1:2)
20 DIM File$[300]
30 INTEGER Nop
40 !
50 ASSIGN @Agte507x TO 717
60 !
70 CALL Inp_file_name(File$)
80 !
90 OUTPUT @Agte507x;":CALC1:PAR1:SEL"
100 OUTPUT @Agte507x;":INIT1:CONT OFF"
110 OUTPUT @Agte507x;":ABOR"
120 !
130 OUTPUT @Agte507x;":SENS1:SWE:POIN?"
140 ENTER @Agte507x;Nop
150 REDIM Fdata(1:Nop,1:2)
160 !
170 ON ERROR GOTO File_error
180 ASSIGN @File TO File$
190 ENTER @File USING "K";Buff$
200 ENTER @File USING "K";Buff$
210 ENTER @File USING "K";Buff$
220 FOR I=1 TO Nop
230 ENTER @File USING "19D,2X,19D,2X,19D";Freq,Fdata(I,1),Fdata (I,2)
240 NEXT I
250 ASSIGN @File TO *
260 OFF ERROR
270 !
280 OUTPUT @Agte507x;":FORM:DATA ASC"
1232

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents