4
Remote Programming Reference
Arbitrary Waveforms Control Commands
4-29
Keyword
Parameter Range
Default
:TRACe
[:DATA]
<data_array>
:DEFine
<1 to 10k>,<16 to 2e6> (<segment_#>,<size>)
1,16
:DELete
[:NAME]
1 to 10k
:ALL
:SELect
1 to 10k
1
:SEGMent
[:DATA]
<data_array>
TRACe#<header><binary_block>
Description
This command will download waveform data to the 5251 memory. Waveform data is loaded to the 5251
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. As an example, the next
command will download to the generator 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 4-1.
"#"
non-zero
ASCII digit
ASCII digit
low byte
(binary)
(binary)
high byte
Start of
Data Block
Number of
to Follow
Byte Count:
2 x Number of
2 Byts Per
Data Point
Содержание 5251
Страница 17: ...List of Figures continued xiv...
Страница 35: ...TE5251 User Manual 1 18 This page was intentionally left blank...
Страница 37: ...TE5251 User Manual 2 2...
Страница 134: ...TE5251 User Manual 3 82 Figure 3 62 Log File Example...
Страница 222: ...TE5251 User Manual 4 88 This page was left intentionally blank...
Страница 258: ...TE5251 User Manual 5 36 This page was intentionally left blank...
Страница 288: ...TE5251 User Manual 6 30 This page was intentionally left blank...
Страница 289: ...1 Appendices Appendix Title Page A Specifications A 1...
Страница 290: ...TE5251 User Manual 2...