Agilent Technologies 8590 TV Converter Box User Manual


 
MDS
Measurement Data Size
Specifies measurement data size as byte or word.
Syntax
c
Related Commands: MKA, TDF, TRA.
Preset State: W.
Example
These commands transfer trace A in binary, 2 bytes per word.
INTEGER TRACE-A
(1:401)
Declares variable, Trace-A.
OUTPUT
718;"SNGLS;TS;"
Activates single-sweep, updates trace A.
OUTPUT
718;"TDF
B;MDS
W;TRA?;"
Reads trace A in “word”
form&.
ENTER 7 18 USING
'I#,
40 1
(
W)
II
;
TRACE-A
(*
>
Fbmu~ts
trace A output using data size of one
word.
PRINT TRACE-A(*)
Prints trace A.
Description
The MDS command formats binary data in one of the following formats:
B
selects a data size of one
8-bit
byte. When transferring trace data, MDS B transfers trace
data the faster than MDS W because only 401 bytes are transferred. Because MDS B
combines two bytes into one byte, some resolution is lost.
W
selects a data size of one word, which is two
8-bit
bytes. When transferring trace data,
MDS W transfers 802 bytes of trace data with no loss of resolution.
How data is represented with MDS W: When data is sent with MDS W, the trace data is
converted into two bytes as follows:
1. The trace element’s amplitude (in measurement units) is divided by 256. The binary
representation of the result is placed in the most significant byte (MSB).
2. The binary representation of the remainder is placed in the least significant byte (LSB).
For example, a trace element that is at the reference level has the value of 8000 (in
measurement units). The result of 8000 divided by 256 is 30, with a remainder of 120. For this
data, the contents of the MSB would contain the binary representation for 30.
Contents of the MSB
0
OlOllll
1
110
5-302
Programming Commands