
Before Programming
2-5IM 704310-12E
2
2.3 Response
Onreceivingaqueryfromthecontroller,this
instrumentreturnsaresponsemessagetothe
controller.Aresponsemessageissentinoneofthe
followingtwoforms.
• Responseconsistingofaheaderanddata
Ifthequerycan beusedasa programmessage
withoutanychange,acommandheaderisattached
tothequery,whichisthenreturned.
Example SAMPLE:GATE:MODE?<PMT>→:
SAMPLE:GATE:MODE EVENT<RMT>
• Responseconsistingofdataonly
Ifthequerycannotbeused asaprogrammessage
unlesschangesaremadetoit (i.e.itisaquery-only
command),noheaderisattachedandonlythedata
isreturned.Somequery-onlycommandscanbe
returnedafteraheaderisattachedtothem.
Example STATUS:ERROR?<PMT>→
0,"NO ERROR"<RMT>
When returning a response without a header
Itispossibletoremovetheheaderfromaresponse
consistingofaheaderanddata.The
"COMMunicate:HEADer" commandis used todo this.
Abbreviated form
Normally,thelower-casepartisremovedfroma
responseheaderbeforetheresponseisreturnedto
thecontroller.Naturally,thefullformoftheheadercan
alsobe used.For this,the "COMMunicate:VERBose"
commandisused.Thepartenclosedby[] isalso
omittedintheabbreviatedform.
2.4 Data
Data
Adatasectioncomesaftertheheader.A spacemust
beincludedbetweenthe headerandthedata.The
datacontainsconditionsandvalues.Dataisclassified
asbelow.
Data Description
<Decimal> Value expressed as a decimal number
(Example: CH2's probe attenuation
→SAMPle:GATE:EVENtsize 100)
<Voltage><Time> Physical value
(Example: Gate time
<Percent> →SAMPle:GATE:TIME 1US)
<Register> Register value expressed as either binary, octal, decimal
or hexadecimal
(Example: Extended event register value
→STATus:EESE #HFE)
<Character data> Specified character string (mnemonic). Can be selected
from { }
(Example: Selecting of gate mode
→SAMPle:GATE:MODE {EVENt|TIME|EXTernal})
<Boolean> Indicates ON/OFF. Set to ON, OFF or value
(Example: Panorama display ON
→DISPlay:PANorama:STATe ON)
<Character string data>Arbitrary character string
(Example: File name to be saved
→FILE:DELete:SETup "SETUP_1")
<Block data> Arbitrary 8-bit data
(Example: Response to acquired waveform data
→#6000010ABCDEFGHIJ)
<Decimal>
<<Decimal>indicatesavalueexpressedasa decimal
number,asshowninthetablebelow.Decimalvalues
aregivenin theNR form specifiedin ANSIX3.42-
1975.
Symbol Description Example
<NR1> Integer 125 –1 +100000
<NR2> Fixed point number 125.0 –.90 +001.
<NR3> Floating point number 125.0E+0 –9E–1 +.1E4
<NRf> Any of the forms <NR1> to <NR3> is allowed.
• Decimalvalueswhicharesentfromthecontrollerto
thisinstrumentcanbesentinanyoftheformsto
<NR3>.In thiscase,<NRf> appears.
• Forresponsemessageswhicharereturnedfrom
thisinstrumenttothecontroller,theform(<NR1>to
<NR3>tobeused) isdeterminedby thequery.The
sameformisused,irrespectiveofwhetherthevalue
islargeorsmall.
• Inthe case of<NR3>, the "+"after the "E"canbe
omitted,butthe "–"cannot.
• Ifavalueoutsidethesettingrange isentered,the
valuewillbenormalizedsothatitisjustinsidethe
range.
• Ifthevaluehasmorethanthesignificantnumberof
digits,thevaluewillberounded.
2.3 Response/2.4 Data