Downloading user files – Agilent Technologies N5183A MXG User Manual

Page 306

Advertising
background image

296

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

Creating and Downloading User-Data Files
User File Data (Bit/Binary) Downloads (E4438C and E8267D)

8.

Round the memory block value up to the next highest integer value.

For this example, the AUTOGEN_PRAM_1 file will use 20 blocks of memory for a total of 20480
bytes.

9.

Determine the number of memory blocks that the original files occupy in volatile memory.

The files do not share memory blocks, so you must determine how many memory blocks each file
occupies.

NOTE

If the user file type is bit, remember to include the 10- byte file header in the file size.

10. Calculate the total volatile memory occupied by the AUTOGEN_PRAM_1 file and the user files:

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

“Command Format in a Program Routine” on page 297

Command Format

This example conceptually describes how to format a data download command (#ABC represents the
block data):

:MEM:DATA <"file_name">,#ABC

<

"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

Normal TS

Custom TS

57 bytes = 1 block

37 bytes = 1 block

1 + 1 = 2 memory blocks

AUTOGEN_PRAM_1

User Files

20 blocks

2 blocks

1024 (20 + 2) = 22528 bytes

Advertising
This manual is related to the following products: