User manual

Table Of Contents
3152B User Manual Publication No. 980935 Rev. M
5-66 Programming Reference Astronics Test Systems
Table 5-8, Sequence Control Commands
Keyword
Parameter Form
Default
3152A
HS
[:SOURce]
:SEQuence
[:DATA]
<data_array>
13401#
:ADVance
AUTOmatic | STEP | MIXed
AUTO
1300A
:SELect
1 to 10
1
:DEFine
<step>,<seg_#>,<repeat>,<adv_mode_x>,<sync_bit_x>
13103
:DELete
[:NAME]
1 to 4096
13201
:ALL
13210
:SYNC
[:TYPe]
LCOMplete | BIT
LCOM
0106A
SEQuence#<header><binary_block>
HS Syntax:
13401#<string>
Description
This command
builds a complete sequence table in one binary download. With this method
, there is no need
to define a
nd download individual sequence steps. Using this command, sequence table data is loaded in
to
the 3152B using binary
blocktransfer in a way similar to that of downloading waveform data using
the trace
command.
Binary block transfer allows any 8-
bit bytes (including extended ASCII code) to be transmitted in a
message. This command is particularly useful for long sequences that use a large number of segment and
sequence steps. As an example, the next command will generate
a three-step sequence wit
h 16 bytes of data
that contain
segment number, repeats (loops), and mixed mode flags.
SEQuence#216<binary_block>
This command causes the transfer of 16 bytes of data (2-step sequence) to the sequence table buffer. The
<header> is interpreted this way:
The ASCII "#" ($23) designates the start of the binary data block.
"2" designates the number of digits that follow.
"16" is the number of bytes to follow. This number must divide by 8.
The generator accepts binary data as 64-bit integers, which are sent in two-byte words. Therefore, the total
number of bytes is always eight times the number of sequence steps. For example, 16 bytes are required to
download 2 sequence steps to the sequence table. The IEEE-STD-
488.2 definition of Definite Length
Arbitrary Block Data format is demonstrated in Figure 5-1. The transfer of definite length arbitrary block data
must terminate with the EOI bit set. This way, carriage-return (CR 0dH) and line feed (LF 0aH)
characters can be used as sequence data and will not cause unexpected termination of the arbitrary block
data. Figure 5-5 shows how to prepare the 64-bit word for the sequence step, repeat, mixed mode and sync
bit.
Figure 5-6 shows how to organize the 64-bit word for the sequence step, repeat, and mixed mode flag.
There are a number of points you should be aware of before you start preparing the data:
1. The minimum number of sequencer steps is 1 and the maximum number is 4096.