IEEE-488 Reference
3-92
The :FUNCtion command is used to select the measurement function of the instrument. Note
that parameter names are enclosed in single quotes (‘). However, double quotes (“) can instead
be used. For example:
:func ‘volt:dc’ = :func “volt:dc”
Each measurement function “remembers” its own unique setup configuration, such as range,
speed, resolution, filter and rel. This eliminates the need to re-program setup conditions every
time you switch from one function to another.
PRINT #1, "output 16; :func 'volt:ac'; func?"
' Select ACV function
PRINT #1, "enter 16"
' Get response from 2002
:DATA commands
[:LATest]?
[:SENSe[1]]:DATA[:LATest]?
Return latest reading.
This query command is used to read the latest instrument reading. This command returns the
“raw” reading or a reading that is the result of the Reference (REL from the front panel) opera-
tion. For example, if a reference value of 1.0 is established, the reading returned by this com-
mand is the “raw” reading minus 1.0. Calculated (MATH) readings cannot be read with this
command (see the CALCulate subsystem to read math calculations).
The reading is returned in exponent form. For example, a 10V DC reading will be displayed on
the CRT as follows:
+1.01
Notice that the measurement function is not included in the response message. Thus, you may
want to perform a function query (see previous command) after a reading query.
PRINT #1, "output 16; :data?; func?"
' Query a reading and query function
PRINT #1, "enter 16"
' Get response from 2002
:FRESh?
[:SENSe[1]]:DATA:FRESh?
Return new reading.
This query command is used to return a new (fresh) reading. This command will not request the
same reading twice. If a new reading is triggered, this command will wait until the reading is
available, rather than request the old reading.
PRINT #1, "output 16; :data:fresh?"
' Query new reading
PRINT #1, "enter 16"
' Get response from 2002
Description
Program fragment
3.18.4
Description
Program fragment
Description
Program fragment
Summary of Contents for 2002
Page 123: ...Front Panel Operation 2 106...
Page 145: ...IEEE 488 Reference 3 22...
Page 167: ...IEEE 488 Reference 3 44...
Page 284: ...A Specifications A 1...
Page 362: ......
Page 364: ...This page left blank intentionally...
Page 365: ......