Agilent Technologies E5071C Manual page 1031

Hide thumbs Also See for E5071C:
Table of Contents

Advertisement

E5071C
Transferring Files
Overview
Sample Program in HT Basic
Other topics about Sample Programs
Overview
This sample program demonstrates to transfer files between the external
controller and the E5071C.
This program reads out data from a specified file on the external controller
(or the E5071C), then write them to a specified file on the E5071C (or the
external controller).
See Managing Files for this programming.
Sample Program in HT Basic (file_xfr.htb)
10 DIM Src_file$[50],Dst_file$[50],Src_size_char$[50],Inp_char$[30]
20 INTEGER Direction
30 ASSIGN @Agte507x TO 717
40 !
50 CLEAR SCREEN
60 ON ERROR GOTO Direct_select
70 Direct_select: !
80 PRINT "#### File Transfer ####"
90 PRINT " 1: E507x -> Controller"
100 PRINT " 2: Controller -> E507x"
110 PRINT ""
120 PRINT "Input 1 or 2"
130 INPUT "Number?",Inp_char$
140 Direction=IVAL(Inp_char$,10)
150 IF Direction<1 OR Direction>2 THEN Direct_select
160 OFF ERROR
170 !
180 PRINT ""
190 PRINT " Input source file name. ";
200 INPUT "Name?",Src_file$
210 PRINT ": "&Src_file$
220 !
230 IF Direction=2 THEN
240 PRINT " Input source file size. ";
250 INPUT "Size[Byte]?",Src_size_char$
1258

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents