UPLoad
UPLoad
query
The
UPLoad
query uploads a file. The c name
>
parameter specifies the
file to be uploaded from the disk. The contents of the file are sent out of
the instrument in block data form.
Query Syntax:
:MMEMory:UPLoad? <name
>
where:
<name
>
:: = string of up to 10 alphanumeric characters representing a valid file name
Returned Format:
[:MMEMory:UPLoad]
c
block-data
>
c
NL>
Example:
10 DIM Block$[32000] !allocate enough memory for block data
20 DIM Specifier$[E]
30 OUTPUT XXX;" :SYSTEM HEAD OFF"
40 OUTPUT
XXX;":MMEMORY:UPLOAD?
'FILEl"
!send
upload query
50 ENTER XXX USING "#.2A";Specifier$ !read
in
#8
60 ENTER XXX USING "#,8D";Length !read in block length
70 ENTER XXX USING "-K":Block$ !read in file
80 END
HP 1650B/HP 1651B
MMEMory Subsystem
Programming Reference
7-15