Keysight E4428C ESG RF Programming Manual page 333

Signal generators
Table of Contents

Advertisement

Creating and Downloading User–Data Files
User File Data (Bit/Binary) Downloads (E4438C and E8267D)
on the bit data SCPI command format, see "Downloading User Files" on page 332 and "Command for Bit
File Downloads" on page 335.)
SCPI Command :MEM:DATA:BIT <"file_name">,<bit_interest>,<datablock>
:MEM:DATA:BIT "3byte",23, # 1 3 Z&x
ASCII representation of the data (3 bytes)
Start block data
number of bytes
number of decimal digits
Bits of interest
Downloaded Data:
0 1 0 1 1 0 1 0 0 0 1 0 0 1 1 0 0 1 1 1 1 0 0 0
Ignored bit (LSB)
MSB
Byte 3
Byte 1
Byte 2
Hex Value:
26
5A
78
ASCII Representation:
&
Z
x
The following figure shows the same downloaded data from the above example as viewed in the
signal generator's bit file editor (see the User's Guide for more information) and with using an
external hex editor program.
SCPI command to download the data
:MEM:DATA:BIT "3byte",23,#13Z&x
As Seen in the Signal Generator's Bit File Editor
Designated number of bits
Hex values
Bit data
As Seen in a Hex Editor
Designated number of bits (hex value = 23 decimal)
3 bytes of data
10 byte file header
(added by signal generator)
In the bit editor, notice that the ignored bit of the bit–data is not displayed, however the hex value
still shows all three bytes. This is because bits 1 through 7 are part of the first byte, which is shown
as ASCII character x in the SCPI command line. The view from the hex editor program confirms that
the downloaded three bytes of data remains unchanged. To view a downloaded bit file with an
external hex editor program, FTP the file to your PC/UNIX workstation. For information on how to
FTP a file, see "FTP Procedures" on page 339.
Keysight Signal Generators Programming Guide
325

Advertisement

Table of Contents
loading

Table of Contents