Specifications
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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com