Model 2701 User’s Manual
Basic DMM Operation
3-57
Basic measurement programming examples
Example #1 — continuous triggering
The following command sequence places the Model 2701 in a continuous trigger mode to
measure ACV. Whenever DATA? is sent the last measured reading will be sent to the
computer.
NOTE
The following example can be run from the KE2700 Instrument Driver using the
example named “CTMMV” in Table G-1 of Appendix G.
SYST:PRES
' Continuous measurement mode (INIT:CONT ON).
FUNC 'VOLT:AC'
' Select ACV function.
DATA?
' Request last measured reading.
Example #2 — one-shot triggering
The following command sequence places the Model 2701 in a one-shot trigger mode to
measure offset-compensated ohms. Whenever READ? is sent, a measurement will be
triggered and the measured reading will be sent to the computer.
NOTE
The following example can be run from the KE2700 Instrument Driver using the
example named “Ohmm” in Table G-1 of Appendix G.
*RST
' One-shot measurement mode (INIT:CONT OFF).
FUNC 'FRES'
' Select
Ω
4 function.
FRES:RANG 1e3
' Select 1k
Ω
range.
FRES:OCOM ON
' Enable offset-compensated ohms.
READ?
' Trigger and return one reading.
Example #3 — temperature measurement using Model 7700
The following command sequence places the Model 2701 in a one-shot trigger mode to
perform a thermocouple temperature measurement at channel 101 (Model 7700 switching
module installed in slot 1). With channel 101 closed, the INIT command triggers one
measurement and the DATA? command sends the measured reading to the computer.
*RST
' One-shot measurement mode (INIT:CONT OFF).
FUNC 'TEMP'
' Select TEMP function.
UNIT:TEMP F
' Select °F TEMP units.
TEMP:TRAN TC
' Select thermocouple transducer.
TEMP:TC:TYPE J
' Select type J thermocouple.
TEMP:RJUN:RSEL SIM
' Select simulated reference junction.
TEMP:RJUN:SIM 32
' Set reference temperature to 32°F (ice
point).
ROUT:CLOS (@101)
' Close channel 101.
INIT
' Trigger one measurement.
DATA?
' Return measured reading.
2701-900-01.book Page 57 Wednesday, August 3, 2011 9:43 AM
Summary of Contents for 2701
Page 344: ...12 CommonCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 366: ...15 SCPIReferenceTables 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 393: ...A Specifications 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 399: ...B Model7700ConnectionGuide 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 410: ...C StatusandErrorMessages 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 417: ...D SignalProcessing SequenceandDataFlow 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 430: ...E MeasurementConsiderations 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 450: ...G KE2700InstrumentDriver Examples 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...