Chapter 4 177
Downloading and Using Files
Downloading User File Data
Querying the Waveform Data
Use the following SCPI command to query user file data from a binary directory:
:MEMory:DATA:BIT? "<file_name>"
The output format is the same as the input format.
Binary Directory Downloads
The binary directory (/user/binary/) requires that data be formatted in 8-bit bytes. Files stored or
downloaded to a binary directory are converted to bit files prior to editing in the bit file editor, after which
they are stored in a bit directory as bit files.
A bit directory is preferred for user file downloads.
SCPI Commands
:MMEM:DATA "<file_name>", <datablock>
Send this command to download the user file data into the signal generator’s binary directory. The variable
<file_name> denotes the name of the downloaded user file stored in the signal generator.
Sample Command Line
:MMEM:DATA "file_name", #ABC
file_name the name of the user file stored in the signal generator’s memory
#A the number of decimal digits to follow in B
B a decimal number specifying the number of data bytes in C
C the binary user file data
Example
:MMEM:DATA "file_name", #1912S407897
file_name provides the user file name as it will appear in the signal generator’s binary memory
catalog
#1 defines the number of decimal digits to follow in “B”
9 denotes how many bytes of data are to follow
12S407897 the ASCII representation of the data that is downloaded to the signal generator. This
variable is represented by C in the sample command line