Download M-Class Waveform Generator

Transcript
Name
Description
Trace Waveform
Command
Trace Waveform Command loads data from the block transfer buffer to
the waveform library. Trace Waveform Check Query must be called prior
to loading a waveform.
When uploading a waveform to the instrument, one or more block
transfers (ex: zbind_blkout) should be used to fill the upload block transfer
buffer with as many points as possible, and then the Trace Waveform
Command should be used to load the data to the library. For waveforms
larger than the upload block transfer buffer size, refill the buffer and call
the Trace Waveform Command with an offset. Trace Ready Query should
be called between buffer fills to ensure that the instrument has had time to
process the last buffer. The upload block transfer buffer can contain up to
64 Kibytes (65,536 bytes) of data in samples that are either 2 bytes (s16)
or 4 bytes (f32) each.
Trace Waveform Query
Trace Waveform Query downloads waveform data from waveform library
memory to the block transfer buffer.
When downloading a waveform from the instrument, the Trace Waveform
Query should be used to load the data from the library to the download
block transfer buffer, and then one or more block transfers (ex:
zbind_blkin) should be used to download the data from the buffer. If there
is too much data to fit in the buffer, use successive calls of the Trace
Waveform Query with an offset value to load additional waveform sections
to the block transfer buffer. The download block transfer buffer can
contain up to 8 Mibytes (8,388,608 bytes) of data in samples that are
either 2 bytes (s16) or 4 bytes (f32) each.
Command Syntax
TRACe:WAVeform<n> <total_size>,<offset>,<addr>,<buffer_points>
Query Syntax
TRACe:WAVeform<n>? <offset> Æ <total_size>,<addr>,<buffer_points>
Parameters
0004-000074
Name
Type
Range
<n>
Integer
Library handle: 1 to 4096
<total_size>
Integer
Total number
waveform
<offset>
Integer
Offset in Samples; the number of
samples already uploaded/downloaded
<addr>
Address Block transfer buffer waveform memory
start address
<buffer_points
>
Integer
of
samples
in
the
The number of samples that are in the
block transfer buffer
153