Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 335
Creating and Downloading User–Data Files
User File Data (Bit/Binary) Downloads
<"file_name">
the data file path and name
#
indicates the start of the block data
A
the number of decimal digits present in B
B
a decimal number specifying the number of data bytes
to follow in C
C
the file data in bytes
bin:
the location of the file within the signal generator file
system
my_file
the data file name as it will appear in the signal
generator’s memory catalog
#
indicates the start of the block data
3
B has three decimal digits
240
240 bytes (1,920 bits) of data to follow in C
12%S!4&07#8g*Y9@7...
the ASCII representation of some of the
block data (binary data) downloaded to the signal
generator, however not all ASCII values are printable
In actual use, the block data is not part of the command line as shown above,
but instead resides in a binary file on the PC/UNIX. When the program
executes the SCPI command, the command line notifies the signal generator
that it is going to receive block data of the stated size and to place the file in
the signal generator file directory with the indicated name. Immediately
following the command execution, the program downloads the binary file to
the signal generator. This is shown in the following section,
Some commands are file location specific and do not require the file location as
part of the file name. An example of this is the bit file SCPI command shown in
“Commands for Bit File Downloads” on page 338
Command Format in a Program Routine
This section demonstrates the use of the download SCPI command within the
confines of a C++ program routine. The following code sends the SCPI
command and downloads user file data to the signal generator’s Binary
memory catalog (directory).
file_name
A
C
:MEM:DATA “bin:my_file”,#324012%S!4&07#8g*Y9@7...
B
file location
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...