User`s guide

Table Of Contents
Chapter 9 141
Saving and Recalling (File Management)
Managing Files
9. Saving and Recalling
(File Management)
Line 540 This line stores a maximum number of transferred data (in bytes) per
one transfer, that is 24 KByte to meet the size limitation of string
arrays in the HTBasic, into Max_bsize variable.
Lines 560 to 600 These lines configure the system to generate an SRQ when it cannot
find a source file for copying due to an error.
Lines 620 to 630 These lines set the branch target for an SRQ interrupt to enable SRQ
interrupts.
Lines 640 to 650 These lines display a message showing that the transfer has started,
and execute commands for reading data from a file on the
E5061A/E5062A.
Lines 670 to 680 These lines read the header symbol (#) in a block data, read number of
digits (characters) indicating the size of data in bytes, then store it into
Digit$ variable.
Line 690 This line creates a format for reading characters in Digit$.
Line 700 This line reads the data size in byte and stores it into Src_size_char$
variable.
Line 720 This line converts Src_size_char$ to a real number and stores it into
Src_size variable.
Lines 730 to 870 These lines repeat the procedures below until Src_size reaches 0.
Lines 740 to 780: If Src_size is greater than Max_bsize, these lines
assign the value of the Max_bsize to Block_size variable
(transferred data in bytes). If Src_size is equal or less than
Max_bsize, assign the value of Src_size to Block_size.
Line 800 This line defines Dat$ string variable with the size as
large as Block_size and reserves memory area.
Line 810 This line creates a format for reading characters as many
as Block_size characters.
Line 820 This line reads data from the file on the
E5061A/E5062A, then stores them into Dat$.
Line 830 This line writes the contents of Dat$ to the file on the
external controller.
Lines 840 to 860 These lines free the memory area for Dat$ and
subtract Block_size from Src_size.
Lines 890 to 900 These lines display a message showing the completion of transfer, then
read a message terminator at the end of the data.
Lines 940 to 980 These lines define an error handler that retrieves and displays the
number and message of an error that has occurred.
Copy_to_e507x, a subprogram for transferring files from the external controller to the
E5061A/E5062A that appears in lines 1040 to 1540, is described below.
Lines 1090 to 1110 Assigns a destination file for copying to the I/O pass.
Line 1120 This line stores a maximum number of transferred data (in bytes) per
one transfer, that is 24 KByte, into Max_bsize variable.
Lines 1140 to 1160 Clears the error queue.