
Keysight
34970A/34972A
CommandReference
Notice:ThisdocumentcontainsreferencestoAgilentTechnologies.
Agilent'sformerTestandMeasurementbusinesshasbecomeKeysight
Technologies.Formoreinformation,gotowww.keysight.com.
ThisHelpfilecontainsreferenceinformationtohelpyouprogramthe
Keysight34970A/34972Aoveraremoteinterfaceusingtheprogramming
language.
IntroductiontotheCommandLanguage
CommandsbySubsystem
CommandsA-Z
CommandQuickReference
ErrorMessages
FactoryResetState
InstrumentPresetState
Plug-InModuleReferenceInformation

RelatedInformation
Forfurtherinformation,clickonthelinkofinterest:
LibrariesandInstrumentDrivers
Keysight34970A/34972ADocumentation
Keysight34972AWebInterface
ProgrammingExamples
ContactKeysightTechnologies
Trademarks
©KeysightTechnologies,Inc.
2009-2014
Version2.00

CommandsbySubsystem
ABORt
FETCh?
INITiate
INPut:IMPedance:AUTO
READ?
R?
UNIT:TEMPerature
CALCulateSubsystem
CALibrationSubsystem
CONFigureSubsystem
DATASubsystem
DIAGnosticSubsystem
DISPlaySubsystem
FORMatSubsystemIntroduction
IEEE-488.2CommonCommands
INSTrumentSubsystemIntroduction
MEASureSubsystem
MEMorySubsystem
MMEMorySubsystem
OUTPutSubsystem
ROUTeSubsystem
SENSeSubsystem

ABORt
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Description
Thiscommandabortsameasurementinprogressfromascan.

Remarks
Ifascanisinprogresswhenthecommandisreceived,thescan
willnotbecompletedandyoucannotresumethescanfromwhere
itleftoff.Notethatifyouinitiateanewscan,allreadingsare
clearedfrommemory.
The*RSTcommandwillabortameasurement,clearthescanlist,
andsetallmeasurementparameterstotheirfactorysettings.The
InstrumentPreset(SYSTem:PRESetcommand)alsoabortsa
measurementbutitdoesnotclearthescanlist.

Example
Thefollowingcommandabortsthemeasurementinprogress.
ABOR

FETCh?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Description
Thiscommandtransfersreadingsstoredinnon-volatilememorytothe
instrument'soutputbuffer,whereyoucanreadthemintoyourcomputer.
Thereadingsstoredinmemoryarenoterasedwhenyoureadthemwith
FETCh?.Theformatofthereadingscanbechangedusing
FORMat:READingcommands.

Remarks
TheFETCh?commandwillwaituntilthemeasurementis
completetoterminate.
Readingscanbeacquiredduringascanusingthemultiplexerand
digitalmodules.
Youcanstoreatleast50,000readingsinmemoryandallreadings
areautomaticallytimestamped.Ifmemoryoverflows,thenew
readingswilloverwritethefirst(oldest)readingsstored;themost
recentreadingsarealwayspreserved.
Eachtimeyoustartanewscan,theinstrumentclearsallreadings
(includingalarmdata)storedinreadingmemoryfromtheprevious
measurement.Therefore,thecontentsofmemoryarealwaysfrom
themostrecentmeasurement.
Whenyouabortameasurement(seeABORtcommand),the
instrumentwillterminateanyreadinginprogress(readingsarenot
clearedfrommemory).Thereadingsremaininmemoryandcan
bereaduntilyouclearthemorinitiateanewscan.
Theoutputfromthiscommandisaffectedbythesettingsofthe
FORMat:READingcommands.Dependingontheformats
selected,eachreadingmayormaynotbestoredwith
measurementunits,timestamp,channelnumber,andalarm
statusinformation.
The*RSTcommandwillclearthescanlistandsetall
measurementparameterstotheirfactorysettings.TheInstrument
Preset(SYSTem:PRESetcommand)willnotclearthescanlist;
however,thiscommandwillclearreadingmemoryandallstored
statisticaldata.
Theinstrumentclearsallreadingsfrommemorywhenanewscan
isinitiated,whenanymeasurementparametersarechanged

(CONFigureandSENSecommands),andwhenthetriggering
configurationischanged(TRIGgercommands).
TheinstrumentclearsallreadingsfrommemoryafteraFactory
Reset(*RSTcommand)orafteranInstrumentPreset
(SYSTem:PRESetcommand).

ReturnFormat
Thecommandtransfersallreadingsfrommemory(withformattingasset
bytheFORMat:READingcommands)butdoesnoterasethem.Multiple
responsesareseparatedbycommas.

Example
ThefollowingprogramsegmentshowshowtousetheFETCh?
commandwiththeCONFigureandINITiatecommands.The
ROUTe:SCANcommandputsthetwochannelsintothescanlist(and
redefinesthescanlist).TheINITiatecommandplacestheinstrumentin
the"wait-for-trigger"state,scansthespecifiedchannelswhentherearpanelExtTrigInputlineispulsedlow,andthensendsthereadingsto
memory.TheFETCh?commandtransfersthereadingsfrommemoryto
theinstrument'soutputbuffer.
CONF:VOLT:DC10,0.003,(@103,108)
ROUT:SCAN(@103,108)
TRIG:SOUREXT
INIT
FETC?
TypicalResponse:+4.27150000E-03,+1.32130000E-03

INITiate
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Description
Thiscommandchangesthestateofthetriggeringsystemfromthe"idle"
statetothe"wait-for-trigger"state.Scanningwillbeginwhenthe
specifiedtriggerconditionsaresatisfiedfollowingthereceiptofthe
INITiatecommand.Readingsarestoredintheinstrument'sinternal
readingmemory.NotethattheINITiatecommandalsoclearsthe
previoussetofreadingsfrommemory.
Ifascanlistiscurrentlydefined(seeROUTe:SCANcommand),the
INITiatecommandperformsascanofthespecifiedchannels.
Ifascanlistisnotcurrentlydefined,theINITiatecommandfails.

Remarks
StoringreadingsinmemoryusingtheINITiatecommandis
generallyfasterthansendingreadingstomemoryusingthe
READ?command.TheINITiatecommandisalsoan"overlapped"
command.ThismeansthatafterexecutingtheINITiatecommand,
youcansendothercommandsthatdonotaffectthe
measurements.
Youcanstoreupto50,000readingsinmemoryandallreadings
areautomaticallytimestamped.Ifmemoryoverflows,thenew
readingswilloverwritethefirst(oldest)readingsstored;themost
recentreadingsarealwayspreserved.Inaddition,bit9issetin
theQuestionableDataRegister'sconditionregister(seeStatus
SystemIntroduction).
Forscanningmeasurementsusingthemultiplexermodules,an
errorisgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
TheinternalDMMisnotrequiredforoperationsonthedigital
modules.
Ifascanlistcontainingmultiplexerchannelsiscurrentlydefined
(seeROUTe:SCANcommand),theINITiatecommandperformsa
scanofthespecifiedchannels.Whenthescanisinitiated,the
instrumentwillopenallchannelsinbanksthatcontainoneormore
channelsinthescanlist.
Theinstrumentscansthelistofchannelsinascendingorderfrom
slot100throughslot300(channelsarere-orderedas
needed).Whenyouspecifyarangeofchannelsinthe<scan_list>,
thechannelsarealwayssortedinascendingorder.Therefore,
(@109:101)willalwaysbeinterpretedas101,102,103,etc.
Onceyouinitiateascan,anerrorwillbegeneratedifyouattempt
tochangeanymeasurementparameters(CONFigureandSENSe

commands)orthetriggeringconfiguration(TRIGgercommands).
Toabortascaninprogress,sendtheABORtcommand.
Toretrievethereadingsfrommemory,usetheFETCh?command.
Thereadingsarenoterasedfrommemorywhenyoureadthem.
Youcansendthecommandmultipletimestoretrievethesame
datainreadingmemory.

Example
ThefollowingprogramsegmentshowshowtousetheINITiatecommand
withtheCONFigureandFETCh?commands.TheROUTe:SCAN
commandputsthetwochannelsintothescanlist(andredefinesthe
scanlist).TheINITiatecommandplacestheinstrumentinthe"wait-fortrigger"state,scansthespecifiedchannelswhentherear-panelExtTrig
Inputlineispulsedlow,andthensendsthereadingstomemory.The
FETCh?commandtransfersthereadingsfrommemorytothe
instrument'soutputbuffer.
CONF:VOLT:DC10,0.003,(@103,108)
ROUT:SCAN(@103,108)
TRIG:SOUREXT
INIT
FETC?
TypicalResponse:+4.27150000E-03,+1.32130000E-03

INPut:IMPedance:AUTO
Syntax|Description|Parameters|Remarks|ReturnFormat|Examples

Syntax
INPut:IMPedance:AUTO<state>[,(@<ch_list>)]
INPut:IMPedance:AUTO?[(@<ch_list>)]

Description
Thiscommandenablesordisablestheautomaticinputresistancemode
forDCvoltagemeasurementsonthespecifiedchannels.

Parameters
Name Type RangeofValues Default
Value
<state> Boolean {OFF|0|ON|1} Thisisa
required
parameter.
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
WithAUTOOFF(default),theinputresistanceisfixedat10MΩ
forallranges.
WithAUTOON,theinputresistanceissetto>10GΩforthe100
mV,1V,and10Vranges.

ReturnFormat
Thequeryreturnstheinputresistancesettingas0(OFF)or1(ON)on
thespecifiedchannels.

Examples
Thefollowingcommandsetstheimpedanceto>10GΩfortwochannels.
INP:IMP:AUTOON(@105,109)
Thefollowingqueriesfortheimpedanceontwochannels.
INP:IMP:AUTO?(@105,109)
TypicalResponse:1,1

R?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Description
Thisqueryreadsanderasesreadingsfromvolatilememoryuptothe
specified<max_count>.Thereadingsareerasedfrommemorystarting
withtheoldestreadingfirst.Thepurposeofthiscommandistoallowyou
toperiodicallyremovereadingsfrommemorythatwouldnormallycause
readingmemorytooverflow(forexample,duringascanwithaninfinite
scancount).

Parameters
Name Type Rangeof
Values
Default
Value
<max_count> Numeric Maximum
numberof
readings
toberead
anderased
from
memory,
from1to
50,000.
Eraseall
stored
readings,up
to50,000

Remarks
ThiscommandisaspecialversionoftheDATA:REMove?
commandwithfasterexecutiontime.Youcanreadmemoryatany
timeusingtheR?command,evenduringascan.
Readingscanbeacquiredduringascanusingthemultiplexerand
digitalmodules.Forscanningmeasurementsusingthemultiplexer
modules,anerrorisgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
TheinternalDMMisnotrequiredforoperationsonthedigital
modules.
Youcanstoreupto50,000readingsinmemoryandallreadings
areautomaticallytimestamped.Ifmemoryoverflows,thenew
readingswilloverwritethefirst(oldest)readingsstored;themost
recentreadingsarealwayspreserved.Inaddition,bit9issetin
theQuestionableDataRegister'sconditionregister(seeStatus
SystemIntroduction).
Eachreadingisreturnedwithsomecombinationofmeasurement
units,timestamp,channelnumber,andalarmstatusinformation,
dependingonthesettingssetbytheFORMat:READing
commands.Thetimestampiseitherinrelativeformat(timein
secondssincethebeginningofthescan)orabsoluteformat(time
ofdaywithdate,basedontheinstrument'sclockassetbythe
SYSTem:DATEandSYSTem:TIMEcommands).Thechoiceof
absoluteandrelativetimeisdeterminedbythe
FORMat:READing:TIME:TYPEcommand.
Theinstrumentclearsallreadingsfrommemorywhenanewscan
isinitiated,whenanymeasurementparametersarechanged
(CONFigureandSENSecommands),andwhenthetriggering
configurationischanged(TRIGgercommands).
TheinstrumentclearsallreadingsfrommemoryafteraFactory

Reset(*RSTcommand)orafteranInstrumentPreset
(SYSTem:PRESetcommand).

ReturnFormat
ThequeryreturnsaseriesofreadingsinDefinite-LengthBlockformat.
Thesyntaxisapoundsign(#)followedbyanon-zerodigitrepresenting
thenumberofdigitsinthedecimalintegertofollow.Thisdigitisfollowed
byadecimalintegerindicatingthenumberof8-bitdatabytestofollow.
Thisisfollowedbyablockofdatacontainingthespecifiednumberof
bytes.
Forexample:

Example
Thisqueryreadsthetwooldestreadingsanderasesthemfrommemory.
R?2
TypicalResponse:#231+2.87536000E-04,+3.18131400E-03

READ?
Syntax|Description|Parameters|Remarks|ReturnFormat|Examples

Syntax
34970ASyntax:READ?
34972ASyntax:READ?[(@<scan_list>)]

Description
Thiscommandchangestheinstrument'striggeringsystemfromthe"idle"
statetothe"wait-for-trigger"state.Scanningwillbeginwhenthe
specifiedtriggerconditionsaresatisfiedfollowingthereceiptofthe
READ?command.Readingsarethensentimmediatelytoreading
memoryandtheinstrument'soutputbuffer.Onthe34970A,youmust
thenreceivethereadingsintoyourcomputerortheinstrumentwillstop
scanningwhentheoutputbufferbecomesfull.Readingsarenotstored
intheinstrument’sinternalmemorywhenusingREAD?.Onthe34972A,
thereadingsarealwayssenttomemoryandtheywillstillbeavailable
afterREAD?finishes.
UsedWith:
34901A20ChannelMultiplexer(2/4-wire)Module
34902A16ChannelMultiplexer(2/4-wire)Module
34907AMultifunctionModule(digitalinputandtotalizer)
34908A40ChannelSingle-EndedMultiplexerModule

Parameters
Name Type RangeofValues Default
Value
<scan_list> Scan
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Thisisa
required
parameter.

Remarks
SendingtheREAD?commandissimilartosendingtheINITiate
commandfollowedimmediatelybytheFETCh?command.
Youcanstoreupto50,000readingsinmemoryandallreadings
areautomaticallytimestamped.Ifmemoryoverflows,thenew
readingswilloverwritethefirst(oldest)readingsstored;themost
recentreadingsarealwayspreserved.Inaddition,bit9issetin
theQuestionableDataRegister'sconditionregister(seeStatus
SystemIntroduction).
Forscanningmeasurementsusingthemultiplexermodules,an
errorisgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
TheinternalDMMisnotrequiredforoperationsonthedigital
modules.
Theinstrumentscansthelistofchannelsinascendingorderfrom
slot100throughslot300(channelsarere-orderedas
needed).Whenyouspecifyarangeofchannelsinthe<scan_list>,
thechannelsarealwayssortedinascendingorder.Therefore,
(@109:101)willalwaysbeinterpretedas101,102,103,etc.
Onceyouinitiateascan,anerrorwillbegeneratedifyouattempt
tochangeanymeasurementparameters(CONFigureandSENSe
commands)orthetriggeringconfiguration(TRIGgercommands).
Toabortascaninprogress,sendtheABORtcommand.
Eachreadingisreturnedwithsomecombinationofmeasurement
units,timestamp,channelnumber,andalarmstatusinformation,
dependingonthesettingssetbytheFORMat:READing
commands.Thetimestampiseitherinrelativeformat(timein
secondssincethebeginningofthescan)orabsoluteformat(time
ofdaywithdate,basedontheinstrument'sclockassetbythe
SYSTem:DATEandSYSTem:TIMEcommands).Thechoiceof

absoluteandrelativetimeisdeterminedbythe
FORMat:READing:TIME:TYPEcommand.
TheREAD?queryisnotvalidwiththe*TRGcommand(usedwith
TRIGger:SOURceBUScommandforsoftwaretriggering).
TheinstrumentclearsallreadingsfrommemoryafteraFactory
Reset(*RSTcommand)orafteranInstrumentPreset
(SYSTem:PRESetcommand).
Ifyouspecifya<scan_list>withthisquery(34972Aonly),itwill
overwritethecurrentscanlist.

ReturnFormat
Thecommandsendsreadingsdirectlytoreadingmemoryandthe
instrument'soutputbuffer(withformattingassetbythe
FORMat:READingcommands).Multipleresponsesareseparatedby
commas.

Examples
ThefollowingprogramsegmentshowshowtousetheREAD?command
withtheCONFigurecommand.TheROUTe:SCANcommandputsthe
twochannelsintothescanlist(andredefinesthescanlist).TheREAD?
commandplacestheinstrumentinthe"wait-for-trigger"state,scansthe
specifiedchannelswhentherear-panelExtTrigInputlineispulsedlow,
sendsthereadingstoreadingmemoryandtheinstrument'soutput
buffer.
CONF:VOLT:DC10,0.003,(@103,108)!Configure
channels
ROUT:SCAN(@103,108)!Definethescanlist
TRIG:SOUREXT
READ?!Appliestothepresentscanlist
TypicalResponse:+4.27150000E-03,+1.32130000E-03

UNIT:TEMPerature
Syntax|Description|Parameters|Remarks|ReturnFormat|Examples

Syntax
UNIT:TEMPerature<units>[,(@<ch_list>)]
UNIT:TEMPerature?[(@<ch_list>)]

Description
Thiscommandselectsthetemperatureunits(°C,°F,orKelvin)onthe
specifiedchannels.Ifyouomittheoptional<ch_list>parameter,this
commandappliestothecurrentlydefinedscanlist.
Thefollowingtableshowswhichtemperaturetransducersaresupported
byeachofthemultiplexermodules.
Module Thermocouple RTD
2-
Wire
RTD
4-
Wire
Thermistor
34901A
Armature
Multiplexer
Yes Yes Yes Yes
34902A
Reed
Multiplexer
Yes Yes Yes Yes
34908A
Armature
Multiplexer
(1-Wire)
Not
Recommended
1
Yes No Yes
1
Withaone-wiremultiplexer,evenverysmallgroundcurrentscan
introducesubstantialmeasurementerror.

Parameters
Name Type RangeofValues Default
Value
<units> Discrete {C|F|K},forCelsius,
FahrenheitorKelvin
Thisisa
required
parameter.
The
factory
defaultis
C.
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Youcanmixtemperatureunitsondifferentchannelswithinthe
instrumentandonthesamemodule.
Ifthecorrespondingchannelsarenotconfiguredfortemperature
measurementspriortothesendingoftheUNIT:TEMPerature
command,theinstrumentwilldispatchanerrormessage.
SettingtheMx+B(seeCALCulate:SCALe:UNITcommand)
measurementlabelto°C,°F,orKhasnoeffectonthe
temperaturemeasurementunitscurrentlyselected.
TheCONFigureandMEASure?commandsautomaticallyselect
°C.
Theinstrumentsetsthetemperatureunitsto°CafteraFactory
Reset(*RSTcommand).AnInstrumentPreset(SYSTem:PRESet
command)orCardReset(SYSTem:CPONcommand)doesnot
changethesetting.

ReturnFormat
ThequeryreturnsC,F,orKforeachchannelspecified.Multiple
responsesareseparatedbycommas.

Examples
Thefollowingcommandsetsthetemperatureunitsto°Fonchannels12
and13inslot300.
CONF:TEMPTC,B,(@312,313)
UNIT:TEMPF,(@312,313)
Thefollowingqueryreturnsthetemperatureunitsselectedonchannels
12and13inslot300.
UNIT:TEMP?(@312,313)
TypicalResponse:F,F

CALCulateSubsystemIntroduction
TheinternalDMMisrequiredtostorereadingsinmemoryandperform
calculations.Readingscanbeacquiredduringascanusingthe
34970A/34972Amultiplexermoduleslistedbelow.
34901A20ChannelMultiplexer(2/4-wire)Module
34902A16ChannelMultiplexer(2/4-wire)Module
34907AMultifunctionModule
34908A40ChannelSingle-EndedMultiplexerModule

CommandSummary
CALCulate:AVERage:AVERage?
CALCulate:AVERage:CLEar
CALCulate:AVERage:COUNt?
CALCulate:AVERage:MAXimum?
CALCulate:AVERage:MAXimum:TIME?
CALCulate:AVERage:MINimum?
CALCulate:AVERage:MINimum:TIME?
CALCulate:AVERage:PTPeak?
CALCulate:COMPare:DATA
CALCulate:COMPare:DATA?
CALCulate:COMPare:MASK
CALCulate:COMPare:MASK?
CALCulate:COMPare:STATe
CALCulate:COMPare:STATe?
CALCulate:COMPare:TYPE
CALCulate:COMPare:TYPE?
CALCulate:LIMit:LOWer
CALCulate:LIMit:LOWer?
CALCulate:LIMit:LOWer:STATe
CALCulate:LIMit:LOWer:STATe?
CALCulate:LIMit:UPPer

CALCulate:LIMit:UPPer?
CALCulate:LIMit:UPPer:STATe
CALCulate:LIMit:UPPer:STATe?
CALCulate:SCALe:GAIN
CALCulate:SCALe:GAIN?
CALCulate:SCALe:OFFSet
CALCulate:SCALe:OFFSet?
CALCulate:SCALe:OFFSet:NULL
CALCulate:SCALe:STATe
CALCulate:SCALe:STATe?
CALCulate:SCALe:UNIT
CALCulate:SCALe:UNIT?

CALCulate:AVERage:MINimum?
CALCulate:AVERage:AVERage?
CALCulate:AVERage:MAXimum?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Syntax
CALCulate:AVERage:MINimum?[(@<ch_list>)]
CALCulate:AVERage:AVERage?[(@<ch_list>)]
CALCulate:AVERage:MAXimum?[(@<ch_list>)]

Description
Thesequeriesreturntheminimum,average(arithmeticmean)and
maximumvaluesfoundoneachofthespecifiedchannelsduringthe
scan.Eachchannelshouldbeamultiplexer,digitalortotalizerchannel
thathasbeenconfiguredtobepartofthescanlist.Ifitisnotpartofthe
scanlist,noerrorwillbegenerated,butthevaluereturnedwillbea
meaninglessvalueof0.

Parameters
Name Type RangeofValues Default
Value
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Youcanreadthevaluesatanytime,evenduringascan.Anerror
isgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
ThecalculationstartswhentheinternalDMMistriggered.The
instrumentclearsthestoredstatisticaldataonallchannelswhena
newscanisstarted,whentheCALCulate:AVERage:CLEar
commandisexecuted,afteraFactoryReset(*RSTcommand),or
afteranInstrumentPreset(SYSTem:PRESetcommand).

ReturnFormat
Thequeryreturnsanumberintheform"+2.61920000E+01".Multiple
responsesareseparatedbycommas.Ifnodataisavailableforthe
specifiedchannels,itreturns+0.00000000E+00.

Example
Thefollowingqueryreturnstheminimumvaluesfoundonchannels05
through08onthemoduleinslot100.
Inthisexample,youcanreplacetheMINnodewithMAXorAVER.
CALC:AVER:MIN?(@105:108)
TypicalResponse:
+3.13830293E+01,+1.98732123E+01,9.38293055E+00,1.20393822E+01

SeeAlso
CALCulateSubsystemIntroduction

CALCulate:AVERage:CLEar
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Syntax
CALCulate:AVERage:CLEar[(@<ch_list>)]

Description
Thiscommandclearsallvaluesfromthestatisticsregistersforthe
specifiedchannels.Eachchannelshouldbeamultiplexer,digitalor
totalizerchannelthathasbeenconfiguredtobepartofthescanlist.Ifit
isnotpartofthescanlist,noerrorwillbegenerated,butthevalue
returnedwillbeameaninglessvalueof0.Theminimum,maximum,
average,count,andpeak-to-peakvaluesarecleared.Thevaluesforall
scannedchannelsarealsoclearedatthestartofanewscan.

Parameters
Name Type RangeofValues Default
Value
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Althoughthiscommandclearstheminimum,maximum,average,
count,andpeak-to-peakvalues,noreadingsareclearedfrom
memory.
TheinstrumentgeneratesanerroriftheinternalDMMisdisabled
(seeINSTrument:DMM)ornotinstalledinthemainframe.
Theinstrumentclearsthestoredstatisticaldataonallchannels
whenanewscanisstarted,afteraFactoryReset(*RST
command),orafteranInstrumentPreset(SYSTem:PRESet
command).

Example
Thefollowingcommandclearsthestoredstatisticaldataonchannels1
through10inslot200.
CALC:AVER:CLEar(@201:210)

SeeAlso
CALCulateSubsystemIntroduction
CALCulate:AVERage:MINimum?
CALCulate:AVERage:MAXimum?
CALCulate:AVERage:AVERage?
CALCulate:AVERage:COUNt?
CALCulate:AVERage:PTPeak?

CALCulate:AVERage:COUNt?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Syntax
CALCulate:AVERage:COUNt?[(@<ch_list>)]

Description
Thisqueryreturnsthenumberofreadingstakenoneachofthespecified
channelsduringthescan.Eachchannelshouldbeamultiplexer,digital
ortotalizerchannelthathasbeenconfiguredtobepartofthescanlist.If
itisnotpartofthescanlist,noerrorwillbegenerated,butthevalue
returnedwillbeameaninglessvalueof0.

Parameters
Name Type RangeofValues Default
Value
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Youcanreadthevaluesatanytime,evenduringascan.Anerror
isgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
ThecalculationstartswhentheinternalDMMistriggered.The
instrumentclearsthestoredstatisticaldataonallchannelswhena
newscanisstarted,whentheCALCulate:AVERage:CLEar
commandisexecuted,afteraFactoryReset(*RSTcommand),or
afteranInstrumentPreset(SYSTem:PRESetcommand).

ReturnFormat
Thequeryreturnsanumberintheform"+7.90000000E+01".Multiple
responsesareseparatedbycommas.Ifnodataisavailableforthe
specifiedchannels,itreturns0.

Example
Thefollowingqueryreturnsthenumberofreadingstakenonchannels
05through08onthemoduleinslot100.
CALC:AVER:COUNt?(@105:108)
TypicalResponse:
+2.00000000E+01,1.90000000E+01,2.10000000E+01,2.00000000E+01

SeeAlso
CALCulateSubsystemIntroduction
CALCulate:AVERage:MINimum?
CALCulate:AVERage:MAXimum?
CALCulate:AVERage:AVERage?

CALCulate:AVERage:MINimum:TIME?
CALCulate:AVERage:MAXimum:TIME?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Syntax
CALCulate:AVERage:MINimum:TIME?[(@<ch_list>)]
CALCulate:AVERage:MAXimum:TIME?[(@<ch_list>)]

Description
Thesequeriesreturnthetimethattheminimumormaximumreading
wastakenonthespecifiedchannelsduringthescan(infulltimeand
dateformat).Eachchannelmustbeamultiplexer,digitalinputortotalizer
channelthathasbeenconfiguredtobepartofthescanlist.

Parameters
Name Type RangeofValues Default
Value
<ch_list> Channel
List
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Youcanreadthevaluesatanytime,evenduringascan.Anerror
isgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
ThecalculationstartswhentheinternalDMMistriggered.The
instrumentclearsthestoredstatisticaldataonallchannelswhena
newscanisstarted,whentheCALCulate:AVERage:CLEar
commandisexecuted,afteraFactoryReset(*RSTcommand),or
afteranInstrumentPreset(SYSTem:PRESetcommand).
Thiscommandisnotaffectedbythe
FORMat:READing:TIME:TYPEcommand,whichselectsthetime
formatforstoringscanneddatainmemory(absolutetimeversus
relativetime).

ReturnFormat
Foreachchannel,thequeryreturnsthetimeintheform
yyyy,mm,dd,hh,mm,ss.sss.Forexample,2009,10,03,14,35,06.215would
meanOctober3,2009at2:35:06.215PM.

Example
Thefollowingqueryreturnsthetimeoftheminimumreadingonchannels
03and04onthemoduleinslot100.
CALC:AVER:MIN:TIME?(@103:104)
TypicalResponse:2009,12,20,08,39,27.283,2009,12,20,08,39,28.011

SeeAlso
CALCulateSubsystemIntroduction

CALCulate:AVERage:PTPeak?
Syntax|Description|Parameters|Remarks|ReturnFormat|Example

Syntax
CALCulate:AVERage:PTPeak?[(@<ch_list>)]

Description
Thisqueryreturnsthepeaktopeakvalue(maximumminusminimum)
foundoneachofthespecifiedchannelsduringthescan.Eachchannel
shouldbeamultiplexer,digitalortotalizerchannelthathasbeen
configuredtobepartofthescanlist.Ifitisnotpartofthescanlist,no
errorwillbegenerated,butthevaluereturnedwillbeameaningless
valueof0.

Parameters
Name Type RangeofValues Default
Value
<ch_list> Channel
list
Oneormorechannels,
asshown:
(@310)-channel10on
themoduleinslot300.
(@305:310)-channels
05through10onthe
moduleinslot300.
(@202:207,209,302:308)
-channels02through07
and09onthemodulein
slot200andchannels02
through08onthe
moduleinslot300.
Ifyou
omitthe
optional
<ch_list>
parameter,
this
command
appliesto
the
currently
defined
scanlist.

Remarks
Youcanreadthevaluesatanytime,evenduringascan.Anerror
isgeneratediftheinternalDMMisdisabled(see
INSTrument:DMMcommand)ornotinstalledinthemainframe.
ThecalculationstartswhentheinternalDMMistriggered.The
instrumentclearsthestoredstatisticaldataonallchannelswhena
newscanisstarted,whentheCALCulate:AVERage:CLEar
commandisexecuted,afteraFactoryReset(*RSTcommand),or
afteranInstrumentPreset(SYSTem:PRESetcommand).

ReturnFormat
Thequeryreturnsanumberintheform"+2.61920000E+01".Multiple
responsesareseparatedbycommas.Ifnodataisavailableforthe
specifiedchannels,itreturns+0.00000000E+00.

Example
Thefollowingqueryreturnsthepeaktopeakvaluesfoundonchannels
05through08onthemoduleinslot100.
CALC:AVER:PTP?(@105:108)
TypicalResponse:
+3.13830293E+01,+1.98732123E+01,9.38293055E+00,1.20393822E+01