334 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading User–Data Files
User File Data (Bit/Binary) Downloads
Binary file
4 bytes x (70 bytes x 8 bits) = 2240 bytes
Bit file
4 bytes x 557 bits= 2228 bytes
2.
Calculate the number of memory blocks that the AUTOGEN_PRAM_1 file
will occupy:
Volatile memory allocates memory in blocks of 1024 bytes.
Binary file
2240 / 1024 = 2.188 blocks
Bit file
2228 / 1024 = 2.176 blocks
3.
Round the memory block value to the next highest integer value.
For this example, the AUTOGEN_PRAM_1 file will use three blocks of
memory for a total of 3072 bytes.
4.
Determine the number of memory blocks that the copy of the original file
occupies in volatile memory.
For this example the bit and binary file sizes are shown in the following list:
—
Binary file = 70 bytes < 1024 bytes = 1 memory block
—
Bit file = 80 bytes < 1024 bytes = 1 memory block
Remember that a bit file includes a 10–byte file header.
5.
Calculate the total volatile memory occupied by the user file data:
Downloading User Files
The signal generator expects bit and binary file type data to be downloaded as
block data (binary data in bytes). The IEEE standard 488.2–1992 section 7.7.6
defines block data.
This section contains two examples to explain how to format the SCPI
command for downloading user file data. The examples use the binary user file
SCPI command, however the concept is the same for the bit file SCPI
command:
—
“Command Format in a Program Routine” on page 335
Command Format
This example conceptually describes how to format a data download command
(
#ABC
represents the block data):
:MEM:DATA <"file_name">,#ABC
AUTOGEN_PRAM
_1
Original File
3 blocks
1 block
1024 (3 + 1) = 4096 bytes
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...