Move Data To A File (Remote Command Only) - Agilent Technologies PSA Series User And Programming Manual

Spectrum analyzers
Hide thumbs Also See for PSA Series:
Table of Contents

Advertisement

Instrument Functions: A - L
File
Remote Command:
:TRACe[:DATA]? TRACE1|TRACE2|TRACE3|LLINE1|LLINE2
Remote Command Notes: Commands :MMEM:STOR:TRAC and :MMEM:LOAD:TRAC are used
to transfer trace data to, or from, the internal hard drive or floppy drive of
the instrument.
The query returns the current values of the designated trace. The data is
terminated with <NL><END> (for GPIB that is newline, or linefeed,
followed by EOI set true; for RS-232 this is newline only.)
Example:
:TRAC:DATA? TRACE1

2.6.10 Move Data to a File (Remote Command Only)

This command loads a block of data in the format <definite_length_block> into the
instrument memory location <'file_name'>. The query form of the command returns the
contents of the file identified by <'file_name'>, in the format of a definite length block of
data. The query can be used for copying files out of the analyzer over the remote bus.
A definite length block of data starts with an ASCII header that begins with # and
indicates how many additional data points are following in the block. Suppose the header
is #512320.
The first digit in the header (5) tells you how many additional digits/bytes there are in
the header.
The 12320 means 12,320 data bytes follow the header.
Divide this number of bytes by your selected data format bytes/point, either 8 (for real
64), or 4 (for real 32). In this example, if you are using real 64 then there are 1540
points in the block.
Remote Command:
:MMEMory:DATA <'file_name'>,<definite_length_block>
:MMEMory:DATA? <'file_name'>
Example:
MMEM:DATA 'C:\DEST.TXT','#14abcd' Loads the data "abcd" into
C:\DEST.TXT.
MMEM:DATA? 'C:\SCREN001.GIF' Initiates a transfer of data from file
C:\SCREN001.GIF.
140
Chapter 2

Advertisement

Table of Contents
loading

This manual is also suitable for:

E4440aE4443aE4445aE4448aE4446a

Table of Contents