Agilent Technologies 3458A User Manual page 211

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

SINT format: +32767 or -32768 (unscaled)
DINT format: +2.147483647E+9 or -2.147483648E+9 (unscaled)
ASCII, SREAL, DREAL: +/-1.OE+38
When reading memory is disabled, executing the SSAC or SSDC
command(sub-sampling) automatically sets the output format to SINT
regardless of the previously specified format. You must use the SINT output
format when sub-sampling and not using reading memory.
The output format applies only to readings transferred over the GPIB bus.
Responses to query commands are always output in ASCII format regardless of
the specified output format. Following the query response, the output format
returns to the specified type. The output format does not affect the memory
format specified by the MFORMAT command.
When using the SINT or DINT output formats, the multimeter applies a scale
factor to each reading. This scale factor is based on the present measurement
function, range, A/D setting, and enabled math operations. Therefore, ensure
that the multimeter's configuration is the same when retrieving the scale factor
(ISCALE? command) as it was when the readings were made.
You should not use the SINT or DINT output or memory format for frequency
or period measurements when a real-time or post-process math function is
enabled (except STAT or PFAIL) or when autorange is enabled.
Query Command. The OFORMAT? query command returns the present
output format mode. Refer to "Query Commands" near the front of this chapter
for more information.
Related Commands: END, ISCALE?, MFORMAT, QFORMAT
Examples
SINT Format
The following program outputs 10 readings in SINT format, retrieves the scale
factor, and multiplies the scale factor times each reading.
10 OPTION BASE 1
20 INTEGER Num_readings
30 INTEGER Int_rdgs (1:1O) BUFFER !CREATE INTEGER BUFFER ARRAY
40 REAL Rdgs(1:1O)
50 Num_readings=10
60 ASSIGN @Dvm TO 722
70 ASSIGN @Int_rdgs TO BUFFER Int_rdgs(*)!ASSIGN BUFFER I/O PATH NAME
80 OUTPUT @Dvm;"PRESET NORM;OFORMAT SINT;NPLC 0;NRDGS ";Num_readings
85 !TARM AUTO, TRIG SYN, SINT OUTPUT FORMAT, MIN. INTEGRATION TIME
90 TRANSFER @Dvm TO @Int_rdgs;WAIT!SYN EVENT, TRANSFER READINGS INTO
91 !INTEGER ARRAY; SINCE THE COMPUTER'S INTEGER FORMAT IS THE SAME AS
95 !SINT, NO DATA CONVERSION IS NECESSARY HERE (INTEGER ARRAY REQUIRED)
100 OUTPUT @Dvm;"ISCALE?"
110 ENTER @Dvm;S
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DECLARE VARIABLE
!CREATE REAL ARRAY
!NUMBER OF READINGS = 10
!ASSIGN MULTIMETER ADDRESS
!QUERY SCALE FACTOR FOR SINT FORMAT
!ENTER SCALE FACTOR
Chapter 6 Command Reference
OFORMAT
211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents