Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 151

Multimètre

Publicité

Output termination
Each reading output to the GPIB in ASCII format is normally followed by cr lf
(carriage return, line feed). The cr lf indicates the end of transmission to most
controllers. Readings output in any other format do not have the cr lf end of line
sequence. With any output format, you can enable the GPIB EOI (End Or Identify)
function to mark the end of transmission. Refer to the END command in
for more information.
Using the SINT or DINT output format
The ISCALE? command returns the scale factor (in ASCII format) for readings
output in the SINT or DINT format. (After the controller retrieves the scale factor,
the output format returns to the specified SINT or DINT format.) You can retrieve
the scale factor after the multimeter is configured but before readings are
triggered, or after all readings are completed and transferred to the controller. (If
a reading is in the output buffer when the ISCALE? command is executed, the
reading will be overwritten by the scale factor.)
SINT example
The following program outputs 10 readings in SINT format, retrieves the scale
factor and multiplies the scale factor times each reading. The readings are
transferred to the controller using the TRANSFER statement (this command is
specific to Hewlett-Packard 200/300 controllers using BASlC language). The
TRANSFER statement is the fastest way to transfer readings across the GPIB,
especially when used with the direct memory access (DMA) GPIB interface. You
should use the TRANSFER statement whenever measurement/transfer speed is
important.
10 OPTION BASE 1!COMPUTER ARRAY NUMBERING STARTS AT 1
20INTEGER Num_readings!DECLARE VARIABLE
30INTEGER Int_rdgs (1: 10) BUFFER!CREATE INTEGER BUFFER ARRAY
40REAL Rdgs(1:10)!CREATE REAL ARRAY
50Num_readings=10!NUMBER OF READINGS = 10
60ASSIGN @Dvm TO 722!ASSIGN MULTIMETER ADDRESS
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
90TRANSFER @Dvm TO @Int_rdgs;WAIT!SYN EVENT,TRANSFER READINGS INTO
91!INTEGER ARRAY; SINCE THE COMPUTER'S INTEGER FORMAT IS THE SAME AS
Keysight 3458A User's Guide
!TARM AUTO, TRIG SYN, SINT OUTPUT FORMAT, MIN. INTEGRATION TIME
Making Measurements
Chapter 6
4
151

Publicité

loading