User manual

Table Of Contents
Publication No. 980935 Rev. M 3152B User Manual
Astronics Test Systems Programming Reference 5-53
FORMat:BORDer {NORMal|SWAPped}(?)
HS Syntax:
0100A<0|1>?
Description
Binary data is sent to the instrument in byte
-high, byte-
low order. For convenience, programmers can write
their code in reverse order but have to let the instrument know that the data is reversed. In case the code
stores the data in byte-low, byte-high order, use the FORM:BORD SWAP command to reverse the byte order.
Name
Type
Default
Description
NORMal
Discret
e
NORM
Binary data
is sent in byte-high, byte-low order
S
WAPped
Discrete
Binary data
is sent in byte-low, byte-high order
Response
The 3152B returns NORM or SWAP depending on the current binary data format setting.
TRACe#<header><binary_block>
HS Syntax:
10001#<string>
Description
D
ownloads waveform data to 3152B waveform memory. Waveform data is loaded into the 3152B using
a
bin
ary transfer. A special command is defined by IEEE-STD-488.2 for this purpose. B
inary transfer allows any
8
-bit bytes (including extended ASCII codes
) to be transmitted in a message. As an example, the next
command will download an arbitrary block of data
of 1024 points:
TRACe#42048<binary_block>
This command causes the transfer of 2048 bytes of data (1024 waveform points) into the active memory
segment. The <header> is interpreted this way:
The ASCII "#" ($23) designates the start of the binary data block.
"4" designates the number of digits that follow.
"2048" is the even number of bytes to follow.
The generator accepts binary data as 16
-bit integers, which are sent in two-
byte words. Therefore, the total
number of bytes is always twice the number of data points in the waveform. For example, 20000 bytes are
required to download a waveform with 10000 points. The IEEE
-STD-
488.2 definition of Definite Length
Arbitrary Block Data format is demonstrated in Figure 5
-1.
"#"
non-zero
ASCII digit
ASCII digit
low byte
(binary)
(binary)
high byte
Start of
Data Block
Number of Digits
to Follow
Byte Count:
2 x Number of Points
2 Bytes per
Data Point
Figure 5-1, Definite Length Arbitrary Block Data Format