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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A-Block Format<br />

The A-block format is similar to binary format in that each data point is sent as two 8-bit bytes<br />

(this, too, is in the internal representation of measurement data). A-block format also transfers<br />

a four-byte header before the 401 points of trace data. These bytes are the ASCII character<br />

“f’, “A”, <strong>and</strong> two-byte number representing the length of the trace data, followed by the data<br />

bytes.<br />

Example of Using the A-Block Format<br />

This example sends trace data from the spectrum analyzer to the computer <strong>and</strong> back to the<br />

spectrum analyzer in A-block format.<br />

10 INTEGER Tra_binary(l:401)<br />

20 DIM Header$[4]<br />

30 OUTPUT 718;"IP;CF 300MZ;SP 20MZ;SNGLS;TS;"<br />

40 OUTPUT 718;"MDS W;TDF A;TRA?;"<br />

Declare an array for trace<br />

data.<br />

Declare a string for the #,<br />

A, MSB length, <strong>and</strong> LSB<br />

length heao!.ex<br />

llxke a mxxzsurem.ent sweep.<br />

Send trace A to the computer<br />

in A-block format.<br />

50 ENTER 718 USING "#,4A,401(W)";Header$,Tra_binary(*) The computer receives the<br />

header <strong>and</strong> the trace data.<br />

60 PRINT "PRESS CONTINUE TO RETURN DATA TO THE ANALYZER"<br />

70 PAUSE<br />

80 OUTPUT 718;"IP;TS;VIEW TRA;" View trace A.<br />

90 OUTPUT 718e"TDF A-"<br />

100 OUTPUT 71; USING' The spectrum anulgzer re-<br />

"#,K,W,40l(W)"; "TRA#A",802,Tra_binary(*),";" wives the trace data from<br />

the computex<br />

110 END<br />

The transferred trace data consists of #A, a two-byte number representing the most significant<br />

byte (MSB) length <strong>and</strong> the least significant byte (LSB) length, <strong>and</strong> the data bytes. Depending on<br />

the terminal you are using, the data bytes may appear as symbols instead of numbers. Consult<br />

your computer documentation to determine the numeric value of the data bytes.<br />

For more detailed information about the A-block format <strong>and</strong> the MDS comm<strong>and</strong>, see the<br />

descriptions for TDF <strong>and</strong> MDS in Chapter 5.<br />

3-24 Programming Topics

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

Saved successfully!

Ooh no, something went wrong!