09.12.2012 Views

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TDF Trace Data Format<br />

Example of how data is returned: For the same trace A data that is used in the TDF P<br />

description, querying trace A with the TDF A format <strong>and</strong> MDS set to binary (MDS B) would<br />

return the ASCII character codes for the following:<br />

#A(401 div 256)(401 mod 256)(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div<br />

32 is repeated 398 times)<br />

Notice that #A is followed by the two bytes that contain the number of trace elements.<br />

Because MDS is set to binary, the number of trace elements is 401.<br />

If MDS is set to W, querying trace A with the TDF A format would return the ASCII character<br />

codes for the following:<br />

#A(802 div 256)(802 mod 256)(8000 div 256)(8000 mod 256)(7000 div 32)(7000 mod 256)(6000<br />

div 256)(6000 mod 256)(the number for 6000 div 256, then the number for 6000 mod 256 is<br />

repeated 398 times)<br />

Notice that #A is followed by the two bytes that contain the number of trace elements.<br />

Because MDS is set to W (word), the number of trace elements is 802.<br />

TDFI<br />

Description: TDF I is the I-block data format. With the I-block data format, trace data must<br />

be preceded by “#,” <strong>and</strong> “I.” The setting of the MDS comm<strong>and</strong> determines whether the trace<br />

data is transferred as one or two 8-bit bytes. Unlike using the A-block format, you do not<br />

provide the number of data bytes when sending trace data back to the spectrum analyzer.<br />

Restrictions: This format is not recommended for use with an RS-232 interface.<br />

How data is returned: The following table describes what is transferred when the trace data<br />

format is set to I, but the MDS setting is changed.<br />

Trace Data Transfers with TDF I<br />

BIDS Example Description<br />

Seming<br />

BiIUlI-y TDF 1;MDS B;TA; Transfers “#I,” then the 461 bytes of trace data. Using MDS B<br />

“reduces” the trace value into 1 byte by dividing (DIV) the trace value<br />

by 32. The trace data transfer is ended with an EOI.<br />

Word TDF 1;MDS W;TA; Transfers “#A,” then 802 bytes of trace data. MDS W uses two bytes<br />

per trace element to transfer trace data. The ilrst byte contains the<br />

trace value divided by (DIV) 256, the second byte contains the<br />

remainder (MOD) of that division. The trace data transfer is ended<br />

with an EOI.<br />

Example of how data is returned: For the same trace A data that is used in the TDF P<br />

description, querying trace A with the TDF I format <strong>and</strong> MDS set to binary (MDS B) would<br />

return the ASCII character codes for the following:<br />

#I(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times)<br />

If MDS is set to W, querying trace A with the TDF I format would return the ASCII character<br />

codes for the following:<br />

#I(8000 div 256)(8000 mod 256)(7000 div 32)(7000 mod 256)(6000 div 256)(6000 mod 256)(the<br />

number for 6000 div 256, then the number for 6000 mod 256 is repeated 398 times)<br />

5-546 Programming Comm<strong>and</strong>s

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!