beautypg.com

Format gn – Measurement Computing Analyzer488 User Manual

Page 225

background image

Section 6

Instrument Simulator

6.15

Format Gn

The Format command, Gn, determines the form of the waveform data returned to

the IEEE controller. Four data formats are available. Depending on the Format
selection, the Reading Delimiter (Hn), User Reading Delimiter (In), End of Reading
EOI (Jn), End of Waveform EOI (Kn), Waveform Terminator (Yn), and User
Waveform Terminator (Zn) commands may be used to change the terminator and EOI
selections. A reading is defined as one data point in a waveform. Each waveform
consists of 256 readings.

If ASCII format is selected (Format G0 or G1), data returned from the

Analyzer488 is formatted by using the Hn, In, Jn, Kn, Yn and Zn commands.

If binary format is selected (Format G2 or G3), the Hn, In, Jn, Yn, and Zn

commands will have no effect on the data sent by the Analyzer488. The Kn command
is used with binary data to change the EOI on the End of Waveform selection.

If ASCII format (Format G0 or G1) and waveform 21 (the user waveform) are

selected, the Hn, In, Jn, Yn, and Zn commands will have no effect on the data sent by
the Analyzer488. The Kn command may be used to change the EOI on the End of
Waveform selection.

SYNTAX:

G0

ASCII Text with leading '+' sign (default)

G1

ASCII Text without leading '+' sign

G2

2's Complement integer binary - high byte first

G3

2's Complement integer binary - low byte first

G?

Return current Format selection

EXAMPLES:

PRINT#1,"CLEAR10"

Reset the Analyzer488

PRINT#1,"OUTPUT10;G0W10J0H0X"

select ASCII format with + sign,
select waveform 10, select EOI
asserted at the end of each
reading, select CR LF reading
delimiters

PRINT#1,"ENTER10"

request data from the
Analyzer488