![background image](http://html2.mh-extra.com/html/racal-instruments/3152/3152_user-manual_3133316047.webp)
Using The Instrument 3-22
First, define the work area. Define the segment number and its
associated length. Segment length must be an even number. For
example, to use segment number 8 and give it a length of 1000
points, use this command:
TRACe:DEFine 8,1000
Next, make segment 8 the active segment. The active segment
must be selected because as waveforms are loaded, the Model
3152 must be notified as to where to place the data it receives.
Select the active segment using the following command:
TRACe:SELect 8
The next step is to transfer data to the active segment. Data is
loaded into the Model 3152 using high-speed binary transfer. A
special command is defined by IEEE-STD-488.2 for this purpose.
High speed binary transfer allows any 8-bit bytes (including
extended ASCII code) to be transmitted in a message. This
command is particularly useful for sending large quantities of data.
The Model 3152 uses this command to receive waveforms from the
controller:
TRACe #42000<binary_block>
This command causes the transfer of 2000 bytes of data (1000)
points into the active memory segment. The ASCII "#" ($23) is the
start of the binary data block. "4" designates the number of digits
that follow. "2000" is the even number of bytes to follow. The
generator represents binary data as 12-bit integers which are sent
as two bytes. Therefore, the total number of bytes is always twice
the number of data points in the waveform. For example, 2000
bytes are required to download a waveform with 1000 points. Bytes
are sent in byte-high, byte-low order. The FORM:SWAP command
can be used to reverse this order.
When sending binary blocks to the Model 3152, the final byte must
be transmitted with the EOI bit set. Carriage Return and Line Feed
will not be detected as terminators. This permits the values OD
HEX
and OA
HEX
to be used as data points.
The IEEE-STD-488.2 definition of Definite Length Arbitrary Block
Data Format is demonstrated in Figure 3-1.
Содержание 3152
Страница 16: ...Getting Started 1 7 Figure 1 1 Segment 1 Sin x x Waveform Figure 1 2 Segment 2 Sine Waveform...
Страница 25: ...Configuring The Instrument 2 6 This page was intentionally left blank...
Страница 63: ...Using The Instrument 3 38 This page was intentionally left blank...
Страница 80: ...SCPI Command Reference 4 17 Figure 4 1 SCPI Status Registers...
Страница 121: ...Specifications A 12 This page was intentionally left blank...