3151 And 3151A User Manual
Using The Instrument 3-26
CAUTION
This command will destroy waveforms that were
previously loaded into memory. After using this
command, waveform segments will line-up from address
0 upwards.
Loading Arbitrary
Waveforms
There are two ways to load waveforms into the Model 3151/3151A;
using a graphical user interface, i.e., WaveCAD, or low-level
programming. When using WaveCAD, disregard most of this chapter
as WaveCAD does the work for you. When writing your own code,
use the following commands to load data into a specific memory
segment.
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
3151/3151A 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 3151/3151A 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
3151/3151A 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
Содержание 3151
Страница 4: ...This page was left intentionally blank...
Страница 24: ...3151 And 3151A User Manual Getting Started 1 12 This page was left intentionally blank...
Страница 29: ...3151 And 3151A User Manual Configuring The Instrument 2 5 Figure 2 1 Set The Logical Address...
Страница 74: ...3151 And 3151A User Manual Using The Instrument 3 44 This page was left intentionally blank...
Страница 98: ...3151 And 3151A User Manual SCPI Command Reference 4 24 This page was left intentionally blank...
Страница 126: ...3151 And 3151A User Manual Optional Harness Assemblies 6 2 This page was left intentionally blank...
Страница 127: ...3151 And 3151A User Manual Optional Harness Assemblies 6 3...
Страница 131: ...3151 And 3151A User Manual Optional Harness Assemblies 6 7...