res.cloudinary.comg_center/assets/… · scpi commands r&shmo1002 remote control 2 content scpi...
Post on 26-Jun-2020
43 Views
Preview:
TRANSCRIPT
Mixed Signal Oscilloscope50/70/100 MHz R&S®HMO1002SCPI Programmers Manual
SCPI
Pro
gram
mer
s M
anua
l
Test
& M
easu
rem
ent
SCPI Commands R&S®HMO1002 Remote Control
2
Content
SCPI Programmers Manual
Content
1 Basics .............................................................................................................................................. 4 1.1 Remote Control Interfaces .............................................................................................................. 4 1.1.1 USB Interface .................................................................................................................................. 4 1.1.2 Ethernet (LAN) Interface ................................................................................................................. 5 1.2 Setting Up a Network (LAN) Connection ....................................................................................... 6 1.2.1 Connecting the Instrument to the Network ................................................................................... 6 1.2.2 ConfiguringLANParameters .......................................................................................................... 6 1.3 Switching to Remote Control .......................................................................................................... 8 1.4 Messages and Command Structure ............................................................................................... 8 1.4.1 Messages ........................................................................................................................................ 8 1.4.2 SCPICommandStructure ............................................................................................................. 10 1.5 Command Sequence and Synchronization ................................................................................... 15 1.5.1 PreventingOverlappingExecution ................................................................................................ 16 1.6 Status Reporting System .............................................................................................................. 17 1.6.1 StructureofaSCPIStatusRegister .............................................................................................. 17 1.6.2 Hierarchy of status registers ......................................................................................................... 19 1.6.3 Contents of the Status Registers .................................................................................................. 20 1.6.4 Application of the Status Reporting System ................................................................................. 25 1.6.5 Reset Values of the Status Reporting System .............................................................................. 27 1.7 GeneralProgrammingRecommendations .................................................................................... 27 2 Command Reference .................................................................................................................... 29 2.1 Common Commands .................................................................................................................... 29 2.2 AcquisitionandSetup ............................................................................................................... 32 2.2.1 StartingandStoppingAcquisition ............................................................................................ 32 2.2.2 TimeBase .................................................................................................................................. 33 2.2.3 Acquisition ................................................................................................................................ 35 2.2.4 Vertical ...................................................................................................................................... 40 2.2.5 LogicChannel ........................................................................................................................... 44 2.2.6 WaveformData ......................................................................................................................... 46 2.2.7 Probes ....................................................................................................................................... 49 2.3 Trigger ....................................................................................................................................... 50 2.3.1 GeneralATriggerSettings ........................................................................................................ 50 2.3.2 EdgeTrigger .............................................................................................................................. 52 2.3.3 Width(Pulse)Trigger .................................................................................................................... 53 2.3.4 Video/TV Trigger ........................................................................................................................ 55 2.3.5 Pattern(Logic)Trigger ............................................................................................................... 56 2.4 Display ......................................................................................................................................... 59 2.4.1 BasicDisplaySettings ............................................................................................................... 59 2.4.2 Zoom ............................................................................................................................................ 63 2.4.3 Markers (Timestamps) ................................................................................................................. 64 2.5 Measurements .......................................................................................................................... 65 2.5.1 Cursor ........................................................................................................................................ 65 2.5.2 Automatic Measurements ........................................................................................................... 72 2.7 QuickmathandReferenceWaveforms ..................................................................................... 78 2.7.1 Quickmath ................................................................................................................................. 78 2.7.3 ReferenceWaveforms ............................................................................................................... 79
SCPI Commands R&S®HMO1002 Remote Control
3
Content
SCPI Programmers Manual
2.8 FFT ............................................................................................................................................. 83 2.9 Masks ........................................................................................................................................ 87 2.10 Function Generator ....................................................................................................................... 90 2.11 PatternGenerator ....................................................................................................................... 92 2.12 DigitalVoltmeter ........................................................................................................................... 98 2.13 Component Tester ....................................................................................................................... 100 2.11 ProtocolAnalysis ...................................................................................................................... 1012.11.1 General ..................................................................................................................................... 1012.11.2 ParallelBus ................................................................................................................................. 1032.11.3 SPI ............................................................................................................................................ 1052.11.4 SSPI .......................................................................................................................................... 113 2.11.5 I2C .............................................................................................................................................. 116 2.11.6 UART .......................................................................................................................................... 1262.11.7 CAN ......................................................................................................................................... 133 2.11.8 LIN ............................................................................................................................................. 145 2.12 DataandFileManagement ..................................................................................................... 1542.12.1 OutputControl ........................................................................................................................ 154 2.12.2 MMEMory Commands .............................................................................................................. 157 2.13 General Instrument Setup .......................................................................................................... 163 2.14 StatusReporting ..................................................................................................................... 1652.14.1 STATus:OPERationRegister .................................................................................................... 1652.14.2 STATus:QUEStionableRegisters ................................................................................................ 167 3 List of Commands ....................................................................................................................... 170
SCPI Commands R&S®HMO1002 Remote Control
4
Basics
SCPI Programmers Manual
1 BasicsThischapterprovidesbasicinformationonoperatinganinstrumentviaremotecontrol.
1.1 Remote Control Interfaces
Forremotecontrol,EthernetorUSBinterfacecanbeused.Optionalinterfacesarenotavailable.
SCPI(StandardCommandsforProgrammableInstruments)SCPIcommands-messages-areusedforremotecontrol.CommandsthatarenottakenfromtheSCPIstandardfollowtheSCPIsyntaxrules.
1.1.1 USB Interface
InadditiontoaLANinterface,theR&S®HMO1002includesaUSBdeviceport.Forthisin-terface,theusercanselectiftheinstrumentisaccessedviavirtualCOMport(VCP)orviaUSBTMCclass.ThetraditionalversionoftheVCPallowstheusertocommunicatewiththeR&S®HMO1002usinganyterminalprogramviaSCPIcommandsoncethecorrespondingWin-dowsdrivershavebeeninstalled.Naturally,thefreesoftware“HMExplorer”isalsoavailablefortheR&S®HMO1002.ThisWindowsapplicationofferstheR&S®HMO1002aterminalfunction,theoptiontocreatescreenshotsandtoreadoutthemeasureddatafromtheHMOmemory.
ThemodernalternativetothevirtualCOMportistoremotecontroltheR&S®HMO1002viaUSBTMCclass.TMCstandsfor“Test&MeasurementClass”whichindicatesthattheconnectedmeasurementinstrumentcanberecognizedwithoutspecialWindowsdriversifVISAdriversareinstalledandthatitcanbeuseddirectlyincorrespondingenvironments.TheGPIBinterfaceservesasmodeltothestructureoftheTMCdesign.AmajorbenefitoftheUSBTMCclassisthatbysamplingspecificregistersthecontrollingsoftwarecandetermineifcommandshavebeenterminatedandiftheyhavebeenprocessedcorrectly.Incontrast,thecommunicationviaVCPrequiresanalysisandpollingmechanismswithinthecontrollingsoftwarewhichmaysigni-ficantlystraintheinterfaceofthemeasurementinstruments.TheTMCstatusregisterssolvethisproblemwiththeUSBTMCinthesamemannerasisthecasewiththeGPIBinterfaceforthehardware,namelyviacorrespondingcontrollines.
IfyouareusingUSByouneedtoinstallanUSBdriver,whichcanbedownloadedfreeofchargefrom the Rohde & Schwarz homepage.
NOTICE The available USB VCP driver is fully tested, functional and released for Windows XP™,
Windows Vista™, Windows 7™ or Windows 8™, both as 32Bit or 64Bit versions.
TheR&S®HMO1002VCPorUSBTMChastobechosenintheSETUPmenuanddoesnotneedany setting.
SCPI Commands R&S®HMO1002 Remote Control
5
Basics
SCPI Programmers Manual
1.1.2 Ethernet (LAN) Interface
ThesettingsoftheparameterwillbedoneafterselectingthemenuitemETHERNET and the soft key PARAMETER.YoucansetafixIPadressoradynamicIPsettingviatheDHCPfunction.PleaseaskyourITdepartmentforthecorrectsettingatyournetwork.
IP addressTosetuptheconnectiontheIPaddressoftheinstrumentisrequired.Itispartoftheresourcestringusedbytheprogramtoidentifyandcontroltheinstrument.Theresourcestringhastheform:
TCPIP::‹IP_address›::‹IP_port›::SOCKET
ThedefaultportnumberforSCPIsocketcommunicationis5025.IPaddressandportnumberarelistedInthe„EthernetSettings“oftheR&S®HMO1002,seealso:chapter1.2.2,“ConfiguringLANParameters“.
Example: IftheinstrumenthastheIPaddress192.1.2.3;thevalidresourcestringis:
TCPIP::192.1.2.3::5025::SOCKET
IftheLANissupportedbyaDNSserver,thehostnamecanbeusedinsteadoftheIPaddress.TheDNSserver(DomainNameSystemserver)translatesthehostnametotheIPaddress.Theresource string has the form:
TCPIP::‹host_name›::‹IP_port›::SOCKET
ToassignahostnametotheR&S®HMO1002,selectSETUPbutton›PAGE2|2›DEVICENAME.
Example: IfthehostnameisHAMEG1;thevalidresourcestringis:
TCPIP::HAMEG1::5025::SOCKET
SCPI Commands R&S®HMO1002 Remote Control
6
Basics
SCPI Programmers Manual
NOTICE The end character must be set to linefeed.
1.2 Setting Up a Network (LAN) Connection
1.2.1 Connecting the Instrument to the Network
NOTICE Risk of network failure
Before connecting the instrument to the network or configuring the network, consult your network administrator. Errors may affect the entire network.
Thenetworkcardcanbeoperatedwitha10MbpsEthernetIEEE802.3ora100MbpsEthernetIEEE 802.3u interface.
NOTICE To establish a network connection, connect a commercial RJ-45 cable to one of the
LAN ports of the instrument and to a PC.
1.2.2 Configuring LAN Parameters
Dependingonthenetworkcapacities,theTCP/IPaddressinformationfortheinstrumentcanbeobtainedindifferentways.IfthenetworksupportsdynamicTCP/IPconfigurationusingtheDynamicHostConfigurationProtocol(DHCP),andaDHCPserverisavailable,alladdressinformationcanbeassignedauto-matically.Otherwise,theaddressmustbesetmanually.AutomaticPrivateIPAddressing(APIPA)isnotsupported.
Bydefault,theinstrumentisconfiguredtousedynamicTCP/IPconfigurationandobtainalladdressinformationautomatically.ThismeansthatitissafetoestablishaphysicalconnectiontotheLANwithoutanypreviousinstrumentconfiguration.
SCPI Commands R&S®HMO1002 Remote Control
7
Basics
SCPI Programmers Manual
NOTICE Risk of network errors Connection errors can affect the entire network. If your network does not support
DHCP, or if you choose to disable dynamic TCP/IP configuration, you must assign valid address information before connecting the instrument to the LAN. Contact your net-work administrator to obtain a valid IP address.
Configuring LAN parameters• PresstheSETUPkeyandthentheInterfacesoftkey.• PresstheEthernetandthentheParametersoftkey.
NOTICE If the instrument is set to use DHCP and cannot find a DHCP server, it takes about two
minutes until the Ethernet menu is available.
The„EthernetSettings“dialogboxisdisplayed.
Fig. 1.1: Ethernet Settings dialog box
Somedataisdisplayedforinformationonlyandcannotbeedited.Thisincludesthe„MAC“(phy-sical)addressoftheconnectorandthe„Link“statusinformation.
• DefinetheIPaddressoftheinstrumentbyenteringeachofthefourblocksindividually(ma-nualmode)orchoosetheautomaticIP-Mode. a) Inmanualmode(MAN)definethefirstblocknumberusingtheknob. b) PressNexttomovetothenextblockanddefinethenumber. c) WhentheIPaddressiscomplete,pressDowntocontinuewiththenextsetting.
• Definethe„Subnetmask“and„Gateway“inthesameway.• Selectthe„IPPort“-theportnumberforSCPIsocketcommunication.• Selectthe„HTTPPort“usedbytheinstrument.
SCPI Commands R&S®HMO1002 Remote Control
8
Basics
SCPI Programmers Manual
• Selectthe„Transfer“mode.Thismodecaneitherbedeterminedautomatically(„Auto“set-ting),oryoucanselectacombinationofatransferrateandhalforfullduplexmanually.
• PressSavetosavetheLANparameters.
NOTICE The „Link“ status information at the bottom of the dialog box indicates whether a LAN
connection was established successfully.
Checking LAN and SCPI connection• ChecktheLANconnectionusingping:pingxxx.yyy.zzz.xxx.• IfthePCcanaccesstheinstrument,entertheIPaddressoftheaddresslineoftheinternetbrowseronyourcomputer:http//:xxx.yyy.zzz.xxx
• The„InstrumentHome“pageappears.ItprovidesinformationontheinstrumentandtheLANconnection.
1.3 Switching to Remote Control
Whenyouswitchontheinstrument,itisalwaysinmanualoperationstate(„local“state)andcanbeoperatedviathefrontpanel.Whenyousendacommandfromthecontrolcomputer,itisreceivedandexecutedbytheinstrument.Thedisplayremainson,manualoperationviathefrontpanelisalwayspossible.
1.4 Messages and Command Structure
1.4.1 Messages
Instrument messages are employed in the same way for all interfaces, if not indicated otherwise in the description.See also:• Structureandsyntaxoftheinstrumentmessages:chapter1.4.2,„SCPICommandStructure“.• Detaileddescriptionofallmessages:chapter 2, „Command Reference“.
There are different types of instrument messages:• Commands• Instrument responses
CommandsCommands (program messages) are messages which the controller sends to the instrument. Theyoperatetheinstrumentfunctionsandrequestinformation.Thecommandsaresubdividedaccording to two criteria:
According to the instrument effect:• Setting commands cause instrument settings such as a reset of the instrument or setting the
frequency. • Queriescausedatatobeprovidedforremotecontrol,e.g.foridentificationoftheinstrumentorpollingaparametervalue.Queriesareformedbyappendingaquestionmarktothecom-mand header.
SCPI Commands R&S®HMO1002 Remote Control
9
Basics
SCPI Programmers Manual
According to their definition in standards:• ThefunctionandsyntaxoftheCommoncommandsarepreciselydefinedinstandardIEEE
488.2. They are employed identically on all instruments (if implemented). They refer to func-tions such as management of the standardized status registers, reset and self test.
• Instrument control commands refer to functions depending on the features of the instrument suchasvoltagesettings.ManyofthesecommandshavealsobeenstandardizedbytheSCPIcommittee.Thesecommandsaremarkedas„SCPIcompliant“inthecommandreferencechapters.CommandswithoutthisSCPIlabelaredevice-specific,however,theirsyntaxfollowsSCPIrulesaspermittedbythestandard.
Instrument responsesInstrumentresponses(responsemessagesandservicerequests)aremessageswhichtheinstru-ment is sent to the controller after a query. They can contain measurement results, instrument settings and information on the instrument status.
LAN Interface MessagesIntheLANconnection,theinterfacemessagesarecalledlow–levelcontrolmessages.ThesemessagescanbeusedtoemulateinterfacemessagesoftheGPIBbus.
Command Long term Effect on the instrument
&DCL DeviceClear Abortsprocessingofthecommandsjustrecei-vedandsetsthecommandprocessingsoftwaretoadefinedinitialstate.Doesnotchangetheinstrument setting.
>L Go to Local Transitiontothe„local“state(manualcontrol).
>R Go to Remote Transitiontothe„remote“state(remotecontrol).
&LLO Local Lockout Disablesswitchoverfromremotecontroltoma-nualcontrolbymeansofthefrontpanelkeys.
&NREN NotRemoteEnable Enablesswitchoverfromremotecontroltoma-nualoperationbymeansofthefrontpanelkeys
Table 1.1: LAN Interface Messages
SCPI Commands R&S®HMO1002 Remote Control
10
Basics
SCPI Programmers Manual
Universal CommandsUniversalcommandsareencodedintherange10through1Fhex.Theyaffectallinstrumentsconnectedtothebusanddonotrequireaddressing.
Command Effect on the instrument
DCL (Device Clear) Abortstheprocessingofthecommandsjustreceivedandsetsthecommandprocessingsoftwaretoadefinedinitialstate.Doesnotchangetheinstrumentsettings.
IFC (Interface Clear) Resets the interfaces to the default setting.IFCisnotarealuniversalcommand,itissentviaaseparateline;italsoaffectsallinstrumentsconnectedtothebusanddoes not require addressing
LLO (Local Lockout) TheLOC/IECADDRkeyisdisabled.
SPE (Serial Poll Enable) Ready for serial poll.
SPD (Serial Poll Disable) End of serial poll.
PPU (Parallel Poll Unconfi-gure)
Endoftheparallel-pollstate.
Table 1.2: Universal Commands
Addressed CommandsAddressedcommandsareencodedintherange00through0Fhex.Theyonlyaffectinstrumentsaddressed as listeners.
Command Effect on the instrument
GET (Group Execute Trigger) Triggersapreviouslyactiveinstrumentfunction(e.g.asweep). The effect of the command is the same as with thatofapulseattheexternaltriggersignalinput.
GTL (Go to Local) Transitiontothe„local“state(manualcontrol).
GTR (Go to Remote) Transitiontothe„remote“state(remotecontrol).
PPC (Parallel Poll Configure) Configurestheinstrumentforparallelpoll.
SDC (Selected Device Clear) Abortstheprocessingofthecommandsjustreceivedandsetsthecommandprocessingsoftwaretoadefinedinitialstate.Doesnotchangetheinstrumentsetting.
Table 1.3: Addressed Commands
1.4.2 SCPI Command Structure
SCPIcommandsconsistofaso-calledheaderand,inmostcases,oneormoreparameters.Theheaderandtheparametersareseparatedbya„whitespace“(ASCIIcode0to9,11to32deci-mal,e.g.blank).Theheadersmayconsistofseveralmnemonics(keywords).Queriesareformedbyappendingaquestionmarkdirectlytotheheader.
SCPI Commands R&S®HMO1002 Remote Control
11
Basics
SCPI Programmers Manual
Thecommandscanbeeitherdevice-specificordevice-independent(commoncommands).Commonanddevice-specificcommandsdifferintheirsyntax.
Syntax for Common CommandsCommon(=device-independent)commandsconsistofaheaderprecededbyanasterisk(*)andpossiblyoneormoreparameters.
*RST Reset Resets the instrument.
*ESE EventStatusEnable Setsthebitsoftheeventstatusenableregisters.
*ESR? EventStatusQuery Queriesthecontentoftheeventstatusregister.
*IDN? IdentificationQuery Queriestheinstrumentidentificationstring.
Table 1.4: Examples of Common Commands
Syntax for Device-Specific CommandsFordemonstrationpurposesonly,assumetheexistenceofthefollowingcommandsforthissection:• ACQuire:POINts:ARATe• CALCulate:QMATh<m>:STATe• CHANnel<m>:DATA:POINts• BUS<b>:STATe
Long and short formThemnemonicsfeaturealongformandashortform.Theshortformismarkedbyuppercaseletters, the long form corresponds to the complete word. Either the short form or the long form canbeentered;otherabbreviationsarenotpermitted.
Example: CALCulate:QMATh<m>:STATeON isequivalenttoCALC:QMAT<m>:STATON.
NOTICE Case-insensitivity Upper case and lower case notation only serves to distinguish the two forms in the
manual, the instrument itself is case-insensitive.
Numeric suffixesIfacommandcanbeappliedtomultipleinstancesofanobject,e.g.specificchannelsorsour-ces,therequiredinstancescanbespecifiedbyasuffixaddedtothecommand.Numericsuffixesareindicatedbyangularbrackets(<1...2>,<m>)andarereplacedbyasinglevalueinthecommand.Entrieswithoutasuffixareinterpretedashavingthesuffix1.
Example: Definition: CHANnel<m>:STATeONCommand: CHAN2:STATONThiscommandactivateschannelCH2.
SCPI Commands R&S®HMO1002 Remote Control
12
Basics
SCPI Programmers Manual
NOTICE Different numbering in remote control For remote control, the suffix may differ from the number of the corresponding selec-
tion used in manual operation. SCPI prescribes that suffix counting starts with 1. Suffix 1 is the default state and used when no specific suffix is specified.
Optional mnemonicsSomecommandsystemspermitcertainmnemonicstobeinsertedintotheheaderoromitted.Thesemnemonicsaremarkedbysquarebrackets.TheinstrumentmustrecognizethelongcommandtocomplywiththeSCPIstandard.Somecommandsareshortenedbytheseoptionalmnemonics.
Example: HardCOPy[:IMMediate]HCOP:IMMisequivalenttoHCOP
Special characters
|
Averticalstrokeinparameterdefinitionsindicatesalternativepossibilitiesinthesenseof„or“.Theeffectofthecommanddiffers,dependingonwhichparameterisused.
Example:
HardCOPy:PAGE:ORIentationLANDscape|PORTrait
HCOP:PAGE:ORILANDspecifieslandscapeorientation.
HCOP:PAGE:ORIPORTspecifiesportraitorientation.
[ ]
Mnemonicsinsquarebracketsareoptionalandmaybeinsertedintotheheaderoromitted.
Example:
HardCOPy[:IMMediate]
HCOP:IMMisequivalenttoHCOP.
{ } Parametersincurlybracketsareoptional.
Table 1.5: Special characters
SCPI ParametersManycommandsaresupplementedbyaparameteroralistofparameters.Theparametersmustbeseparatedfromtheheaderbya„whitespace“(ASCIIcode0to9,11to32decimal,e.g.blank).Allowedparametersare:• Numericvalues• Specialnumericvalues• Boolean parameters• Text• Character strings• Block data
SCPI Commands R&S®HMO1002 Remote Control
13
Basics
SCPI Programmers Manual
Theparametersrequiredforeachcommandandtheallowedrangeofvaluesarespecifiedinthecommand description.
Numeric valuesNumericvaluescanbeenteredinanyform,i.e.withsign,decimalpointandexponent.Valuesexceedingtheresolutionoftheinstrumentareroundedupordown.Themantissamaycom-priseupto255characters,theexponentmustlieinsidethevaluerange-32000to32000.Theexponentisintroducedbyan„E“or„e“.Entryoftheexponentaloneisnotallowed.Inthecaseofphysicalquantities,theunitcanbeentered.AllowedunitprefixesareG(giga),MA(mega),MOHMandMHZarealsoallowed),K(kilo),M(milli),U(micro)andN(nano).Iftheunitismis-sing,thebasicunitisused.
Example: TIMebase:SCALe10µs=TIM:SCAL1e-5
UnitsForphysicalquantities,theunitcanbeentered.Allowedunitprefixesare:• G (giga)• MA(mega),MOHM,MHZ• K(kilo)• M (milli)• U (micro)• N (nano)
Iftheunitismissing,thebasicunitisused.
Special numeric valuesThetextslistedbelowareinterpretedasspecialnumericvalues.Inthecaseofaquery,thenu-mericvalueisprovided.• MIN/MAX/DMAX/DEF• MINimumandMAXimumdenotetheminimumandmaximumvalue
Example:CHAN1:DATA:POINDEFCHAN1.DATA:POIN?,Response:6000
Boolean ParametersBooleanparametersrepresenttwostates.The„ON“state(logicallytrue)isrepresentedby„ON“oranumericvalue1.The„OFF“state(logicallyuntrue)isrepresentedby„OFF“orthenumericvalue0.Thenumericvaluesareprovidedastheresponseforaquery.
Example:CHAN2:STATONCHAN2:STAT?,Response:1
Text parametersTextparametersobservethesyntacticrulesformnemonics,i.e.theycanbeenteredusingashortorlongform.Likeanyparameter,theyhavetobeseparatedfromtheheaderbyawhitespace.Inthecaseofaquery,theshortformofthetextisprovided.
Example: HardCOPy:PAGE:ORIentationLANDscapeHCOP:PAGE:ORI?,Response:LAND
SCPI Commands R&S®HMO1002 Remote Control
14
Basics
SCPI Programmers Manual
Block dataBlockdataisaformatwhichissuitableforthetransmissionoflargeamountsofdata.TheASCIIcharacter#introducesthedatablock.Thenextnumberindicateshowmanyofthefollowingdigitsdescribethelengthofthedatablock.Intheexamplethe4followingdigitsindicatethelengthtobe5168bytes.Thedatabytesfollow.Duringthetransmissionofthesedatabytesallendorothercontrolsignsareignoreduntilallbytesaretransmitted.#0specifiesadatablockofindefinitelength.TheuseoftheindefiniteformatrequiresaNL^ENDmessagetoterminatethedatablock.Thisformatisusefulwhenthelengthofthetransmissionisnotknownorifspeedorotherconsiderationspreventsegmentationofthedataintoblocksofdefinitelength.
Overview of Syntax ElementsThefollowingtableprovidesanoverviewofthesyntaxelements:
:The colon separates the mnemonics of a command. In a command line the separa-tingsemicolonmarkstheuppermostcommandlevel.
;The semicolon separates two commands of a command line. It does not alter the path.
, Thecommaseparatesseveralparametersofacommand.
? The question mark forms a query.
* The asterisk marks a common command.
“ Quotation marks introduce a string and terminate it.
#
Thehashsymbolintroducesbinary,octal,hexadecimalandblockdata.– Binary: #B10110– Octal:#O7612– Hexa:#HF3A7– Block: #21312
A„whitespace“(ASCII-Code0to9,11to32decimal,e.g.blank)separatestheheader from the parameters.
Table 1.6: Syntax Elements
Structure of a command lineAcommandlinemayconsistofoneorseveralcommands.Itisterminatedbyoneofthefollow-ing:• a <New Line>• a<NewLine>withEOI• anEOItogetherwiththelastdatabyte
Severalcommandsinacommandlinemustbeseparatedbyasemicolon„;“.Ifthenextcom-mandbelongstoadifferentcommandsystem,thesemicolonisfollowedbyacolon.
Responses to QueriesAqueryisdefinedforeachsettingcommandunlessexplicitlyspecifiedotherwise.Itisformedbyaddingaquestionmarktotheassociatedsettingcommand.AccordingtoSCPI,there-sponsestoqueriesarepartlysubjecttostricterrulesthaninstandardIEEE488.2.
• The requested parameter is transmitted without a header.
SCPI Commands R&S®HMO1002 Remote Control
15
Basics
SCPI Programmers Manual
Example:HCOP:PAGE:ORI?,Response:LAND
• Maximumvalues,minimumvaluesandallotherquantitiesthatarerequestedviaaspecialtextparameterarereturnedasnumericvalues.
Example:CHAN1:DATA:POINDEFCHAN1.DATA:POIN?,Response:6000
• Truthvalues(Booleanvalues)arereturnedas0(forOFF)and1(forON).
Example:CHAN2:STATONCHAN2:STAT?,Response:1
• Text(characterdata)isreturnedinashortform.
Example:HardCOPy:PAGE:ORIentationLANDscapeHCOP:PAGE:ORI?,Response:LAND
1.5 Command Sequence and Synchronization
Asequentialcommandfinishesexecutingbeforethenextcommandstartsexecuting.Com-mands that are processed quickly are usually implemented as sequential commands. Setting commandswithinonecommandline,eventhoughtheymaybeimplementedassequentialcommands,arenotnecessarilyservicedintheorderinwhichtheyhavebeenreceived.Inordertomakesurethatcommandsareactuallycarriedoutinacertainorder,eachcommandmustbesent in a separate command line.
NOTICE As a general rule, send commands and queries in different program messages.
SCPI Commands R&S®HMO1002 Remote Control
16
Basics
SCPI Programmers Manual
1.5.1 Preventing Overlapping Execution
Topreventanoverlappingexecutionofcommands,oneofthecommands*OPC,*OPC?or*WAIcanbeused.Allthreecommandscauseacertainactiononlytobecarriedoutafterthehardwarehasbeenset.Bysuitableprogramming,thecontrollercanbeforcedtowaitforthecorrespondi-ng action to occur.
Command Action Programming the controller
*OPC
SetstheOperationCompletebitintheESRafterallpreviouscommandshavebeenexecuted.
• Settingbit0intheESE• Settingbit5intheSRE• Waitingforservicerequest
(SRQ)
*OPC?
Stops command processing until 1 is returned.This is only the case after the Opera-tionCompletebithasbeensetintheESR.Thisbitindicatesthattheprevi-oussettinghasbeencompleted.
Sending*OPC?directlyafterthe commandwhose processing shouldbeterminatedbeforeothercommandscanbeexecuted.
*WAI
Stops further command processing until allcommandssentbefore*WAIhavebeenexecuted.
Sending*WAIdirectlyafterthecommandwhose processing shouldbeterminatedbeforeothercommandsareexecuted
Table 1.7: Synchronization using *OPC, *OPC? and *WAI
Commandsynchronizationusing*WAIor*OPC?appendedtoanoverlappedcommandisagoodchoiceiftheoverlappedcommandtakestimetoprocess.Thetwosynchronizationtech-niquessimplyblockoverlappedexecutionofthecommand.Fortimeconsumingoverlappedcommandsitisusuallydesirabletoallowthecontrollerortheinstrumenttodootherusefulworkwhilewaitingforcommandexecution.Useoneofthefollowingmethods
*OPC with a service request• SettheOPCmaskbit(bitno.0)intheESE:*ESE1• Setbitno.5intheSRE:*SRE32toenableESBservicerequest.• Sendtheoverlappedcommandwith*OPC• WaitforaservicerequestTheservicerequestindicatesthattheoverlappedcommandhasfinished.
*OPC? with a service request• Setbitno.4intheSRE:*SRE16toenableMAVservicerequest.• Sendtheoverlappedcommandwith*OPC?• WaitforaservicerequestTheservicerequestindicatesthattheoverlappedcommandhasfinished.
Event Status Register (ESE)• SettheOPCmaskbit(bitno.0)intheESE:*ESE1• Sendtheoverlappedcommandwithout*OPC,*OPC?or*WAI• Polltheoperationcompletestateperiodically(bymeansofatimer)usingthesequence:*OPC;*ESR?
SCPI Commands R&S®HMO1002 Remote Control
17
Basics
SCPI Programmers Manual
Areturnvalue(LSB)of1indicatesthattheoverlappedcommandhasfinished.
*OPC? with short timeout• Sendtheoverlappedcommandwithout*OPC,*OPC?or*WAI• Polltheoperationcompletestateperiodically(bymeansofatimer)usingthesequence:‹shorttimeout›;*OPC?
• Areturnvalue(LSB)of1indicatesthattheoverlappedcommandhasfinished.Incaseofatimeout, the operation is ongoing.
• Resettimeouttoformervalue• CleartheerrorqueuewithSYStem:ERRor?toremovethe„-410,Queryinterrupted“entries.
Using several threads in the controller applicationAsanalternative,providedtheprogrammingenvironmentofthecontrollerapplicationsup-portsthreads,separatethreadscanbeusedfortheapplicationGUIandforcontrollingtheinstrument(s)viaSCPI.Athreadwaitingfora*OPC?thuswillnotblocktheGUIorthecommuni-cation with other instruments.
1.6 Status Reporting System
The status reporting system stores all information on the current operating state of the instru-ment,andonerrorswhichhaveoccurred.Thisinformationisstoredinthestatusregistersandintheerrorqueue.BothcanbequeriedviaLANinterface(STATus...commands).
1.6.1 Structure of a SCPI Status Register
EachstandardSCPIregisterconsistsof5parts.Eachparthasawidthof16bitsandhasdiffe-rentfunctions.Theindividualbitsareindependentofeachother,i.e.eachhardwarestatusisassignedabitnumberwhichisvalidforallfiveparts.Bit15(themostsignificantbit)issettozeroforallparts.Thusthecontentsoftheregisterpartscanbeprocessedbythecontrolleraspositiveintegers.
Fig. 1.4: The status-register model
Remote ControlR&S® RTM
183User Manual 1305.0595.02 ─ 03
12.1.6.1 Structure of a SCPI Status Register
Each standard SCPI register consists of 5 parts. Each part has a width of 16 bits and has different functions. The individual bits are independent of each other, i.e. each hardware status is assigned a bit number which is valid for all five parts. Bit 15 (the most significant bit) is set to zero for all parts. Thus the contents of the register parts can be processed by the controller as positive integers.
Fig. 12-1: The status-register model
Description of the five status register parts
The five parts of a SCPI register have different properties and functions:
● CONDitionThe CONDition part is written into directly by the hardware or the sum bit of the nextlower register. Its contents reflect the current instrument status. This register part canonly be read, but not written into or cleared. Its contents are not affected by reading.
● PTRansitionThe two transition register parts define which state transition of the CONDition part(none, 0 to 1, 1 to 0 or both) is stored in the EVENt part.The Positive-TRansition part acts as a transition filter. When a bit of theCONDition part is changed from 0 to 1, the associated PTR bit decides whether theEVENt bit is set to 1.– PTR bit =1: the EVENt bit is set.
– PTR bit =0: the EVENt bit is not set.
This part can be written into and read as required. Its contents are not affected byreading.
● NTRansitionThe Negative-TRansition part also acts as a transition filter. When a bit of theCONDition part is changed from 1 to 0, the associated NTR bit decides whether theEVENt bit is set to 1.– NTR bit =1: the EVENt bit is set.
– NTR bit =0: the EVENt bit is not set.
Basics
SCPI Commands R&S®HMO1002 Remote Control
18
Basics
SCPI Programmers Manual
Description of the five status register partsThefivepartsofaSCPIregisterhavedifferentpropertiesandfunctions:
CONDition• The CONDitionpartiswrittenintodirectlybythehardwareorthesumbitofthenextlowerregister.Itscontentsreflectthecurrentinstrumentstatus.Thisregisterpartcanonlyberead,butnotwrittenintoorcleared.Itscontentsarenotaffectedbyreading.
PTRansition• ThetwotransitionregisterpartsdefinewhichstatetransitionoftheCONDitionpart(none,0to1,1to0orboth)isstoredintheEVENtpart.ThePositive-TRansitionpartactsasatransi-tionfilter.WhenabitoftheCONDitionpartischangedfrom0to1,theassociatedPTRbitdecideswhethertheEVENtbitissetto1.
PTRbit=1:theEVENtbitisset.PTRbit=0:theEVENtbitisnotset.
Thispartcanbewrittenintoandreadasrequired.Itscontentsarenotaffectedbyreading.
NTRansition• TheNegative-TRansitionpartalsoactsasatransitionfilter.WhenabitoftheCONDitionpartischangedfrom1to0,theassociatedNTRbitdecideswhethertheEVENtbitissetto1.
NTRbit=1:theEVENtbitisset.NTRbit=0:theEVENtbitisnotset.
Thispartcanbewrittenandreadasrequired.Itscontentsarenotaffectedbyreading.
EVENt• TheEVENtpartindicateswhetheraneventhasoccurredsincethelastreading,itisthe„memory“oftheconditionpart.Itonlyindicateseventspassedonbythetransitionfilters.Itispermanentlyupdatedbytheinstrument.Thispartcanonlybereadbytheuser.Readingtheregister clears it. This part is often equated with the entire register.
ENABle• TheENABlepartdetermineswhethertheassociatedEVENtbitcontributestothesumbit(seebelow).EachbitoftheEVENtpartis„ANDed“withtheassociatedENABlebit(symbol‚&‘).Theresultsofalllogicaloperationsofthispartarepassedontothesumbitviaan„OR“function(symbol‚+‘).
ENABlebit=0:theassociatedEVENtbitdoesnotcontributetothesumbitENABlebit=1:iftheassociatedEVENtbitis„1“,thesumbitissetto„1“aswell.
Thispartcanbewrittenandreadbytheuserasrequired.Itscontentsarenotaffectedbyrea-ding.
Sum bit• ThesumbitisobtainedfromtheEVENtandENABlepartforeachregister.TheresultisthenenteredintoabitoftheCONDitionpartofthehigher-orderregister.
SCPI Commands R&S®HMO1002 Remote Control
19
Basics
SCPI Programmers Manual
1.6.2 Hierarchy of status registers
STB, SRE• TheSTatusByte(STB)registeranditsassociatedmaskregisterServiceRequestEnable(SRE)formthehighestlevelofthestatusreportingsystem.TheSTBprovidesaroughoverviewoftheinstrumentstatus,collectingtheinformationofthelower-levelregisters.
ESR, SCPI registers• TheSTBreceivesitsinformationfromthefollowingregisters:• TheEventStatusRegister(ESR)withtheassociatedmaskregisterstandardEventStatusEnable(ESE).
• TheSTATus:OPERationandSTATus:QUEStionableregisterswhicharedefinedbySCPIandcontain detailed information on the instrument.
Output buffer• Theoutputbuffercontainsthemessagestheinstrumentreturnstothecontroller.ItisnotpartofthestatusreportingsystembutdeterminesthevalueoftheMAVbitintheSTBandthusisrepresentedintheoverview.
Allstatusregistershavethesameinternalstructure.Asshowninthefollowingfigure,thestatusinformationisofhierarchicalstructure.
Fig. 1.5: Overview of the status registers hierarchy
Remote ControlR&S® RTM
185User Manual 1305.0595.02 ─ 03
Fig. 12-2: Overview of the status registers hierarchy
● STB, SREThe STatus Byte (STB) register and its associated mask register Service RequestEnable (SRE) form the highest level of the status reporting system. The STB providesa rough overview of the instrument status, collecting the information of the lower-levelregisters.
● ESR, SCPI registersThe STB receives its information from the following registers:– The Event Status Register (ESR) with the associated mask register standard
Event Status Enable (ESE).
– The STATus:OPERation and STATus:QUEStionable registers which aredefined by SCPI and contain detailed information on the instrument.
● Output bufferThe output buffer contains the messages the instrument returns to the controller. Itis not part of the status reporting system but determines the value of the MAV bit inthe STB and thus is represented in the overview.
Basics
SCPI Commands R&S®HMO1002 Remote Control
20
Basics
SCPI Programmers Manual
NOTICE SRE, ESE
TheservicerequestenableregisterSREcanbeusedasENABle part of the STB if the STB is structuredaccordingtoSCPI.Byanalogy,theESEcanbeusedastheENABle part of the ESR.
1.6.3 Contents of the Status Registers
Inthefollowingsections,thecontentsofthestatusregistersaredescribedinmoredetail.
Status Byte (STB) and Service Request Enable Register (SRE)TheSTatusByte(STB)isalreadydefinedinIEEE488.2.Itprovidesaroughoverviewofthein-strumentstatusbycollectingthepiecesofinformationofthelowerregisters.Aspecialfeatureisthatbit6actsasthesumbitoftheremainingbitsofthestatusbyte.
TheSTBcanthusbecomparedwiththeCONDitionpartofanSCPIregisterandassumesthehighestlevelwithintheSCPIhierarchy.TheSTBisreadusingthecommand*STB or a serial poll.
TheSTatusByte(STB)islinkedtotheServiceRequestEnable(SRE)register.EachbitoftheSTBisassignedabitintheSRE.Bit6oftheSREisignored.IfabitissetintheSREandtheassocia-tedbitintheSTBchangesfrom0to1,aservicerequest(SRQ)isgenerated.TheSREcanbesetusing the command *SREandreadusingthecommand*SRE?.
Bit No. Meaning
0...1 Not used
2
Error Queue not empty
Thebitissetwhenanentryismadeintheerrorqueue.IfthisbitisenabledbytheSRE,eachentryoftheerrorqueuegeneratesaservicerequest.Thusanerrorcanberecognizedandspecifiedingreaterdetailbypollingtheerrorqueue.Thepollprovidesaninformativeerrormessage.Thisprocedureistoberecommendedsinceitconsiderablyreducestheproblemsinvolvedwithremotecontrol.
3
QUEStionable status sum bit
ThebitissetifanEVENtbitissetintheQUEStionable status register and the associated ENABlebitissetto1.Asetbitindicatesaquestionableinstrumentstatus,whichcanbespecifiedingreaterdetailbypollingtheQUEStionable status register.
4
MAV bit (message available)
Thebitissetifamessageisavailableintheoutputbufferwhichcanberead.Thisbitcanbeusedtoenabledatatobeautomaticallyreadfromtheinstrumenttothecontroller.
5
ESB bit
Sumbitoftheeventstatusregister.Itissetifoneofthebitsintheeventstatusregisterissetandenabledintheeventstatusenableregister.Settingofthisbitindicatesaseriouserrorwhichcanbespecifiedingreaterdetailbypollingtheeventstatus register.
SCPI Commands R&S®HMO1002 Remote Control
21
Basics
SCPI Programmers Manual
Bit No. Meaning
6
MSS bit (master status summary bit)
Thebitissetiftheinstrumenttriggersaservicerequest.ThisisthecaseifoneoftheotherbitsofthisregistersissettogetherwithitsmaskbitintheservicerequestenableregisterSRE.
7
OPERation status register sum bit
ThebitissetifanEVENtbitissetintheOPERation status register and the associ-ated ENABlebitissetto1.Asetbitindicatesthattheinstrumentisjustperforminganaction.ThetypeofactioncanbedeterminedbypollingtheOPERation status register.
Table 1.8: Meaning of the bits used in the status byte
Event Status Register (ESR) and Event Status Enable Register (ESE)TheESRisdefinedinIEEE488.2.ItcanbecomparedwiththeEVENtpartofaSCPIregister.Theeventstatusregistercanbereadoutusingcommand*ESR?. The ESE corresponds to the ENA-BlepartofaSCPIregister.IfabitissetintheESEandtheassociatedbitintheESRchangesfrom0to1,theESBbitintheSTBisset.TheESEregistercanbesetusingthecommand*ESE andreadusingthecommand*ESE?.
Bit No. Meaning
0Operation Complete
Thisbitissetonreceiptofthecommand*OPCexactlywhenallpreviouscom-mandshavebeenexecuted.
1 Not used
2
Query Error
Thisbitissetifeitherthecontrollerwantstoreaddatafromtheinstrumentwithouthavingsentaquery,orifitdoesnotfetchrequesteddataandsendsnewinstruc-tions to the instrument instead. The cause is often a query which is faulty and hence cannotbeexecuted.
3
Device-dependent Error
Thisbitissetifadevice-dependenterroroccurs.Anerrormessagewithanumberbetween-300and-399orapositiveerrornumber,whichdenotestheerroringrea-ter detail, is entered into the error queue.
4
Execution Error
Thisbitissetifareceivedcommandissyntacticallycorrectbutcannotbeperfor-medforotherreasons.Anerrormessagewithanumberbetween-200and-300,which denotes the error in greater detail, is entered into the error queue.
5
Command Error
Thisbitissetifacommandisreceived,whichisundefinedorsyntacticallyincor-rect.Anerrormessagewithanumberbetween-100and-200,whichdenotestheerror in greater detail, is entered into the error queue.
6User Request
Thisbitissetwhentheinstrumentisswitchedovertomanualcontrol.
7Power On (supply voltage on)
Thisbitissetonswitchingontheinstrument.
Table 1.9: Meaning of the bits used in the event status register
SCPI Commands R&S®HMO1002 Remote Control
22
Basics
SCPI Programmers Manual
STATus:OPERation RegisterIntheCONDitionpart,thisregistercontainsinformationonwhichactionstheinstru-mentisbeingexecuting.IntheEVENtpart,itcontainsinformationonwhichactionstheinstrumenthasexecutedsincethelastreading.ItcanbereadusingthecommandsSTATus:OPERation:CONDition?orSTATus:OPERation[:EVENt]?.TheremotecommandsfortheSTATus:OPERationregisteraredescribedinchapter2.14.1,„STATus:OPERationRegister“, on page 138.
Bit No. Meaning
0ALIGnmentThisbitissetaslongastheinstrumentisperformingaselfalignment.
1SELFtestThisbitissetwhiletheselftestisrunning.
2AUTosetThisbitissetwhiletheinstrumentisperforminganautosetup.
3WTRIggerThisbitissetwhiletheinstrumentiswaitingforthetrigger.
4 to 14 Not used
15 Thisbitisalways0.
Table 1.10: Bits in the STATus:OPERation register
SCPI Commands R&S®HMO1002 Remote Control
23
Basics
SCPI Programmers Manual
STATus:QUEStionable RegisterThisregistercontainsinformationaboutindefinitestateswhichmayoccuriftheunitisoperatedwithoutmeetingthespecifications.ItcanbereadusingthecommandsSTATus:QUEStionable:CONDition and STATus:QUEStionable[:EVENt].
Fig. 1.6: Overview of the STATus:QUEStionable register
Remote ControlR&S® RTM
189User Manual 1305.0595.02 ─ 03
Fig. 12-3: Overview of the STATus:QUEStionable register
Table 12-6: Bits in the STATus:QUEStionable register
Bit No. Meaning
0 to 2 not used
3 COVerloadThis bit is set if a questionable channel overload occurs (see "STATus:QUEStionable:COVerloadregister", on page 190).
4 TEMPeratureThis bit is set if a questionable temperature occurs (see "STATus:QUEStionable:TEMPeratureregister", on page 190).
5 to 7 Not used
8 NOALigndataThis bit is set if no alignment data is available - the instrument is uncalibrated.
Basics
SCPI Commands R&S®HMO1002 Remote Control
24
Basics
SCPI Programmers Manual
Bit No. Meaning
0 to 2 Not used
3COVerloadThisbitissetifaquestionablechanneloverloadoccurs(see„STATus:QUEStionable:COVerloadregis-ter“,onpage24).
4TEMPeratureThisbitissetifaquestionabletemperatureoccurs(see„STATus:QUEStionable:TEMPeratureregister“, on page 24).
5 to 7 Not used
8NOALigndataThisbitissetifnoalignmentdataisavailable-theinstrumentisuncalibrated.
9LIMitThisbitissetifalimitvalueisviolated(see„STATus:QUEStionable:LIMitregister“,onpage25).
10 to 11 Not used
12MASKThisbitissetifamaskvalueisviolated(see„STATus:QUEStionable:MASKregister“,onpage25).
13 to 14 Not used
15 Thisbitisalways0.
Table 1.11: Bits in the STATus:QUEStionable register
STATus:QUEStionable:COVerload registerThisregistercontainsallinformationaboutoverloadofthechannels.Thebitissetiftheassignedchannelisoverloaded.
Bit No. Meaning
0 CHANnel1
1 CHANnel2
Table 1.12: Bits in the STATus:QUEStionable:COVerload register
STATus:QUEStionable:TEMPerature registerThisregistercontainsinformationabouttheinstrument‘stemperature.
Bit No. Meaning
0TEMP WARNThisbitissetifatemperaturewarningonchannel1,2,3or4occured.
1TEMP ERRorThisbitissetifatemperatureerroronchannel1,2,3or4occured.
Table 1.13: Bits in the STATus:QUEStionable:TEMPerature register
SCPI Commands R&S®HMO1002 Remote Control
25
Basics
SCPI Programmers Manual
STATus:QUEStionable:LIMit registerThisregistercontainsinformationabouttheobservanceofthelimitsofmeasurements.Thisbit is set if the limits of the main or additional measurement of the assigned measurement are violated.
Bit No. Meaning
0 MEAS1
1 MEAS2
Table 1.14: Bits in the STATus:QUEStionable:LIMit register
STATus:QUEStionable:MASK registerThisregistercontainsinformationabouttheviolationofmasks.Thisbitissetiftheassignedmaskisviolated.
Bit No. Meaning
0 MASK1
Table 1.15: Bits in the STATus:QUEStionable:MASK register
1.6.4 Application of the Status Reporting System
Thepurposeofthestatusreportingsystemistomonitorthestatusofoneorseveraldevicesinameasuringsystem.Todothisandreactappropriately,thecontrollermustreceiveandevaluatetheinformationofalldevices.Thefollowingstandardmethodsareused:
• Servicerequest(SRQ)initiatedbytheinstrument• Serialpollofalldevicesinthebussystem,initiatedbythecontrollerinordertofindoutwho
sent a SRQ and why• Parallelpollofalldevices• Queryofaspecificinstrumentstatusbymeansofcommands• Query of the error queue
Service RequestUndercertaincircumstances,theinstrumentcansendaservicerequest(SRQ)tothecontroller.Usuallythisservicerequestinitiatesaninterruptatthecontroller,towhichthecontrolprogramcanreactappropriately.Asevidentfromfigure1.5,anSRQisalwaysinitiatedifoneorseveralofbits2,3,4,5or7ofthestatusbytearesetandenabledintheSRE.Eachofthesebitscombinestheinformationofafurtherregister,theerrorqueueortheoutputbuffer.TheENABlepartsofthestatusregisterscanbesetsuchthatarbitrarybitsinanarbitrarystatusregisterinitiateanSRQ.Inordertomakeuseofthepossibilitiesoftheservicerequesteffectively,allbitsshouldbesetto„1“inenableregistersSREandESE.
TheSRQistheonlypossibilityfortheinstrumenttobecomeactiveonitsown.Eachcontrollerprogramshouldcausetheinstrumenttoinitiateaservicerequestiferrorsoccur.Theprogramshouldreactappropriatelytotheservicerequest.
SCPI Commands R&S®HMO1002 Remote Control
26
Basics
SCPI Programmers Manual
Serial PollInaserialpoll,justaswithcommand*STB,thestatusbyteofaninstrumentisqueried.However,thequeryisrealizedviainterfacemessagesandisthusclearlyfaster.TheserialpollmethodisdefinedinIEEE488.1andusedtobetheonlystandardpossibilityfordifferentinstrumentstopollthestatusbyte.ThemethodalsoworksforinstrumentswhichdonotadheretoSCPIorIEEE488.2.Theserialpollismainlyusedtoobtainafastoverviewofthestateofseveralinstrumentsconnected to the controller.
Query of an instrument statusEachpartofanystatusregistercanbereadusingqueries.Therearetwotypesofcommands:
• Thecommoncommands*ESR?,*IDN?,*IST?,*STB?querythehigher-levelregisters.• ThecommandsoftheSTATussystemquerytheSCPIregisters(STATus:QUEStionable...)
Thereturnedvalueisalwaysadecimalnumberthatrepresentsthebitpatternofthequeriedre-gister.Thisnumberisevaluatedbythecontrollerprogram.QueriesareusuallyusedafteranSRQinordertoobtainmoredetailedinformationonthecauseoftheSRQ.
Decimal representation of a bit patternTheSTBandESRregisterscontain8bits,theSCPIregisters16bits.Thecontentsofastatusregisterarespecifiedandtransferredasasingledecimalnumber.Tomakethispossible,eachbitisassignedaweightedvalue.Thedecimalnumberiscalculatedasthesumoftheweightedvaluesofallbitsintheregisterthataresetto1.
Fig. 1.7: Decimal representation of a bit patter
Example: Thedecimalvalue40=32+8indicatesthatbitsno.3and5inthestatusregister(e.g.theQUE-StionablestatussummarybitandtheESBbitintheSTatusByte)areset.
Error QueueEach error state in the instrument leads to an entry in the error queue. The entries of the error queuearedetailedplaintexterrormessagesthatcanbelookedupintheErrorLogorqueriedviaremotecontrolusingSYSTem:ERRor[:NEXT]? or SYSTem:ERRor:ALL?. Each call of SYSTem:ERRor[:NEXT]?providesoneentryfromtheerrorqueue.Ifnoerrormessagesarestoredthereanymore,theinstrumentrespondswith0,„Noerror“.
TheerrorqueueshouldbequeriedaftereverySRQinthecontrollerprogramastheentriesde-scribethecauseofanerrormorepreciselythanthestatusregisters.Especiallyinthetestphaseofacontrollerprogramtheerrorqueueshouldbequeriedregularlysincefaultycommandsfromthe controller to the instrument are recorded there as well.
Remote ControlR&S® RTM
192User Manual 1305.0595.02 ─ 03
The serial poll method is defined in IEEE 488.1 and used to be the only standard possibility for different instruments to poll the status byte. The method also works for instru-ments which do not adhere to SCPI or IEEE 488.2.
The serial poll is mainly used to obtain a fast overview of the state of several instruments connected to the controller.
Query of an instrument status
Each part of any status register can be read using queries. There are two types of commands:
● The common commands *ESR?, *IDN?, *IST?, *STB? query the higher-level registers.
● The commands of the STATus system query the SCPI registers (STATus:QUEStionable...)
The returned value is always a decimal number that represents the bit pattern of thequeried register. This number is evaluated by the controller program.
Queries are usually used after an SRQ in order to obtain more detailed information on the cause of the SRQ.
Decimal representation of a bit pattern
The STB and ESR registers contain 8 bits, the SCPI registers 16 bits. The contents of a status register are specified and transferred as a single decimal number. To make this possible, each bit is assigned a weighted value. The decimal number is calculated as the sum of the weighted values of all bits in the register that are set to 1.
Example: The decimal value 40 = 32 + 8 indicates that bits no. 3 and 5 in the status register (e.g. the QUEStionable status summary bit and the ESB bit in the STatus Byte ) are set.
Error Queue
Each error state in the instrument leads to an entry in the error queue. The entries of the error queue are detailed plain text error messages that can be looked up in the Error Log or queried via remote control using SYSTem:ERRor[:NEXT]? or SYSTem:ERRor:ALL?. Each call of SYSTem:ERRor[:NEXT]? provides one entry from the error queue. If no error messages are stored there any more, the instrument responds with 0, "No error".
The error queue should be queried after every SRQ in the controller program as the entries describe the cause of an error more precisely than the status registers. Especially
Basics
SCPI Commands R&S®HMO1002 Remote Control
27
Basics
SCPI Programmers Manual
1.6.5 Reset Values of the Status Reporting System
Thefollowingtablecontainsthedifferentcommandsandeventscausingthestatusreportingsystemtobereset.Noneofthecommands,except*RST and SYSTem:PRESet,influencethefunctional instrument settings. In particular, DCL does not change the instrument settings.
Event Switching on supply-voltage Power-On-Sta-tus-Clear
DCL, SDC(DeviceClear,SelectedDevice-Clear)
*RST orSYS-Tem:PRE-Set
STA-Tus:PRE-Set
*CLS
Effect 0 1
Clear STB, ESR - yes - - - yes
Clear SRE, ESE - yes - - - -
Clear EVENt parts of the re-gisters
- yes - - -yes
Clear ENABle parts of all OPERation and QUEStionable registers; Fill ENABle parts of all other registers with „1“.
- yes - - yes -
Fill PTRansition parts with „1“; Clear NTRansition parts
- yes - - yes -
Clear error queue yes yes - - - yes
Clear output buffer yes yes yes 1) 1) 1)
Clear command processing and input buffer
yes yes yes - - -
1)Thefirstcommandinacommandlinethatimmediatelyfollowsa<PROGRAMMESSAGETERMINATOR>clearstheoutputbuffer.
Table 1.16: Resest of the status reporting system
1.7 General Programming Recommendations
Initial instrument status before changing settingsManualoperationisdesignedformaximumpossibleoperatingconvenience.Incontrast,thepriorityofremotecontrolisthe„predictability“oftheinstrumentstatus.Thus,whenacommandattemptstodefineincompatiblesettings,thecommandisignoredandtheinstrumentstatusremains unchanged, i.e. other settings are not automatically adapted. Therefore, control pro-gramsshouldalwaysdefineaninitialinstrumentstatus(e.g.usingthe*RSTcommand)andthenimplement the required settings.
Command sequenceAsageneralrule,sendcommandsandqueriesindifferentprogrammessages.Otherwise,theresultofthequerymayvarydependingonwhichoperationisperformedfirst(seealsoPre-ventingOverlappingExecution).
Reacting to malfunctionsTheservicerequestistheonlypossibilityfortheinstrumenttobecomeactiveonitsown.Eachcontrollerprogramshouldinstructtheinstrumenttoinitiateaservicerequestincaseofmalfunc-tion.Theprogramshouldreactappropriatelytotheservicerequest.
SCPI Commands R&S®HMO1002 Remote Control
28
Basics
SCPI Programmers Manual
Error queuesTheerrorqueueshouldbequeriedaftereveryservicerequestinthecontrollerprogramastheentriesdescribethecauseofanerrormorepreciselythanthestatusregisters.Especiallyinthetestphaseofacontrollerprogramtheerrorqueueshouldbequeriedregularlysincefaultycom-mands from the controller to the instrument are recorded there as well.
SCPI Commands R&S®HMO1002 Remote Control
29
Command Reference
SCPI Programmers Manual
2 Command ReferenceThischapterprovidesthedescriptionofallremotecommandsavailableforR&S®HMO1002.Thecommands are sorted according to the menu structure of the instrument. A list of commands in alphabeticalorderistgiveninthe„ListofCommands“attheendofthisdocumentation.
2.1 Common Commands
CommoncommandsaredescribedintheIEEE488.2(IEC625-2)standard.Thesecommandshavethesameeffectandareemployedinthesamewayondifferentdevices.Theheadersofthesecommandsconsistof„*“followedbythreeletters.Manycommoncommandsarerelatedto the Status Reporting System.
Availablecommoncommands:*CAL ........................................................................................................................................... 29*CLS ........................................................................................................................................... 29*ESE<Value> ............................................................................................................................. 30*ESR? ......................................................................................................................................... 30*IDN? .......................................................................................................................................... 30*OPC ........................................................................................................................................... 30*OPT? ......................................................................................................................................... 30*PSC<Action> ........................................................................................................................... 31*RST .......................................................................................................................................... 31*SRE<Contents> ....................................................................................................................... 31*STB? ........................................................................................................................................ 31*TRG .......................................................................................................................................... 31*TST? ......................................................................................................................................... 32*WAI .......................................................................................................................................... 32
*CAL CalibrationQuery
Initiatesacalibrationoftheinstrumentandsubsequentlyqueriesthecalibrationstatus.Re-sponses > 0 indicate errors.
*CLS CLear Status
Setsthestatusbyte(STB),thestandardeventregister(ESR)andtheEVENtpartoftheQUEStio-nableandtheOPERationregisterstozero.Thecommanddoesnotalterthemaskandtransitionpartsoftheregisters.Itclearstheoutputbuffer.
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
30
Command Reference
SCPI Programmers Manual
*ESE <Value> EventStatusEnable
Setstheeventstatusenableregistertothespecifiedvalue.Thequeryreturnsthecontentsoftheeventstatusenableregisterindecimalform.
Parameters:<Value> Range: 0 to 255
*ESR? EventStatusReadReturnsthecontentsoftheeventstatusregisterindecimalformandsubsequentlysetstheregister to zero.
Return values: <Contents> Range: 0 to 255
Usage: Query only
*IDN? IDeNtification:returnstheinstrumentidentification.
Return values:<ID> Rohde&Schwarz,<devicetype>,<serialnumber>,<firmwareversion>
Example: Rohde&Schwarz,HMO1002,020720087,05.450
Usage: Query only
*OPC OPerationComplete
Setsbit0intheeventstatusregisterwhenallprecedingcommandshavebeenexecuted.Thisbitcanbeusedtoinitiateaservicerequest.Thequeryformwritesa„1“intotheoutputbufferassoonasallprecedingcommandshavebeenexecuted.Thisisusedforcommandsynchronization.
*OPT? OPTionidentificationquery
Queriestheoptionsincludedintheinstrument.Foralistofallavailableoptionsandtheirdescrip-tionrefertotheCD-ROM.
Return values: <Options> Thequeryreturnsalistofoptions.Theoptionsarereturnedatfixed positionsinacomma-separatedstring.Azeroisreturnedforoptions that are not installed.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
31
Command Reference
SCPI Programmers Manual
*PSC <Action> PoweronStatusClear
DetermineswhetherthecontentsoftheENABleregistersarepreservedorresetwhentheinstrumentisswitchedon.Thusaservicerequestcanbetriggeredwhentheinstrumentisswitchedon,ifthestatusregistersESEandSREaresuitablyconfigured.Thequeryreadsoutthecontentsofthe„power-on-status-clear“flag.
Parameters: <Action> 0 | 1 0:Thecontentsofthestatusregistersarepreserved. 1: Resets the status registers.
*RST ReSeT
Setstheinstrumenttoadefineddefaultstatus.Thedefaultsettingsareindicatedinthedescripti-on of commands.
Usage: Setting only
*SRE <Contents> ServiceRequestEnable
Setstheservicerequestenableregistertotheindicatedvalue.Thiscommanddeterminesunderwhichconditionsaservicerequestistriggered.
Parameters: <Contents> Contentsoftheservicerequestenableregisterindecimalform. Bit6(MSSmaskbit)isalways0. Range: 0 to 255
*STB? STatus Byte query
Readsthecontentsofthestatusbyteindecimalform.
Usage: Query only
*TRG TRiGger
Triggersallactionswaitingforatriggerevent.Inparticular,*TRGgeneratesamanualtriggersignal (Manual Trigger). This common command complements the commands of the TRIGger subsystem.
Usage: Event
SCPI Commands R&S®HMO1002 Remote Control
32
Command Reference
SCPI Programmers Manual
*TST? self TeST query
Triggersselftestsoftheinstrumentandreturnsanerrorcodeindecimalform(seeServiceManu-alsuppliedwiththeinstrument).„0“indicatesnoerrorsoccured.
Usage: Query only
*WAI WAIt to continue
Preventsservicingofthesubsequentcommandsuntilallprecedingcommandshavebeenexe-cutedandallsignalshavesettled(seealsocommandsynchronizationand*OPC).
Usage: Event
2.2 Acquisition and Setup
Starting and Stopping Acquisition .........................................................................................32Time Base .............................................................................................................................33Acquisition ............................................................................................................................35Vertical ..................................................................................................................................40Logic Channel .......................................................................................................................44WaveformData .....................................................................................................................46Probes ...................................................................................................................................49
2.2.1 Starting and Stopping Acquisition
RUN ........................................................................................................................................... 32RUNContinous .......................................................................................................................... 32SINGle ....................................................................................................................................... 33RUNSingle ................................................................................................................................. 33STOP ......................................................................................................................................... 33
RUN Starts the continuous acquisition.
Usage: Event Asynchronous command
RUNContinous Same as RUN.
Usage: Event Asynchronous command
SCPI Commands R&S®HMO1002 Remote Control
33
Command Reference
SCPI Programmers Manual
SINGle Startsadefinednumberofacquisitioncycles.
Usage: Event Asynchronous command
RUNSingle Same as SINGle.
Usage: Event Asynchronous command
STOP Stops the running acquistion.
Usage: Event Asynchronous command
2.2.2 Time Base
TIMebase:SCALe<TimeScale> ................................................................................................. 33TIMebase:RATime? ..................................................................................................................... 33TIMebase:ACQTime<AcquisitionTime> .................................................................................... 34TIMebase:RANGe<AcquisitionTime> ....................................................................................... 34TIMebase:DIVisions? ................................................................................................................. 34TIMebase:POSition<Offset> ..................................................................................................... 34TIMebase:REFerence<ReferencePoint> ................................................................................... 34
TIMebase:SCALe <TimeScale> Setsthehorizontalscaleforallchannelandmathwaveforms.
Parameters: <TimeScale> Range: 2E-9to50 Defaultunit: s/div
*RST:100E-6
TIMebase:RATime? Queries the real acquisition time used in the hardware. If FFT analysis is performed, the valuecandifferfromtheadjustedacquisitiontime(TIMebase:ACQTime).
Return values: <HWAcqTime> Defaultunit: s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
34
Command Reference
SCPI Programmers Manual
TIMebase:ACQTime <AcquisitionTime> Definesthetimeofoneacquisition,thatisthetimeacrossthe12divisionsofthediagram: Timebase Scale*12.
Parameters: <AcquisitionTime> Range: 24 ns to 600 s Defaultunit: s
TIMebase:RANGe <AcquisitionTime> Definesthetimeofoneacquisition,thatisthetimeacrossthe12divisionsofthediagram: Timebase Scale*12.
Parameters: <AcquisitionTime> Range: 24 ns to 600 s Defaultunit: s
TIMebase:DIVisions? Queriesthenumberofhorizontaldivisionsonthescreen.
Return values: <HorizDivCount> Range: 12
Usage: Query only
TIMebase:POSition <Offset> Definesthetriggerposition(triggeroffset)-thetimeintervalbetweentriggerpointandreferencepointtoanalizethesignalsometimebeforeorafterthetriggerevent.
See also: TIMebase:REFerence
Parameters:<Offset> Range: -500to500 Defaultunit: s
*RST:0
TIMebase:REFerence <ReferencePoint> Sets the reference point of the time scale (Time Reference) in % of the display. The reference pointdefineswhichpartofthewaveformisshown.Ifthetriggerpositioniszero,thetriggerpoint matches the reference point. See also: TIMebase:POSition
Parameters: <ReferencePoint> Range: 10to90 Defaultunit: %
*RST:50
SCPI Commands R&S®HMO1002 Remote Control
35
Command Reference
SCPI Programmers Manual
2.2.3 Acquisition
AUToscale ................................................................................................................................. 35ACQuire:MODE<AcquisitionMode> ......................................................................................... 35ACQuire:INTerpolate <Interpolation> ......................................................................................... 36ACQuire:AVERage:COUNt<AverageCount> ............................................................................. 36ACQuire:WRATe<WaveformRate> ........................................................................................... 36CHANnel<m>:TYPE<DecimationMode> ................................................................................. 37CHANnel<m>:ARIThmetics <TrArithmetic> .............................................................................. 37TIMebase:ROLL:ENABle<Roll> ................................................................................................ 38ACQuire:FILTer:FREQency <FilterFrequency> ........................................................................... 38ACQuire:POINts:ARATe? ............................................................................................................ 38ACQuire:SRATe? ......................................................................................................................... 38ACQuire:STATe <Aquisition State> ............................................................................................ 39ACQuire:TYPE<AquisitionType> .............................................................................................. 39ACQuire:PEAKdetect<PeakDetect> .......................................................................................... 39ACQuire:HRESolution <HighRes> ............................................................................................. 40
AUToscale Performsanautosetprocess:analyzestheenabledchannelsignals,andobtainsappropriatehorizontal,vertical,andtriggersettingstodisplaystablewaveforms.
Usage: Event Asynchronous command
ACQuire:MODE <AcquisitionMode> SelectsthemethodofaddingwaveformpointstothesamplesoftheADCinordertofilltherecord length.
Parameters: <AcquisitionMode> RTIMe | ETIMe
RTIMe (Real Time Mode) Atslowtimebasesettingsthesampledpointsoftheinputsignalare usedtobuildthewaveform,nowaveformpointsareadded.Withfast timebasesettings,thesamplerateishigherthantheADCsamplerate. WaveformsamplesareaddedtotheADCsampleswithsin(x)/xinter- polation.
ETIMe (Equivalent time) Thewaveformpointsaretakenfromseveralacquisitionsofarepetive signal at a different time in relation to the trigger point.
*RST:RTIM
SCPI Commands R&S®HMO1002 Remote Control
36
Command Reference
SCPI Programmers Manual
ACQuire:INTerpolate <Interpolation> Definestheinterpolationmode.
Parameters: <Interpolation> LINear|SINX|SMHD
LINear: Linearinterpolationbetweentwoadjacentsamplepoints. SINX: Interpolationbymeansofasin(x)/xcurve. SMHD: Sample&Holdcausesahistogram-likeinterpolation.
*RST:SINX
ACQuire:AVERage:COUNt <AverageCount> Definesthenumberofwaveformsusedtocalculatetheaveragewaveform.Thehigherthenumber,thebetterthenoiseisreduced.
Parameters: <AverageCount> Onlynumbersfromthe2ndprogressionarepermitted.
ACQuire:WRATe <WaveformRate> Definesthemodetosetthesamplerate(samplespersecondsavedinthememory)andthewaveformacquisitionrate(waveformspersecond).
Parameters: <WaveformRate> AUTO|MWAVeform|MSAMples
AUTO Todisplaythebestwaveform,theinstrumentselectstheoptimum combinationofwaveformacquisitionrateandsamplerateusingthefull memory depth.
MWAVeform Maximumwaveformrate:Theinstrumentcombinessamplerateand memorydepthtoacquireatmaximumwaveformacquisitionrate.In combinationwithpersistencefuction,themodecandisplayraresignal anomalies.
MSAMples Maximumsamplerate:Theinstrumentacquiresthesignalatmaximum samplerateandusesthefullmemorydepth.Theresultisawaveform withmaximumnumberofwaveformsamples,highdegreeofaccuracy, and low risk of aliasing.
*RST:AUTO
SCPI Commands R&S®HMO1002 Remote Control
37
Command Reference
SCPI Programmers Manual
CHANnel<m>:TYPE <DecimationMode> SelectsthemethodtoreducethedatastreamoftheADCtoastreamofwaveformpointswithlower sample rate.
Suffix: <m> The command affects all channels regardless of the indicated channel number.Thesuffixcanbeomitted.
Parameters: <DecimationMode> SAMPle|PDETect|HRESolution
SAMPle Input data is acquired with a sample rate which is aligned to the time base(horizontalscale)andtherecordlength.
PDETect (Peak Detect) Theminimumandthemaximumofnsamplesinasampleintervalare recordedaswaveformpoints.
HRESolution (High Resolution) Theaverageofnsamplepointsisrecordedaswaveformpoint.
*RST:SAMPle
CHANnel<m>:ARIThmetics <TrArithmetic> Selectsthemethodtobuildtheresultingwaveformfromseveralconsecutiveacquisitionsofthesignal.
Suffix: <m> The command affects all channels regardless of the indicated channel number.Thesuffixcanbeomitted.
Parameters: <TrArithmetic> OFF|ENVelope|AVERage|FILTer
OFF The data of the current acquisition is recorded according to the decimation settings.
ENVelope Detectstheminimumandmaximumvaluesinansampleintervalovera numberofacquisitions.
AVERage Calculatestheaveragefromthedataofthecurrentacquisitionanda numberofacquisitionsbefore.Thenumberofusedacquisitionsisset with ACQuire:AVERage:COUNt.
SCPI Commands R&S®HMO1002 Remote Control
38
Command Reference
SCPI Programmers Manual
FILTer Setsalow-passfilterwith3dbattenuationataconfigurablelimitfre quency set with ACQuire:FILTer:FREQency.Thefilterremoveshigher frequencies from the channel signals.
*RST:OFF
TIMebase:ROLL:ENABle <Roll> Enablestherollmode.
Parameters: <Roll> ON|OFF
*RST:OFF
ACQuire:FILTer:FREQency <FilterFrequency> Sets the limit frequency if CHANnel<m>:ARIThmeticsissetto„FILTer“.
Parameters: <FilterFrequency> Limit frequency with 3 dB attenuation Defaultunit:Hz
ACQuire:POINts:ARATe? RetrievesthesamplerateoftheADC,thatisthenumberofpointsthataresampledbytheADCin one second.
Return values: <AcquisitionRate> ADCsamplerate Range:1E+9
Usage: Query only
ACQuire:SRATe? Returnsthesamplerate,thatisthenumberofrecordedwaveformsamplespersecond.
Return values: <SampleRate> Range:1E+9
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
39
Command Reference
SCPI Programmers Manual
ACQuire:STATe <Aquisition State> Sets the aquisition state of the instrument.
Parameters: <AquisitionState> RUN|STOP|COMPlete|BREak
RUN The aquisition is running.
STOP Theacquisitionwillstopiffinished.
COMPlete Thecurrentaquisitionisfinishedandcompleted.
BREak Set=break/interruptofcurrentacquisition Read=acquisitionisfinishedbutinterrupted
*RST:RUN
ACQuire:TYPE <Aquisition Type> Sets the type of the aquisition mode.
Parameters:<AquisitionType> REFresh|ROLL|AVERage|ENVelope|FILTer
REFresh The aquisitions are displayed as they are done.
ROLL The aquisitions are done in roll mode.
AVERage Theaquisitionsareaveraged.
FILTer Setsalow-passfilterwith3dbattenuationataconfigurablelimit frequency
*RST:OFF
ACQuire:PEAKdetect <PeakDetect> Enablesthepeakdetection.
Parameters: <PeakDetect> AUTO|OFF
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
40
Command Reference
SCPI Programmers Manual
ACQuire:HRESolution <HighRes> Enablesthehighresolutionmode.
Parameters: <HighRes> AUTO|OFF
*RST:OFF
2.2.4 Vertical
CHANnel<m>:STATe <State> .................................................................................................... 40CHANnel<m>:COUPling<Coupling> ....................................................................................... 40CHANnel<m>:SCALe <Scale> .................................................................................................. 41CHANnel<m>:RANGe <Range> ............................................................................................... 41CHANnel<m>:POSition<Position> ........................................................................................... 41CHANnel<m>:OFFSet<Offset> ................................................................................................ 41CHANnel<m>:BANDwidth<BandwidthLimit> ......................................................................... 42CHANnel<m>:POLarity<Polarity> ............................................................................................ 42CHANnel<m>:OVERload<Overload> ....................................................................................... 42CHANnel<m>:SKEW<Skew> .................................................................................................. 43CHANnel<m>:THReshold <Threshold> .................................................................................... 43CHANnel<m>:LABel<Label> ................................................................................................... 43CHANnel<m>:LABel:STATe <State> ......................................................................................... 43
CHANnel<m>:STATe <State> Switches the channel signal on or off.
Suffix:<m> Selects the input channel (1, 2).
Parameters: <State> ON|OFF
CHANnel<m>:COUPling <Coupling> Selects the connection of the indicated channel signal.
Suffix:<m> Selects the input channel (1, 2).
Parameters:<Coupling> DCLimit|ACLimit|GND
DCLimit (DCcoupling) ACLimit (AC coupling) GND (Ground)
*RST:DCL
SCPI Commands R&S®HMO1002 Remote Control
41
Command Reference
SCPI Programmers Manual
CHANnel<m>:SCALe <Scale> Setstheverticalscalefortheindicatedchannel.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Scale> ScalevalueinVoltsperdiv. Range:1E-3to10 *RST:5E-3
CHANnel<m>:RANGe <Range> Setsthevoltagerangeacrossthe8verticaldivisionsofthediagram.Usethecommandalterna-tivlyinsteadofCHANnel<m>:SCALe.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Range> VoltagerangevalueinVolt(V). Range:8E-3to80
*RST:4E-2
CHANnel<m>:POSition <Position> Setstheverticalpositionoftheindicatedchannelanditshorizontalaxisinthewindow.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Position> Positionvalue,givenindivisions. Range:-5to5
*RST:0.00E+00
CHANnel<m>:OFFSet <Offset> Theoffsetvoltageissubtractedtocorrectanoffset-affectedsignal.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Offset> OffsetvalueinV.
*RST:0.00E+00
SCPI Commands R&S®HMO1002 Remote Control
42
Command Reference
SCPI Programmers Manual
CHANnel<m>:BANDwidth <BandwidthLimit> Selectsthebandwidthlimitfortheindicatedchannel.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <BandwidthLimit> FULL | B20
FULL: Fullbandwidth. B20: Bandwidth limit 20 MHz
*RST:FULL
CHANnel<m>:POLarity <Polarity> Turnstheinversionofthesignalamplitudeonoroff.Toinvertmeanstoreflectthevoltagevaluesofallsignalcomponentsagainstthegroundlevel.Inversionaffectsonlythedisplayofthesignalbutnotthetrigger.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Polarity> NORMal|INVerted
*RST:NORM
CHANnel<m>:OVERload <Overload> Retrievestheoverloadstatusofthespecifiedchannelfromthestatusbit.Whentheoverloadproblemissolved,thecommandresetsthestatusbit.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Overload> ON|OFF UseOFFtoresettheoverloadstatusbit.
*RST:OFF
Example: CHANnel2:OVERload? Queriestheoverloadstatusofchannel2. CHANnel2:OVERloadOFF Resetstheoverloadstatusbit.
SCPI Commands R&S®HMO1002 Remote Control
43
Command Reference
SCPI Programmers Manual
CHANnel<m>:SKEW <Skew> Skewordeskewcompensatesdelaydifferencesbetweenchannelscausedbythedifferentlengthofcables,probes,andothersources.Correctdeskewvaluesareimportantforaccuratetriggering.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Skew> Deskewvalueins.
CHANnel<m>:THReshold <Threshold> Thresholdvaluefordigitizationofanalogsignals.Ifthesignalvalueishigherthanthethreshold,thesignalstateishigh(1ortrueforthebooleanlogic).Otherwise,thesignalstateisconsideredlow(0orfalse)ifthesignalvalueisbelowthethreshold.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Threshold> Defaultvaluesare: TTL 1,4 V ECL -1,3V CMOS 2,5 V
CHANnel<m>:LABel <Label> Setthelabelfortheinputchannel.
Suffix: <m> Selects the input channel (1, 2).
Parameters: <Label> Stringvalue“xxxxxxxx“withmaximum8ASCIIcharacters.
CHANnel<m>:LABel:STATe <State> Switchesthelabelofthechannelonoroff
Suffix: <m> Selects the input channel (1, 2).
Parameters:<State> ON|OFF
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
44
Command Reference
SCPI Programmers Manual
2.2.5 Logic Channel
LOGic<I>:POSition<Position> .................................................................................................. 44LOGic<I>:SIZE<Size> ............................................................................................................... 44LOGic<I>:STATe<state> ............................................................................................................ 44LOGic<I>:LABel<Label> ........................................................................................................... 44LOGic<I>:LABel:State<Label> .................................................................................................. 45POD:THReshold<ThresholdMode> ......................................................................................... 45POD:THReshold:UDLevel<u><ThresholdLevel> ...................................................................... 45POD:State<State> .................................................................................................................... 45
LOGic<I>:POSition <Position> Set the position of a logic channel.
Suffix: <I> Selects the logic channel (0...7).
Parameters: <Position> Positionvalueindivisions.
LOGic<I>:SIZE <Size> Set the size of the display of the logic channel.
Suffix: <I> Selects the logic channel (0...7).
Parameters: <Size> SMALl|MEDium|LARGe
*RST:SMAL
LOGic<I>:STATe <state> Switches the channel signal on or off.
Suffix: <I> Selects the logic channel (0...7).
Parameters: <State> ON|OFF
LOGic<I>:LABel <Label> Setthelabelforthelogicchannel.
Suffix: <I> Selects the logic channel (0...7).
Parameters: <Label> Stringvalue“xxxxxxxx“withmaximum8ASCIIcharacters.
SCPI Commands R&S®HMO1002 Remote Control
45
Command Reference
SCPI Programmers Manual
LOGic<I>:LABel:State <Label> Switchesthelabelofthelagicchannelonoroff.
Suffix: <I> Selects the logic channel (0...7).
Parameters: <Label> ON|OFF
POD:THReshold <Threshold Mode> ThresholdModeforLogicPod.Ifthesignalvalueishigherthanthethreshold,thesignalstateishigh(1ortrueforthebooleanlogic).Otherwise,thesignalstateisconsideredlow(0orfalse)ifthesignalvalueisbelowthethreshold.
Parameters: <ThresholdMode> TTL|ECL|CMOS|USER1|USER2
TTL TTLlevel,setto1.4V ECL ECLlevel,setto-1.3V CMOS CMOSlevel,setto2.5V USER1USER1level,canbesetwithPOD:THReshold:UDLevel<u>. USER2USER2level,canbesetwithPOD:THReshold:UDLevel<u>.
POD:THReshold:UDLevel<u> <Threshold Level> Settheuserhighlevelthresholdforthepod.
Suffix: <u> Select the User setting. (USER1, USER2)
Parameters: <ThresholdLevel> ThresholdlevelinV. Range:-2to8
POD:State <State> SwitchesthePodonoroff.
Parameters: <State> ON|OFF
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
46
Command Reference
SCPI Programmers Manual
2.2.6 Waveform Data
CHANnel<m>:DATA? ................................................................................................................. 46CHANnel<m>:DATA:HEADer? ................................................................................................... 46CHANnel<m>:DATA:ENVelope? ................................................................................................ 47CHANnel<m>:DATA:ENVelope:HEADer? .................................................................................. 47CHANnel<m>:DATA:POINts<Points> ....................................................................................... 48
CHANnel<m>:DATA? Returnsthedataofthechannelwaveformpoints.ThewaveformsdatacanbeusedinMATLAB,forexample.Forenvelopewaveforms,usetheCHANnel<m>:DATA:ENVelope command.
Suffix: <m> Selects the input channel (1, 2).
Return values: <Data> Comma-separatedlistofverticalvalues(voltagesofrecordedwaveform samples.
Example: CHAN1:DATA? -0.125000,-0.123016,-0.123016,-0.123016,-0.123016,-0.123016,...
Usage: Query only
CHANnel<m>:DATA:HEADer? Returnsinformationonthechannelwaveform.Forenvelopewaveforms,usetheCHANnel<m>:DATA:ENVelope:HEADer command.
Position Meaning Example
1 XStart in s -9.477E-008=-94,77ns
2 XStop in s 9.477E-008=94,77ns
3 RecordlengthofthewaveforminSamples 200000
4 Numberofvaluespersampleinterval,usually1. 1
Table 2.1: Header data
Suffix: <m> Selects the input channel (1, 2).
Return values: <DataHeader> Comma-separatedvaluelist
Example: -9.477E-008,9.477E-008,200000,1
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
47
Command Reference
SCPI Programmers Manual
CHANnel<m>:DATA:ENVelope? Returnsthedataoftheenvelope.Theenvelopeconsistsoftwowaveforms.Usethiscommandonlyforenvelopewaveforms.forallotherchannelwaveformsuseCHANnel<m>:DATA.
Suffix: <m> Selects the input channel (1, 2).
Return values: <Data> Comma-separatedlistofverticalvalues(voltagesofenvelopepoints). Thelistcontainstwovaluesforeachsampleinterval.
Usage: Query only
CHANnel<m>:DATA:ENVelope:HEADer? Returnsinformationontheenvelopewaveform.Usethiscommandonlyforenvelopewave-forms.forallotherchannelwaveformsuseCHANnel<m>:DATA:HEADer.
Position Meaning Example
1 XStart in s -9.477E-008=-94,77ns
2 XStop in s 9.477E-008=94,77ns
3 NumberofSamples 1200
4Numberofvaluespersampleinterval.Forenvelopewaveformsthevalueis20.
2
Table 2.2: Header data
Suffix: <m> Selects the input channel (1, 2).
Return values: <DataHeader> Comma-separatedvaluelist
Example: -9.477E-008,9.477E-008,1200,2
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
48
Command Reference
SCPI Programmers Manual
CHANnel<m>:DATA:POINts <Points> Asasetting,thecommandselectsarangeofsamples.Asaquery,itreturnsthenumberofsamplesfortheselectedrange.TogetcorrectresultswithsettingsMAXandDMAX,theacqui-sitionmustnotrunwhenthecommandisused.Toacquireconsistentandvaliddata,usetheSINGlecommandbefore.DonotcancelarunningacquisitionwithSTOPbecausethewaveformdatamightbeincompleteorincorrect.
Suffix: <m> Selects the input channel (1, 2).
Return values: <Points> Numberofdatapointsintheselectedrange(samples).Thenumberof datapointsisdependingonthetimebaseandchannelsettings.
Setting Parameters: <Points> DEFault|MAXimum|DMAXimum Sets the range for the query.
DEFault Waveformsamplesdisplayedonthescreen.
MAXimum Rangeisthecompletememory(onlyavailablewithmaximumsample rateandSTOPmode).
NOTICE The entire oscilloscope memory can only be read out in STOP mode if the maximum
sampling has been activated in the ACQUIRE menu.
DMAXimum (Display Maximum) Numberofsamplesinthecurrentwaveformrecord.
Example: The instrument recorded 10000 samples. 6000 of these samples apply tothescreen.Tocreatethedisplaypoints,every6pointsarecombined toaMIN-MAXpair,and1000ofthesedatapairsaredisplayedonthe screen.ForDEFault,2000isreturned(1000datapairs).DMAXreturns 6000, and MAX 10000 (the complete memory).
Record mode „AUTOMATIC“ (ACQUIRE menu) in STOP mode CHAN1:DATA:POINMAX CHAN1:DATA:POIN? Suffix:240000
Record mode „MAX.SA.RATE“ (ACQUIRE menu) in STOP mode CHAN1:DATA:POINMAX CHAN1:DATA:POIN? Suffix:1048560
SCPI Commands R&S®HMO1002 Remote Control
49
Command Reference
SCPI Programmers Manual
2.2.7 Probes
PROBe<m>:SETup:TYPE? .......................................................................................................... 49PROBe<m>:SETup:ATTenuation:UNIT<Unit> .......................................................................... 49PROBe<m>:SETup:ATTenuation:MANual<ManualAttenuation> ............................................. 49PROBe<m>:SETup:ATTenuation[:AUTO]? .................................................................................. 50
PROBe<m>:SETup:TYPE? Queriesthetypeoftheprobe.
Suffix:<m> Selects the input channel (1, 2).
Return values:<Type> NONE|ACTive|PASSive
NONE not detected ACTive activeprobe PASSivepassiveprobe
Usage: Query only
PROBe<m>:SETup:ATTenuation:UNIT <Unit> Selectstheunitthattheprobecanmeasure.
Suffix:<m> Selects the input channel (1, 2).Parameters:<Unit> V | A
PROBe<m>:SETup:ATTenuation:MANual <ManualAttenuation> Setstheattenuationorgainoftheprobeiftheprobewasnotdetectedbytheinstrument.
Suffix:<m> Selects the input channel (1, 2)..Parameters:<ManualAttenuation> Range: 0.001 to 10000 *RST:1
SCPI Commands R&S®HMO1002 Remote Control
50
Command Reference
SCPI Programmers Manual
PROBe<m>:SETup:ATTenuation[:AUTO]? Returnstheattenuationofanautomaticallydetectedprobe.
Suffix:<m> Selects the input channel (1, 2).
Return values:<ProbeAttenuation> Range:0.001to1000
Usage: Query only
2.3 Trigger
Trigger ...................................................................................................................................50General A Trigger Settings .....................................................................................................50Edge Trigger ..........................................................................................................................52Width(Pulse)Trigger ................................................................................................................. 53Video/TV Trigger ........................................................................................................................ 55Pattern(Logic)Trigger ............................................................................................................... 56
2.3.1 General A Trigger Settings
TRIGger:A:MODE<TriggerMode> ............................................................................................. 50TRIGger:A:LEVel<n>[:VALue]<Level> ...................................................................................... 51TRIGger:A:SOURce<Source> ................................................................................................... 51TRIGger:EXTern:COUPling<ExternCoupling> ........................................................................... 51TRIGger:A:TYPE<Type> ............................................................................................................ 51
TRIGger:A:MODE <TriggerMode> Setsthetriggermode.Thetriggermodedeterminesthebehaviouroftheinstrumentifnotriggeroccurs.
Parameters: <TriggerMode> AUTO|NORMal
AUTO Theinstrumenttriggersrepeatedlyafteratimeintervalifthetrigger conditionsarenotfulfilled.Ifarealtriggeroccurs,ittakesprecedence.
NORMal Theinstrumentacquiresawaveformonlyifatriggeroccurs.
*RST:AUTO
SCPI Commands R&S®HMO1002 Remote Control
51
Command Reference
SCPI Programmers Manual
TRIGger:A:LEVel<n>[:VALue] <Level> SetsthetriggertresholdvoltageforallAtriggertypesthatrequireatriggerlevel.
Suffix: <n> Selects the trigger input. 1, 2 selects the corresponding channel, 5selectstheexternaltriggerinput.
Parameters: <Level> TriggerlevelinV. Range:Dependsonverticalscale
TRIGger:A:SOURce <Source> Sets the trigger source for the selected A trigger type.
Parameters: <Source> CH1 | CH2 | EXTernanalog | LINE
CH1 | CH2 Oneoftheinputchannelsisthetriggersource.
EXTernanalog ExternalTRIGINconnectoronthefrontpanel
LINE AC line for the edge trigger
TRIGger:EXTern:COUPling <ExternCoupling> Setsthecouplingfortheexternaltriggerinput.ThecommandisrelevantifTRIGger:B:SOURce is set to EXTernanalog.
Parameters: <ExternCoupling> AC|DC
*RST:AC
TRIGger:A:TYPE <Type> Sets the trigger type for the A trigger.
Parameters: <Type> EDGE|WIDTh|TV|LOGic|BUS
EDGE Edge trigger WIDTh Pulsetrigger TV Video trigger LOGic Logic trigger BUS: BUS trigger require options
SCPI Commands R&S®HMO1002 Remote Control
52
Command Reference
SCPI Programmers Manual
2.3.2 Edge Trigger
TRIGger:A:EDGE:SLOPe<Slope> .............................................................................................. 52TRIGger:A:EDGE:COUPling<Coupling> ................................................................................... 52TRIGger:A:EDGE:FILTer:LPASs<State> ..................................................................................... 53TRIGger:A:EDGE:FILTer:NREJect<State> ................................................................................. 53
TRIGger:A:EDGE:SLOPe <Slope> Sets the slope for the edge trigger (A trigger).
Parameters: <Slope> POSitive|NEGative|EITHer
POSitive Risingedge,apositivevoltagechange
NEGative Fallingedge,anegativevoltagechange
EITHer Rising as well as the falling edge
*RST:POSitive
TRIGger:A:EDGE:COUPling <Coupling> Sets the coupling for the trigger source.
Parameters: <Coupling> DC|AC|HF|ALEVel
DC DirectCurrentcoupling.Thetriggersignalremainsunchanged.
AC AlternatingCurrentcoupling.A5HzhighpassfilterremovestheDC offsetvoltagefromthetriggersignal.
HF Highfrequencycoupling.A15kHzhigh-passfilterremoveslowerfre- quenciesfromthetriggersignal.Usethismodeonlywithveryhigh frequency signals.
ALEVel (AutoLevel)
*RST:DC
SCPI Commands R&S®HMO1002 Remote Control
53
Command Reference
SCPI Programmers Manual
TRIGger:A:EDGE:FILTer:LPASs <State> Turnsanadditional5kHzlow-passfilterinthetriggerpathonoroff.ThisfilterremoveshigherfrequenciesandisavailablewithACandDCcoupling.
Parameters: <State> ON|OFF
*RST:OFF
TRIGger:A:EDGE:FILTer:NREJect <State> Turnsanadditional100MHzlow-passfilterinthetriggerpathonoroff.Thisfilterremoveshigh-erfrequenciesandisavailablewithACandDCcoupling.
Parameters: <State> ON|OFF
*RST:OFF
2.3.3 Width (Pulse) Trigger
TRIGger:A:WIDTh:POLarity<Polarity> ...................................................................................... 53TRIGger:A:WIDTh:RANGe<RangeMode> ................................................................................ 54TRIGger:A:WIDTh:DELTa<Delta> .............................................................................................. 54TRIGger:A:WIDTh:WIDTh<Time1> ........................................................................................... 54
TRIGger:A:WIDTh:POLarity <Polarity> Sets the polarity of the pulse triger function.
Parameters: <Polarity> POSitive|NEGative
POSitive Positivegoingpulse,thewidthisdefinedfromtherisingtothefalling slopes.
NEGative Negativegoingpulse,thewidthisdefinedfromthefallingtotherising slopes.
*RST:POSitive
SCPI Commands R&S®HMO1002 Remote Control
54
Command Reference
SCPI Programmers Manual
TRIGger:A:WIDTh:RANGe <RangeMode> Defineshowthemeasuredpulsewidthiscomparedwiththegivenlimit(s).
Parameters: <RangeMode> WITHin|OUTSide|SHORter|LONGer
WITHin | OUTSide Triggersonpulsesinsideoroutsidearangedefinedbytime±delta. Thetimeisspecifiedwith TRIGger:A:WIDTh:WIDTh, the range around is definedwithTRIGger:A:WIDTh:DELTa.
SHORter | LONGer Triggers on pulses shorter or longer than a time set with TRIGger:A:WIDTh:WIDTh.
*RST: LONGer
TRIGger:A:WIDTh:DELTa <Delta> DefinesarangearoundthewidthvaluespecifiedusingTRIGger:A:WIDTh:WIDTh.
Parameters: <Delta> Range:±Δt(„Variation“) Valuerangedependsonthedefinedpulsewidth
*RST:3.2E-9
TRIGger:A:WIDTh:WIDTh <Time1> FortherangesWITHinandOUTSide(definedusingTRIGger:A:WIDTh:RANGe),the<Time1>definesthecenterofarangewhichisdefinedbythelimits±<Delta>(setwithTRIGger:A:WIDTh:DELTa).FortherangesSHORterandLONGer,thewidthdefinesthemaximumandminimumpulsewidth,respectively.
Parameters: <Time1> Centervalue,maximumvalueorminimumvaluedependingonthe definedrangetype.
Range:1.6E-08to3.435974E+01
SCPI Commands R&S®HMO1002 Remote Control
55
Command Reference
SCPI Programmers Manual
2.3.4 Video/TV Trigger
TRIGger:A:TV:STANdard <Standard> ........................................................................................ 55TRIGger:A:TV:POLarity<Polarity> ............................................................................................. 55TRIGger:A:TV:FIELd <Field> ...................................................................................................... 55TRIGger:A:TV:LINE <Line> ........................................................................................................ 56
TRIGger:A:TV:STANdard <Standard> Selectsthecolortelevisionstandard.
Parameters: <Standard> PAL|NTSC|SECam|PALM|I576|P720|P1080|I1080
*RST:PAL
TRIGger:A:TV:POLarity <Polarity> Sets the polarity of the sync pulses. The edges of the sync pulses are used for triggering.
Parameters: <Polarity> POSitive|NEGative
POSitive Ifthevideomodulationispositve,thesyncpulsesarenegative.
NEGative Ifthemodulationisnegative,syncpulsesarepositive.
*RST:NEGative
TRIGger:A:TV:FIELd <Field> Setsthetriggeronthebeginningofthevideosignalfields,oronthebeginningofvideosignallines.
Parameters: <Field> EVEN|ODD|ALL|LINE|ALINe
EVEN Triggersonlyonevenhalfframes.
ODD Triggers only on odd half frames.
ALL Triggers on all frames.
LINE Triggersonthebeginningofaspecifiedlineinanyfield. ThelinenumberissetwithTRIGger:A:TV:LINE.
SCPI Commands R&S®HMO1002 Remote Control
56
Command Reference
SCPI Programmers Manual
ALINe Triggersonthebeginningofallvideosignallines.
*RST:ALL
TRIGger:A:TV:LINE <Line> SetsanexactlinenumberifTRIGger:A:TV:FIELdissettoLINE.
Parameters: <Line> Range: 1 to 525, 625 , ... , 1080 depending on the TV standard
*RST:1
2.3.5 Pattern (Logic) Trigger
TRIGger:A:PATTern:SOURce<SourceString> ............................................................................ 56TRIGger:A:PATTern:FUNCtion<Function> ................................................................................ 57TRIGger:A:PATTern:CONDition<Condition> ............................................................................. 57TRIGger:A:PATTern:MODE<PatternMode> ............................................................................... 57TRIGger:A:PATTern:WIDTh[:WIDTh]<Numeric_Value> ............................................................. 58TRIGger:A:PATTern:WIDTh:DELTa<PatternDelta> .................................................................... 58TRIGger:A:PATTern:WIDTh:RANGe<PatternRange> ................................................................. 58
TRIGger:A:PATTern:SOURce <SourceString> Selectsthestateforeachdigitalchannel.Therespectivechannel(CH1,CH2orlogicchannels0...7)hastobeactivatedbeforestateselecting.
Parameters: <SourceString> String containing 0, 1, or X for each channel.
1:high,thesignalvoltageishigherthanthetriggerlevel. 0:low,thesignalvoltageislowerthanthetriggerlevel. X:Don‘tcare.thechanneldoesnotaffectthetrigger.
Example: TRIG:A:PATT:SOUR„1X“ CH1=High,CH2=Don‘tcare(PODdeactivated)
TRIG:A:PATT:SOUR„00101X1X1X“ POD:0=High,1=Low,...,7=Don‘tcare(CH1/CH2deactivated)
SCPI Commands R&S®HMO1002 Remote Control
57
Command Reference
SCPI Programmers Manual
TRIGger:A:PATTern:FUNCtion <Function> Setsthelogicalcombinationofthetriggerstatesofthechannels.
Parameters: <Function> AND|OR
AND The required states of all channels must appear in the input signal at the same time.
OR Atleastoneofthechannelsmusthavetherequiredstate.
*RST:AND
TRIGger:A:PATTern:CONDition <Condition> Setsthetriggerpointdependingontheresultofthelogicalcombinationofthechannelstates.
Parameters: <Condition> „TRUE“|„FALSE“
*RST:„TRUE“
TRIGger:A:PATTern:MODE <PatternMode> Sets the duration function of the pattern trigger.
Parameters: <PatternMode> OFF|TIMeout|WIDTh
OFF Patterntriggerwithoutduration.
TIMeout Patterntriggerwithdurationandtimeout. WIDTh Widthdurationandcomparisionofthelogicalcombinedchannels. *RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
58
Command Reference
SCPI Programmers Manual
TRIGger:A:PATTern:WIDTh[:WIDTh] <Numeric_Value> FortherangesWITHinandOUTSide(definedusingTRIGger:A:PATTern:WIDTh:RANGe),the<numeric_value>definesthecenterofarangewhichisdefinedbythelimits±<Delta>(setwithTRIGger:A:PATTern:WIDTh:DELTa).FortherangesSHORterandLONGer,thewidthdefinesthemaximumandminimumpulsewidth,respectively.
Parameters: <Numeric_Value> Centervalue,maximumvalueorminimumvaluedependingonthe definedrangetype. Range:1.600E-08to3.435974E+01
*RST:3.9999999E-04
TRIGger:A:PATTern:WIDTh:DELTa <PatternDelta> DefinesarangearoundthewidthvaluespecifiedusingTRIGger:A:PATTern:WIDTh[:WIDTh].
Parameters: <Delta> Range:±Δt(„Variation“) Range:8.00E-09tomaximumvaluedependsonthedefinedpulse width
*RST:1.5000000E-04
TRIGger:A:PATTern:WIDTh:RANGe <PatternRange> DefinesarangearoundthewidthvaluespecifiedusingTRIGger:A:PATTern:WIDTh:WIDTh.
Parameters: <PatternRange> WITHin|OUTSide|SHORter|LONGer
WITHin | OUTSide Triggersonpulsesinsideoroutsidearangedefinedbytime±delta. ThetimeisspecifiedwithTRIGger:A:PATTern:WIDTh[:WIDTh],therange aroundisdefinedwithTRIGger:A:PATTern:WIDTh:DELTa.
SHORter | LONGer Triggers on pulses shorter or longer than a time set with TRIGger:A:PATTern:WIDTh[:WIDTh]
*RST:LONG
SCPI Commands R&S®HMO1002 Remote Control
59
Command Reference
SCPI Programmers Manual
2.4 Display
BasicDisplaySettings ............................................................................................................... 59Zoom ......................................................................................................................................... 63Markers (Timestamps) ............................................................................................................... 64
2.4.1 Basic Display Settings Thischapterdescribescommandsthatconfigurethescreendisplay.
General Display Settings:DISPlay:MODE<Mode> ............................................................................................................ 59DISPlay:PALette<Palette> ......................................................................................................... 60DISPlay:VSCReen:ENABle<Enable> ......................................................................................... 60DISPlay:VSCReen:POSition<Position> ..................................................................................... 60
XYZ-Setup:DISPlay:XY:XSOurce<Source> ................................................................................................. 60DISPlay:XY:Y1Source<Source> ................................................................................................ 61
Intensities DISPlay:INTensity:WAVeform<Intensity> ................................................................................. 61DISPlay:INTensity:BACKlight<Intensity> .................................................................................. 61DISPlay:INTensity:GRID<Intensity> .......................................................................................... 61DISPlay:PERSistence:STATe<State> ......................................................................................... 61DISPlay:PERSistence:TIME<Time> ........................................................................................... 62DISPlay:PERSistence:INFinite<InfPersistence> ........................................................................ 62DISPlay:PERSistence:TIME:AUTO<Auto> ................................................................................ 62DISPlay:PERSistence:CLEar ....................................................................................................... 62
Waveform, Auxilary Cursors and Grid Settings DISPlay:STYLe<Style> .............................................................................................................. 62DISPlay:GRID:STYLe<Style> .................................................................................................... 63
DISPlay:MODE <Mode> Sets the diagram mode.
Parameters: <Mode> YT | XY
YT Defaulttimediagramwithatimeaxisinx-directionandthesignal amplitudesdisplayediny-direction.
XY XY-diagramcombinesthevoltagelevelsoftwowaveformsinone diagram.
*RST:YT
SCPI Commands R&S®HMO1002 Remote Control
60
Command Reference
SCPI Programmers Manual
DISPlay:PALette <Palette> Setsthecolorandbrightnessofthedisplayedwaveformsamplesdependingontheircumulativeoccurance.
Parameters: <Palette> NORMal|INVerse|FCOLor|IFColor
NORMal Valuesthatoccurfrequentlyarebrighterthanrarevalues.
INVerse Rarevaluesarebrighterthanfrequentvalues,inversetotheNORMal brightness.
FColor Rarevaluesaredisplayedinbluewhilemorefrequentvaluesarered andveryfrequentvaluesaredisplayedinyelloworwhite,withvarious colorsinbetween.
IFColor InversestheFColorsetting.Rarevaluesareyelloworwhitewhile frequentvaluesareblue.
*RST:NORM
DISPlay:VSCReen:ENABle <Enable> Switchesthevirtualscreenonoroff.
Parameters: <Enable> ON|OFF
*RST:OFF
DISPlay:VSCReen:POSition <Position> Setthepositionofthevirtualscreenwindow.
Parameters: <Position> Range:2to-10 *RST:0
DISPlay:XY:XSOurce <Source> DefinesthesourcetobedisplayedinxdirectioninanXY-diagram,replacingtheusualtimebase.
Parameters: <Source> CH1 | CH2
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
61
Command Reference
SCPI Programmers Manual
DISPlay:XY:Y1Source <Source> Definesthe(first)sourcetobedisplayedinydirectioninanXY-diagram.
Parameters: <Source> CH1 | CH2
*RST:CH2
DISPlay:INTensity:WAVeform <Intensity> Definesthestrengthofthewaveformlineinthediagram.*RSTdoesnotchangetheintensity.
Parameters: <Intensity> Value in percent Range: 0 to 100
DISPlay:INTensity:BACKlight <Intensity> Definestheintensityofthebackgroundlightingofthedisplay.*RSTdoesnotchangetheinten-sity.
Parameters: <Intensity> Value in percent Range: 10 to 100
DISPlay:INTensity:GRID <Intensity> Definestheintensityofthegridonthescreen.*RSTdoesnotchangetheintensity.
Parameters: <Intensity> Value in percent Range: 0 to 100
DISPlay:PERSistence:STATe <State> Defineswhetherthewaveformpersistsonthescreenorwhetherthescreenisrefreshed continuously.
Parameters: <State> ON|OFF
ON Thewaveformpersistsforthetimedefinedusing DISPlay:PERSistence:TIME.
OFF Thewaveformdoesnotpersistonthescreen.Onlythecurrently measuredvaluesaredisplayedatanytime.
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
62
Command Reference
SCPI Programmers Manual
DISPlay:PERSistence:TIME <Time> Persistencetimeifpersistenceisactive(seeDISPlay:PERSistence:STATe). Each new data point in thediagramarearemainsonthescreenforthedurationdefinedhere.Tosetinfinitepersistence,use DISPlay:PERSistence:INFinite.
Parameters: <Time> Value: s Range: 5E-2toinfinite
*RST:5E-2
DISPlay:PERSistence:INFinite <InfPersistence> SetsthepersistencetimetoinfiniteifDISPlay:PERSistence:STATeisON.eachnewdatapointremainsonthescreeninfinitelyuntilthissettingischangedorthepersistenceiscleared.
Parameters: <InfPersistence> ON|OFF
*RST:OFF
DISPlay:PERSistence:TIME:AUTO <Auto> Theoptimalpersistencetimeisdeterminedautomaticallybytheinstrument.
Parameters: <Auto> ON|OFF
DISPlay:PERSistence:CLEar Removesthedisplayedpersistentwaveformfromthescreen.
Usage: Event
DISPlay:STYLe <Style> Defineshowthewaveformdataisdisplayed
Parameters: <Style> VECTors|DOTS
VECTors Individualdatapointsareconnectedbyaline.
DOTS Onlythedatapointsaredisplayed.
*RST:VECT
SCPI Commands R&S®HMO1002 Remote Control
63
Command Reference
SCPI Programmers Manual
DISPlay:GRID:STYLe <Style> Defineshowthegridisdisplayed.
Parameters: <Style> LINes|RETicle|NONE
LINes Displaysthegridashorizontalandverticallines.
RETicle Displayscrosshairsinsteadofagrid.
NONE (No grid)
*RST:LIN
2.4.2 Zoom
TIMebase:ZOOM:STATe<ZoomState> ...................................................................................... 63TIMebase:ZOOM:SCALe<ZoomScale> .................................................................................... 63TIMebase:ZOOM:TIME<Time> ................................................................................................. 63TIMebase:ZOOM:POSition<Position> ...................................................................................... 64
TIMebase:ZOOM:STATe <ZoomState> Switches the zoom window on or off.
Parameters: <ZoomState> ON|OFF
*RST:OFF
TIMebase:ZOOM:SCALe <ZoomScale> Definesthetimebaseinthezoomdiagraminsecondsperdivision.
Parameters: <ZoomScale> Scalingofthezoomtimebaseins/divdependingontimebaseand channel settings
TIMebase:ZOOM:TIME <Time> Definestheoffsetofthetriggerpointtothereferencepointofthezoomdiagram.
Parameters: <Time> Value in s
*RST:0
SCPI Commands R&S®HMO1002 Remote Control
64
Command Reference
SCPI Programmers Manual
TIMebase:ZOOM:POSition <Position> Definesthepositionofthezoomreferencepoint(thereferencepointofthezoomwindow)inrelationtothereferencepointoforiginaltimebase.
Parameters: <Position> Value: in% Range: 0to100,dependingonthezoomtimebase *RST:5.00E+01
2.4.3 Markers (Timestamps)
TSTamp:SET ............................................................................................................................... 64TSTamp:NEXT ............................................................................................................................ 64TSTamp:PREVious ...................................................................................................................... 64TSTamp:CLEar ............................................................................................................................ 64TSTamp:ACLear .......................................................................................................................... 64
TSTamp:SET Setsanewmarker(timestamp)atthereferencepointofthedisplay,unlessanexistingmarkerisalreadysetthere.ThereferencepointissetwithTIMebase:REFerence.
Usage: Event
TSTamp:NEXT Movesthenextmarker(timestamp,totheright)tothereferencepointofthedisplayorzoomarea.
Usage: Event
TSTamp:PREVious Movesthepreviousmarker(timestamp,totheleft)tothereferencepointofthedisplayorzoomarea.
Usage: Event
TSTamp:CLEar Deletesthemarker(timestamp)atthereferencepoint.ThereferencepointissetwithTIMebase:REFerence.
Usage: Event
TSTamp:ACLear Deletesallmarkers(timestamps).
Usage: Event
SCPI Commands R&S®HMO1002 Remote Control
65
Command Reference
SCPI Programmers Manual
2.5 Measurements Thischapterdescribesfunctionsthatconfigureorperformcursorandautomaticmeasurements.
2.5.1 Cursor
CURSor<m>:AOFF .................................................................................................................... 65CURSor<m>:STATe <State> ...................................................................................................... 65CURSor<m>:FUNCtion <Type> ................................................................................................ 66CURSor<m>:SOURce<Source> ............................................................................................... 67CURSor<m>:TRACking[:STATe]<State> ................................................................................... 67CURSor<m>:X1Position<Xposition1> ...................................................................................... 67CURSor<m>:X2Position<Xposition2> ...................................................................................... 68CURSor<m>:X3Position<Xposition3> ...................................................................................... 68CURSor<m>:Y1Position<Yposition1> ...................................................................................... 68CURSor<m>:Y2Position<Yposition2> ...................................................................................... 68CURSor<m>:Y3Position<Yposition3> ...................................................................................... 68CURSor<m>:TRACking:SCALe[:STATe]<State> ....................................................................... 69CURSor<m>:YCOupling<Coupling> ........................................................................................ 69CURSor<m>:XCOupling<Coupling> ........................................................................................ 69CURSor<m>:RESult? ................................................................................................................. 69CURSor<m>:XDELta:INVerse? .................................................................................................. 70CURSor<m>:XDELta[:VALue]? .................................................................................................. 70CURSor<m>:YDELta:SLOPe? .................................................................................................... 70CURSor<m>:YDELta[:VALue]? .................................................................................................. 70CURsor<m>:XRATio:UNIT <Unit> ............................................................................................. 71CURSor<m>:XRATio[:VALue]? ................................................................................................... 71CURSor<m>:YRATio:UNIT <Unit> ............................................................................................ 71CURSor<m>:YRATio[:VALue]? ................................................................................................... 72
CURSor<m>:AOFF Switches the cursor off.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Usage: Event
CURSor<m>:STATe <State> Activatesordeactivatesthecursormeasurement.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <State> ON|OFF *RST: OFF
SCPI Commands R&S®HMO1002 Remote Control
66
Command Reference
SCPI Programmers Manual
CURSor<m>:FUNCtion <Type> Definesthecursormeasurementtype.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Type> HORizontal|VERTical|PAIRed|HRATio|VRATio|PPCount| NPCount|RECount|FECount|MEAN|RMS|RTIMe|FTIMe| PEAK|UPEakvalue|LPEakvalue
HORizontal Setstwohorizontalcursorlinesandmeasuresthevoltagesatthetwo cursorpositionsandthedeltaofthetwovalues.
VERTical Setstwoverticalcursorlinesandmeasuresthetimefromthetrigger pointtoeachcursor,thetimebetweenthetwocursorsandthefre quency calculated from that time. PAIRed (V-Marker)
HRATio Ratioofthex-values(e.g.adutycycle)betweenthefirstandsecond cursorsandthefirstandthirdcursors.
VRATio Ratioofthey-values(e.g.overshooting)betweenthefirstandsecond cursorsandthefirstandthirdcursors. PPCount (Countpositivepulses) NPCount (Countnegativepulses) RECount (Count rising edges) FECount (Count falling edges) MEAN (Meanvalue) RMS (Root mean square) RTIMe (Rise time, tr)
FTIMe (Fall time, tf) Thereferencelevelforriseandfalltimemeasurementissetwith REFLevel<m>:RELative:MODE.
PEAK Absolutedifferencebetweenthetwopeakvalues,Vpp.
UPEakvalue (Upperpeakvalue,Vp+) LPEakvalue (Lowerpeakvalue,Vp-)
*RST:PAIR
SCPI Commands R&S®HMO1002 Remote Control
67
Command Reference
SCPI Programmers Manual
CURSor<m>:SOURce <Source> Definesthecursormeasurementsourceasoneoftheactivesignal,referenceormathchannel.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Source> NONE|CH1|CH2|QMA|RE1|RE2|RE3|RE4|XY
CH1 | CH2 ActivesignalchannelsCH1toCH2
QMA Activemathchannel
RE1 | RE2 | RE3 | RE4 Activereferencechannels1to4
XY ActiveXY-waveform
*RST:CH1
CURSor<m>:TRACking[:STATe] <State> IfsettoON,theV-Markercursormeasurementisenabled.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <State> ON|OFF
*RST:OFF
CURSor<m>:X1Position <Xposition1> Specifiesthepositionofthefirstcursoronthetimeaxis.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Xposition1> Defaultunit:s
SCPI Commands R&S®HMO1002 Remote Control
68
Command Reference
SCPI Programmers Manual
CURSor<m>:X2Position <Xposition2> Specifiesthepositionofthesecondcursoronthetimeaxis.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Xposition2> Defaultunit:s
CURSor<m>:X3Position <Xposition3> SpecifiesthepositionofthethirdcursoronthetimeaxisfortheRatioXmeasurement.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Xposition3> Defaultunit:s
CURSor<m>:Y1Position <Yposition1> Specifiesthepositionofthefirsthorizontalcursoronthey-axis.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Yposition1> Defaultunit:V
CURSor<m>:Y2Position <Yposition2> Specifiesthepositionofthesecondhorizontalcursoronthey-axis.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Yposition2> Defaultunit:V
CURSor<m>:Y3Position <Yposition3> Specifiesthepositionofthethirdhorizontalcursoronthey-axisforRatioYmeasurements.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Yposition3> Defaultunit:V
SCPI Commands R&S®HMO1002 Remote Control
69
Command Reference
SCPI Programmers Manual
CURSor<m>:TRACking:SCALe[:STATe] <State> Enablestheadjustmentofcursorlinesiftheverticalorhorizontalscalesarechanged.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <State> ON|OFF
ON Cursorlineskeeptheirrelativepositiontothewaveform.
OFF Cursor lines remain on their position on the display if the scaling is changed.
*RST:OFF
CURSor<m>:YCOupling <Coupling> CURSor<m>:XCOupling <Coupling> Ifenabled,thecursorsofasetarecoupledsothatthedistancebetweenthetworemainsthesameifonecursorismoved.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Coupling> ON|OFF
*RST:OFF
CURSor<m>:RESult? Returns the cursor positions.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <Value> Comma-separatedlist
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
70
Command Reference
SCPI Programmers Manual
CURSor<m>:XDELta:INVerse? Returnstheinversetimedifferencebetweenthetwocursors(1/Δt).
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <DeltaInverse> Defaultunit:1/s
Usage: Query only
CURSor<m>:XDELta[:VALue]? Returnsthetimedifferencebetweenthetwocursors(Δt).
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <Delta> Defaultunit:s
Usage: Query only
CURSor<m>:YDELta:SLOPe? Returnstheinversevalueofthevoltagedifference-thereciprocaloftheverticaldistanceoftwohorizontalcursorlines:1/ΔV.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <DeltyYslope> Inversevalue
Usage: Query only
CURSor<m>:YDELta[:VALue]? Returnsthedeltaofthevaluesiny-directionatthetwocursors.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <DeltaY> DeltavalueinV
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
71
Command Reference
SCPI Programmers Manual
CURsor<m>:XRATio:UNIT <Unit> SetstheunitforXRatiomeasurementswithCURSor<m>:XRATio[:VALue].
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Unit> RATio|PCT|GRD|PI
RATio: Floatingvalue PCT: Percent GRD: Degree PI: Radian
CURSor<m>:XRATio[:VALue]? Returnstheratioofthex-values(e.g.adutycycle)betweenthefirstandsecondcursorsandthefirstandthirdcursors:(x2-x1)/(x3-x1).SettheunitoftheresultwithCURsor<m>:XRATio:UNIT.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <Ratio> Numericvaluecorrespondingtothespecifiedunit.
Usage: Query only
CURSor<m>:YRATio:UNIT <Unit> SetstheunitforYRatiomeasurementswithCURSor<m>:YRATio[:VALue].
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Unit> RATio|PCT
RATio: Floatingvalue PCT: Percent
SCPI Commands R&S®HMO1002 Remote Control
72
Command Reference
SCPI Programmers Manual
CURSor<m>:YRATio[:VALue]? Providesthreecursorsandmeasurestheratioofthey-values(e.g.overshooting)betweenthefirstandsecondcursorsandthefirstandthirdcursors:(y2-y1)/(y3-y1).Settheunitoftheresultwith CURSor<m>:YRATio:UNIT.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <Ratio> Numericvaluecorrespondingtothespecifiedunit.
Usage: Query only
2.5.2 Automatic Measurements
MEASurement<m>:AOFF ........................................................................................................ 72MEASurement<m>:AON .......................................................................................................... 72MEASurement<m>:ARESult? .................................................................................................... 73MEASurement<m>[:ENABle]<State> ...................................................................................... 73MEASurement<m>:SOURce<SignalSource>[,<ReferenceSource>] ....................................... 73MEASurement<m>:CATegory? .................................................................................................. 74REFLevel<m>:RELative:MODE<RelativeMode> ...................................................................... 74MEASurement<m>:MAIN <MeasType> ................................................................................... 75MEASurement<m>:RESult?[<MeasType>] .............................................................................. 77MEASurement<m>:DELay:SLOPe<SignalSlope>,<ReferenceSlope> ..................................... 77
MEASurement<m>:AOFF Stops the quick measurement.
Suffix: <m> 1..6(thenumericsuffixisirrelevant)
Usage: Event
MEASurement<m>:AON Starts the quick measurement.
Suffix: <m> 1..6(thenumericsuffixisirrelevant)
Usage: Event
SCPI Commands R&S®HMO1002 Remote Control
73
Command Reference
SCPI Programmers Manual
MEASurement<m>:ARESult? Returns the results of the quick measurement.
Suffix: <m> 1..6 Selects the measurement.
Return values: <QuickMeasData> Listofvalues Quick measurement results are listed in the following order: PEAK,UPE,LPE,CYCR,CYCM,PER,FREQ,RTIM,FTIM
Usage: Query only
MEASurement<m>[:ENABle] <State> Activatesordeactivatestheselectedmeasurement(1-6).Onlytheresultsofactivemeasure-mentsaredisplayedintheresulttable.
Suffix: <m> 1..6 Selects the measurement.
Parameters: <State> ON|OFF
*RST:OFF
MEASurement<m>:SOURce <SignalSource>[,<ReferenceSource>] Selectsoneoftheactivesignal,referenceormathchannelsasthesourceoftheselectedmeasurement.
Suffix: <m> 1..6
Parameters: <SignalSource> NONE|CH1|CH2|QMA|RE1|RE2|RE3|RE4
*RST: CH1
<ReferenceSource> NONE|CH1|CH2|QMA|RE1|RE2|RE3|RE4
CH1 | CH2 Activesignalchannels1to2
QMA Activemathchannel.
RE1 | RE2 | RE3 | RE4 Activereferencechannels1to4
SCPI Commands R&S®HMO1002 Remote Control
74
Command Reference
SCPI Programmers Manual
MEASurement<m>:CATegory? Returnsthemeasurementcategory.Currently,theinstrumentsupportsonlyyt-measurements.
Suffix: <m> 1..6 Selects the measurement.
Return values: <Category> AMPTime
AMPtime: Yt-measurements *RST:AMPT
Usage: Query only
REFLevel<m>:RELative:MODE <RelativeMode> Setsthelowerandupperreferencelevelsforriseandfalltimemesurements(cursorandauto-maticmesurements),definedaspercentagesofthehighsignallevel.
Suffix: <m> 1..5 Measurementtowhichthereferencelevelbelongs. Suffix1...4assignthemeasurementplaces1to4(automeasure). Suffix5assignsthecursormesurement.
Parameters: <RelativeMode> TEN|TWENty
TEN: 10/90% TWENty: 20/80% *RST: TEN
Example: REFL2:REL:MODETWENty MEAS2:MAIN RTIM Setsthereferencelevelformeasurementplace2andmeasurestherise timebetweentheselevels: Lowerreferencelevel=20%ofhighsignallevel Upperreferencelevel=80%ofhighsignallevel
SCPI Commands R&S®HMO1002 Remote Control
75
Command Reference
SCPI Programmers Manual
MEASurement<m>:MAIN <MeasType> Definesthemeasurementtypetobeperformedontheselectedsource.Toquerytheresults,useMEASurement<m>:RESult.
Suffix: <m> 1..6 Selects the measurement type.
Parameters: <MeasType> FREQuency|PERiod|PEAK|UPEakvalue|LPEakvalue|PPCount| NPCount|RECount|FECount|HIGH|LOW|AMPLitude|CRESt| MEAN|RMS|RTIMe|FTIMe|PDCYcle|NDCYcle|PPWidth| NPWidth|CYCMean|CYCRms|STDDev|TFRequency|TPERiode| POVershoot|NOVershoot|DELay|PHASe
FREQuency Frequencyofthesignal.Theresultisbasedonthelengthoftheleft- mostsignalperiodwithinthedisplayedsectionofthewaveformofthe selected channel.
PERiod Lengthoftheleft-mostsignalperiodwithinthedisplayedsectionofthe waveformoftheselectedchannel.
PEAK Peak-to-peakvaluewithinthedisplayedsectionofthewaveformofthe selected channel.
UPEakvalue Maximumvaluewithinthedisplayedsectionofthewaveformofthe selected channel.
LPEakvalue Minimumvaluewithinthedisplayedsectionofthewaveformofthe selected channel.
PPCount (Countspositivepulses) NPCount (Countsnegativepulses)
RECount Countsthenumberofrisingedges.
FECount Countsthenumberoffallingedges.
HIGH Meanvalueofthehighlevelofasquarewave.
LOW Meanvalueofthelowlevelofasquarewave.
SCPI Commands R&S®HMO1002 Remote Control
76
Command Reference
SCPI Programmers Manual
AMPLitude Amplitudeofasquarewave.
CRESt The crestfactor(peak-to-averageratio)iscalculatedfromthemaximum valuedividedbytheRMSvalueofthewaveform(Crest).
MEAN Meanvalueofcompletedisplayedwaveformoftheselectedchannel.
RMS RMS(RootMeanSquare)valueofthevoltageofthecomplete displayedwaveformoftheselectedchannel.
RTIMe | FTIMe Riseorfallingtimeoftheleft-mostrisingedgewithinthedisplayed sectionofthewaveformoftheselectedchannel.Thereferencelevelfor this mesurement is set with REFLevel<m>:RELative:MODE.
PDCycle | NDCycle Measurethepositiveornegativedutycycle.
PPWidth | NPWidth Measurethewidthofpositiveornegativepulses.
CYCMean Meanvalueoftheleft-mostsignalperiodofthewaveformofthe selected channel.
CYCRms RMS(RootMeanSquare)valueofthevoltageoftheleft-mostsignal periodofthewaveformoftheselectedchannel.
STDDev Measuresthestandarddeviationofthewaveform.
TFRequency Measuresthefrequencyofthetriggersignalbasedonthelengthofits period.
TPERiode Measures the length of the trigger signal periods (hardware counter).
POVershoot Measuresthepositiveovershootofthewaveform.
NOVershoot Measuresthenegativeovershoot(undershoot)ofthewaveform.
SCPI Commands R&S®HMO1002 Remote Control
77
Command Reference
SCPI Programmers Manual
Delay Timedifferencebetweentwoedgesofthesameordifferentwave forms.ThewaveformsareselectedwithMEASurement<m>:SOURce, andtheedgeswithMEASurement<m>:DELay:SLOPe.
Phase Phasedifferencebetweentwowaveforms[(timedifference/period)x360]. ThewaveformsareselectedwithMEASurement<m>:SOURce.
*RST:NONE(measurementisoff)
MEASurement<m>:RESult? [<MeasType>] Returnstheresultofthespecifiedmeasurementtype.
Suffix: <m> 1..6 Selects the measurement type.
Return values: <Value> Measurement result
Query Parameters: <MeasType> FREQuency|PERiod|PEAK|UPEakvalue|LPEakvalue|PPCount| NPCount|RECount|FECount|HIGH|LOW|AMPLitude|MEAN| RMS|RTIMe|FTIMePDCYcle|NDCYcle|PPWidth|NPWidth| CYCMean|CYCRms|STDDev|TFRequency|TPERiode|POVershoot| NOVershoot|DELay|PHASe
Specifiesthemeasurementtype(seeMEASurement<m>:MAIN).
Usage: Query only
MEASurement<m>:DELay:SLOPe <SignalSlope>,<ReferenceSlope> Setstheedgestobeusedfordelaymeasurement.TheassociatedwaveformsaredefinedwithMEASurement<m>:SOURce.
Parameters:<SignalSlope> POSitive|NEGative Slopeofsource1(firstwaveform)
<ReferenceSlope> POSitive|NEGative Slopeofsource2(secondwaveform)
*RST:POS
SCPI Commands R&S®HMO1002 Remote Control
78
Command Reference
SCPI Programmers Manual
2.7 Quickmath and Reference Waveforms
2.7.1 Quickmath ThischapterdescribescommandsthatconfigureorperformbasicmathfunctionsusingQuick-math.
CALCulate:QMATh:STATe <State> ............................................................................................. 78CALCulate:QMATh:SOURce<m> .............................................................................................. 78CALCulate:QMATh:OPERation<Operation> .............................................................................. 78
CALCulate:QMATh:STATe <State> DefineswhethertheQuickmathwaveformisactiveornot.Onlyifachannelisactiveitisvisibleonthescreenandcanbeselectedasasourceforanalysisanddisplayfunctions.QuickmathisonlyavailableinYTandZoommode.
Parameters: <State> ON|OFF
*RST:OFF
CALCulate:QMATh:SOURce <m> DefinesthesourceoftheQuickmathwaveform.
Parameters: <m> 1, 2 Selects the source.
<Source> CH1 | CH2
Example: CALC:QMAT:SOUR1CH2
*RST:1
CALCulate:QMATh:OPERation <Operation> DefinestheoperationoftheQuickmathwaveform.
Parameters: <Operation> ADD|SUB|MUL|DIV
Example: CALC:QMAT:OPERADD CALC:QMAT:OPERSUB CALC:QMAT:OPERMUL CALC:QMAT:OPERDIV
*RST:ADD
SCPI Commands R&S®HMO1002 Remote Control
79
Command Reference
SCPI Programmers Manual
2.7.3 Reference Waveforms
REFCurve<m>:STATe ................................................................................................................ 79REFCurve<m>:SOURce<Source> ............................................................................................ 79REFCurve<m>:SOURce:CATalog? ............................................................................................. 80REFCurve<m>:UPDate .............................................................................................................. 80REFCurve<m>:SAVE<FileName> ............................................................................................. 80REFCurve<m>:LOAD<FileName> ............................................................................................ 80REFCurve<m>:LOAD:STATe ...................................................................................................... 81REFCurve<m>:HORizontal:SCALe<Scale> .............................................................................. 81REFCurve<m>:HORizontal:POSition<Position> ....................................................................... 81REFCurve<m>:VERTical:SCALe<Scale> .................................................................................. 81REFCurve<m>:VERTical:POSition<Position> ........................................................................... 82REFCurve<m>:DATA? ................................................................................................................ 82REFCurve<m>:DATA:HEADer? .................................................................................................. 82
REFCurve<m>:STATe Displaysorhidestheselectedreferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.Parameters: <State> ON|OFF
*RST:OFF
REFCurve<m>:SOURce <Source> Definesthesourceofthereferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Source> CH1 | CH2 | QMA | RE1 | RE2 | RE3 | RE4 Anyactivechannel,math,orreferencewaveform.
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
80
Command Reference
SCPI Programmers Manual
REFCurve<m>:SOURce:CATalog? Returnsthesourcewaveform-channel,mathorreferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Return values: <Catalog> CH1 | CH2 | QMA | RE1 | RE2 | RE3 | RE4
Usage: Query only
REFCurve<m>:UPDate UpdatestheselectedreferencebythewaveformdefinedwithREFCurve<m>:SOURce.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Usage: Event
REFCurve<m>:SAVE <FileName> Storesthereferencewaveformthespecifiedfile.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Setting Parameters: <FileName> Stringwithpathandfilename
Usage: Setting only
REFCurve<m>:LOAD <FileName> Loadsthewaveformdatafromtheindicatedreferencefiletothereferencestorage.Toloadtheinstrumentsettings,useREFCurve<m>:LOAD:STATe.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Setting Parameters: <FileName> Stringwithpathandfilename
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
81
Command Reference
SCPI Programmers Manual
REFCurve<m>:LOAD:STATe Loadstheinstrumentsettingsinadditiontothereferencewaveformdata.Thewaveformdatamustbeloadedbeforethesettings,seeREFCurve<m>:LOAD.Thesettingsareonlyavailableifthefilewasstoredtotheinternalstorage/INT/REFERENCEandneverwrittentoanexternalstorage (USB stick).
Suffix: <m> 1..4 Selectsthereferencewaveform.
Usage: Event
REFCurve<m>:HORizontal:SCALe <Scale> Changesthehorizontalscale(timebase)ofthereferencewaveformindependentofthechannelwaveformsettings.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Scale> Defaultunit:s/div
REFCurve<m>:HORizontal:POSition <Position> Changesthehorizontalpositionofthereferencewaveformindependentofthechannelwave-form settings.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Position> Defaultunit:s
REFCurve<m>:VERTical:SCALe <Scale> Changestheverticalscaleofthereferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Scale> Defaultunit:V/div
SCPI Commands R&S®HMO1002 Remote Control
82
Command Reference
SCPI Programmers Manual
REFCurve<m>:VERTical:POSition <Position> Changestheverticalpositionofthereferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Position> Defaultunit:div
REFCurve<m>:DATA? Returnsthedataofthereferencewaveform.
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Return values: <Data> Comma-separatedvaluelist
Usage: Query only
REFCurve<m>:DATA:HEADer? Returnsinformationonthereferencewaveform.
Position Meaning Example
1 XStart in s -9.477E-008=-94,77ns
2 XStop in s 9.477E-008=94,77ns
3 RecordlengthofthewaveforminSamples 200000
4 Numberofvaluespersampleinterval,usually1. 1
Table 2.4: Header data
Suffix: <m> 1..4 Selectsthereferencewaveform,theinternalreferencestorage.
Parameters: <Header> Comma-separatedvaluelist
Example: -9.477E-008,9.477E-008,200000,1
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
83
Command Reference
SCPI Programmers Manual
2.8 FFT
CALCulate:MATH<m>:ARIThmetics <Arithmetics> .................................................................. 83CALCulate:MATH<m>:FFT:AVERage:COUNt ............................................................................ 84CALCulate:MATH<m>:FFT:MAGNitude:SCALe ......................................................................... 84CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:ADJusted? ............................................. 84CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:AUTO<SpanRBWCoupling> ................ 85CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:RATio<SpanRBWRatio> ....................... 85CALCulate:MATH<m>:FFT:BANDwidth[:RESolution][:VALue]<ResolutionBW> ..................... 85CALCulate:MATH<m>:FFT:CFRequency <CenterFreq> ............................................................ 85CALCulate:MATH<m>:FFT:FULLspan ....................................................................................... 85CALCulate:MATH<m>:FFT:SPAN<FreqSpan> ......................................................................... 86CALCulate:MATH<m>:FFT:STARt <StartFreq> ......................................................................... 86CALCulate:MATH<m>:FFT:STOP<StopFreq> .......................................................................... 86CALCulate:MATH<m>:FFT:WINDow:TYPE<WindowType> ..................................................... 86
CALCulate:MATH<m>:ARIThmetics <Arithmetics> DefinesthemodeforFFTcalculationanddisplay.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <Arithmetics> OFF|ENVelope|AVERage
OFF The FFT is performed without any additional weighting or postproces sing of the acquired data. The new input data is acquired and displayed, andthusoverwritesthepreviouslysavedanddisplayeddata. ENVelope Inadditiontothenormalspectrum,themaximaloscillationsaresaved separatelyandupdatedforeachnewspectrum.Themaximumvalues aredisplayedtogetherwiththenewlyacquiredvaluesandforman envelope.ThisenvelopeindicatestherangeofallFFTtracevaluesthat occurred.
AVERage Theaverageofseveralspectrumsiscalculated.Thenumberofspec- trumsusedfortheaveragingisdefinedusingthecommand.Thismode isusefulfornoiserejection.
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
84
Command Reference
SCPI Programmers Manual
CALCulate:MATH<m>:FFT:AVERage:COUNt DefinesthenumberofspectrumsusedforaveragingifCALCulate:MATH<m>:ARIThmeticsissetto AVERage.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <AverageCount> Integervalue Range: 2 to 512
*RST:2
CALCulate:MATH<m>:FFT:MAGNitude:SCALe Definesthescalingofthey-axis.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <MagnitudeScale> LINear|DBM|DBV
LINear: Linearscaling;displaystheRMSvalueofthevoltage. DBM: Logarithmicscaling;relatedto1mW DBV: Logarithmicscaling;relatedto1Veff
*RST:DBM
CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:ADJusted? Returnstheeffectiveresolutionbandwidth.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Return values: <AdjResBW> Range:-100E+24to100E+24 Defaultunit:Hz *RST:1.525E+3
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
85
Command Reference
SCPI Programmers Manual
CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:AUTO <SpanRBWCoupling> Couples the frequency span to the RBW.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <SpanRBWCoupling> ON|OFF
CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:RATio <SpanRBWRatio> Definestheratioresolutionbandwidth(Hz)/span(Hz).
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <SpanRBWRatio> Range: 2048 to 131072
*RST:4096
CALCulate:MATH<m>:FFT:BANDwidth[:RESolution][:VALue] <ResolutionBW> Definestheresolutionbandwidth.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <ResolutionBW> Defaultunit:Hz
CALCulate:MATH<m>:FFT:CFRequency <CenterFreq> Definesthepositionofthedisplayedfrequencydomain,whichis(Center-Span/2)to(Center+Span/2).ThewidthofthedomainisdefinedusingtheCALCulate:MATH<m>:FFT:SPANcom-mand.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <CenterFreq> Defaultunit:Hz
CALCulate:MATH<m>:FFT:FULLspan PerformsFFTcalculationforthefullfrequencyspan.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Usage: Event
SCPI Commands R&S®HMO1002 Remote Control
86
Command Reference
SCPI Programmers Manual
CALCulate:MATH<m>:FFT:SPAN <FreqSpan> ThespanisspecifiedinHertzanddefinesthewidthofthedisplayedfrequencyrange,whichis(Center-Span/2)to(Center+Span/2).ThepositionofthespanisdefinedusingtheCALCulate:MATH<m>:FFT:CFRequency command.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <FreqSpan> Defaultunit:Hz
CALCulate:MATH<m>:FFT:STARt <StartFreq> Definesthestartfrequencyofthedisplayedfrequencydomain(insteadofdefiningacenterfrequency and span).
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <StartFreq> Defaultunit:Hz
CALCulate:MATH<m>:FFT:STOP <StopFreq> Definesthestopfrequencyofthedisplayedfrequencydomain(insteadofdefiningacenterfrequency and span).
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <StopFreq> Defaultunit:Hz
CALCulate:MATH<m>:FFT:WINDow:TYPE <WindowType> WindowfunctionsaremultipliedwiththeinputvaluesandthuscanimprovetheFFTdisplay.
Suffix: <m> 1(thenumericsuffixisirrelevant)
Parameters: <WindowType> RECTangular | HAMMing | HANNing | BLACkmanharris
RECTangular Therectangularwindowmultipliesallpointsbyone.Theresultisa highfrequencyaccuracywiththinspectrallines,butalsowithincrea- sednoise.Usethisfunctionpreferablywithpulseresponsetestswhere startandendvaluesarezero.
SCPI Commands R&S®HMO1002 Remote Control
87
Command Reference
SCPI Programmers Manual
HAMMing TheHammingwindowisbellshaped.Itsvalueisnotzeroatthebor- dersofthemeasuringinterval.Thus,thenoiselevelinsidethespectrum ishigherthanHanningorBlackman,butsmallerthantherectangular window.Thewidthofthespectrallinesisthinnerthantheotherbell- shapedfunctions.Usethiswindowtomeasureamplitudesofaperiodi- cal signal precisely.
HANNing TheHanningwindowisbellshaped.UnliketheHammingwindow,its valueiszeroatthebordersofthemeasuringinterval.Thus,thenoisele- velwithinthespectrumisreducedandthewidthofthespectrallines enlarges. Use this window to measure amplitudes of a periodical signal precisely.
BLACkmanharris TheBlackmanwindowisbellshapedandhasthesteepestfallinits waveshapeofallotheravailablefunctions.Itsvalueiszeroatbothbor- dersofthemeasuringinterval.IntheBlackmanwindowtheamplitudes canbemeasuredveryprecisely.However,determiningthefrequencyis moredifficult.Usethiswindowtomeasureamplitudesofaperiodical signal precisely.
*RST:HANN
2.9 Masks
MASK:STATe<State> ................................................................................................................ 87MASK:TEST<Test> .................................................................................................................... 88MASK:LOAD<FileName> .......................................................................................................... 88MASK:SAVE<FileName> .......................................................................................................... 88MASK:SOURce<Source> ......................................................................................................... 88MASK:CHCopy ........................................................................................................................... 88MASK:YPOSition<Yposition> ................................................................................................... 88MASK:YSCALe<Yscale> ........................................................................................................... 89MASK:YWIDth<Yaddition> ....................................................................................................... 89MASK:XWIDth<Xaddition> ...................................................................................................... 89MASK:COUNt? ........................................................................................................................... 89MASK:VCOunt? .......................................................................................................................... 89MASK:ACTion:YOUT:ENABle<Yout> ........................................................................................ 90
MASK:STATe <State> Turns the mask test mode on or off. When turning off, any temporarily stored new masks are deleted.
Parameters: <State> ON|OFF
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
88
Command Reference
SCPI Programmers Manual
MASK:TEST <Test> Starts,finishesorinterruptsamasktest.
Parameters: <Test> RUN|STOP|PAUSE
*RST:STOP
MASK:LOAD <FileName> Loadsastoredmaskfromthespecifiedfile.
Setting Parameters: <FileName> Stringparameter(pathandfilename)
Usage: Setting only
MASK:SAVE <FileName> Savesthecurrentmaskinthespecifiedfile.
Setting Parameters: <FileName> Stringparameter(pathandfilename)
Usage: Setting only
MASK:SOURce <Source> Definesthechanneltobecomparedwiththemask.
Parameters: <Source> CH1 | CH2
*RST:CH1
MASK:CHCopy CreatesamaskfromtheenvelopewaveformofthetestsourcesetwithMASK:SOURce.
Usage: Event
MASK:YPOSition <Yposition> Movesthemaskverticallywithinthedisplay.
Parameters: <Yposition> Maskoffsetfromtheverticalcenter Range: -200to200 Defaultunit: div *RST:0
SCPI Commands R&S®HMO1002 Remote Control
89
Command Reference
SCPI Programmers Manual
MASK:YSCALe <Yscale> Changestheverticalscalingtostretchorcompressthemaskiny-direction.
Parameters: <Yscale> Avalueover100%stretchestheamplitudes;avaluelessthan100% compresses the amplitudes. Range: 10 to 1000 Defaultunit: %
*RST:100
MASK:YWIDth <Yaddition> Changesthewidthofthemaskinverticaldirection.
Parameters: <Yaddition> Thevalueisaddedtothey-valuesoftheuppermasklimitandsub tractedfromthey-valuesofthelowermasklimit. Range: 0 to 5.12 Defaultunit: div
*RST:0
MASK:XWIDth <Xaddition> Changes the width of the mask in horizontal direction.
Parameters: <Xaddition> Thevalueisaddedtothepositivex-valuesandsubtractedfromthe negativex-valuesofthemasklimitsinrelationtothemaskcenter. Range: 0 to 10 Defaultunit: div
*RST:0
MASK:COUNt? Returnsthenumberoftestedacquisitions.
Return values: <TotalCount> Totalnumberoftestedacquisitions
Usage: Query only
MASK:VCOunt? Returnsthenumberofacquistionsthathitthemask.
Return values: <ViolationCount> Acquisition count
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
90
Command Reference
SCPI Programmers Manual
MASK:ACTion:YOUT:ENABle <Yout> EnableordisableofpulsesattheY-OUTputifmaskisdistorted.
Parameters: <Yout> ON|OFF
*RST:OFF
2.10 Function Generator
GENerator:FUNCtion <Function> .............................................................................................. 90GENerator:VOLTage<Amplitude> ............................................................................................. 90GENerator:VOLTage:OFFSet<Offset> ....................................................................................... 90GENerator:FREQuency <Frequency> ........................................................................................ 91GENerator:FUNCtion:RAMP:POLarity<Polarity> ...................................................................... 91GENerator:FUNCtion:PULSe:DCYCle ......................................................................................... 91GENerator:OUTPut[:ENABle] ..................................................................................................... 91
GENerator:FUNCtion <Function> Selects the generator function.
Parameters:<Function> DC|SINusoid|SQUare|PULSe|TRIangle|RAMP
*RST:SIN
GENerator:VOLTage <Amplitude> Definestheamplitudevalue(peak-peakvalue)oftheselectedgeneratorfunction.
Parameters: <Amplitude> Numericvalue Range:6.0000E-02to6.00000E+00 Defaultunit:Vpp
*RST:5.0000E-01
GENerator:VOLTage:OFFSet <Offset> SetstheDCoffsetoftheselectedgeneratorfunction.
Parameters: <Offset> Numericvalue Range:-3.00000E+00to3.00000E+00 Defaultunit:V
*RST:0.00E+00
SCPI Commands R&S®HMO1002 Remote Control
91
Command Reference
SCPI Programmers Manual
GENerator:FREQuency <Frequency> Definesthefrequencyvalueoftheselectedgeneratorfunction.Parameters:<Frequency> Numericvaluedependingontheselectedgeneratorfunction Range: 1.000E-01to5.000000000E+04(sine/square) 1.000E-01to1.000000000E+04(triangle/ramp/pulse) Defaultunit:Hz
*RST:1.00000000E+03
GENerator:FUNCtion:RAMP:POLarity <Polarity> Sets the polarity of the generator function ramp.
Parameters: <Polarity> POSitive|NEGative
*RST:NEG
GENerator:FUNCtion:PULSe:DCYCle Definesthedutycyclevalueofthegeneratorfunctionpulse.
Parameters: <DutyCycle> Numericvalue Range: 1.000E+01to9.000E+01 Defaultunit: %
*RST:2.500E+01
GENerator:OUTPut[:ENABle] Activatesordeactivatesthefunctiongeneratoroutput.
Parameters: <OutputEnable> ON|OFF
*RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
92
Command Reference
SCPI Programmers Manual
2.11 Pattern Generator
PGENerator:FUNCtion ................................................................................................................ 92PGENerator:PATTern:STATe ........................................................................................................ 93PGENerator:PATTern:STIMe ....................................................................................................... 93PGENerator:PATTern:PERiod ...................................................................................................... 93PGENerator:PATTern:FREQuency ............................................................................................... 94PGENerator:PATTern:ITIMe ........................................................................................................ 94PGENerator:PATTern:BURSt:STATe ............................................................................................ 94PGENerator:PATTern:BURSt:NCYCle .......................................................................................... 94PGENerator:PATTern:TRIGger:MODE ......................................................................................... 94PGENerator:PATTern:TRIGger:SINGle ........................................................................................ 95PGENerator:PATTern:TRIGger:EXTern:SLOPe ............................................................................. 95PGENerator:PATTern:ARBitrary:DATA[:SET] ............................................................................... 95PGENerator:PATTern:ARBitrary:DATA:APPend ........................................................................... 95PGENerator:PATTern:ARBitrary:DATA:APPend:BOR .................................................................. 96PGENerator:PATTern:ARBitrary:DATA:APPend:BAND ................................................................ 96PGENerator:PATTern:ARBitrary:DATA:APPend:INDex ................................................................ 96PGENerator:PATTern:ARBitrary:DATA:LENGth ........................................................................... 96PGENerator:PATTern:COUNter:FREQuency ............................................................................... 96PGENerator:PATTern:COUNter:DIRection .................................................................................. 97PGENerator:PATTern:SQUarewave:POLarity .............................................................................. 97PGENerator:PATTern:SQUarewave:DCYCle ............................................................................... 97PGENerator:MANual:STATe<s> ................................................................................................. 98
PGENerator:FUNCtion Selects the pattern generator function.
Parameters:<Function> SQUarewave|COUNter|ARBitrary|SPI|I2C | UART | CAN | LIN | MANual
SQUarewave Squarewavefunction(e.g.formanualprobecompensation):
COUNter Definitionofa4bitwidecounterpattern.
ARBitrary Definitionofa4bitwideand2048samplesdeeppattern.
SPI SPIBUSsignalsformeasurementswithoutmeasurementobject. Datarate100kBit/s,250kBit/sor1MBit/s.
I2C I2CBUSsignalsformeasurementswithoutmeasurementobject. Datarate100kBit/s,400kBit/s,1MBit/sor3.4MBit/s.
SCPI Commands R&S®HMO1002 Remote Control
93
Command Reference
SCPI Programmers Manual
UART UARTBUSsignalsformeasurementswithoutmeasurementobject. Datarate9600Bit/s,115.2kBit/sand1MBit/s.
CAN CANBUSsignalsformeasurementswithoutmeasurementobjectupto 50 MBit/s.
LIN LINBUSsignalsformeasurementswithoutmeasurementobjectupto 50 MBit/s.
MANual Manual pattern mode.
PGENerator:PATTern:STATe Activatesordeactivatesthepattern.
Parameters: <State> ON|OFF
*RST:OFF
PGENerator:PATTern:STIMe Definesthesampletimeofthepatterngeneratorfunction.Parameters: <SampleTime> Numericvalue Range: 2.000E-08to4.200E+01 Defaultunit: s
*RST:2.000E-08
PGENerator:PATTern:PERiod Definestheperiodofthepatterngeneratorfunction.
Parameters: <PatternPeriod> Numericvalue(Period=Patternlength*Bittime) Range: MIN1Sample*20ns=20ns MAX2048Samples*42s=10416s(approx.2.89h) Defaultunit: s
*RST:2.000E-06
SCPI Commands R&S®HMO1002 Remote Control
94
Command Reference
SCPI Programmers Manual
PGENerator:PATTern:FREQuency Definesthefrequency(period)valueofthepatterngeneratorfunction.
Parameters: <PatternFrequency> Numericvalue
PGENerator:PATTern:ITIMe Definestheidletimeofthepatterngeneratorfunction.TheidletimecanbeonlydefinedwithactivatedBURSTfunction.
Parameters:<IdleTime> Numericvalue Range:2.000E-08to4.200000000000E+01
*RST:2.5000000000E-01
PGENerator:PATTern:BURSt:STATe Turns the BURST function on or off.
Parameters: <BurstState> ON|OFF
*RST:OFF
PGENerator:PATTern:BURSt:NCYCle DefinestheBURSTpatterncycles.ThecyclescanbeonlydefinedwithactivatedBURSTfunc-tion.
Parameters: <PatternCycles> Numericvalue Range: 1 to 4096
*RST:1
PGENerator:PATTern:TRIGger:MODE Definesthearbitrarytriggermodeofthepatterngeneratorfunction.
Parameters: <TriggerMode> CONTinuous|SINGle|EXTern
CONTinuous TheCONTfunction(continuoustrigger)issuesthepatterncontinuously.
SINGle IftheSINGsettingisactivated,thepatternisissuedmanually.
SCPI Commands R&S®HMO1002 Remote Control
95
Command Reference
SCPI Programmers Manual
EXTern FortheEXT(externaltrigger)settingthepatternisissuedbyanedgeat theexternalinputoftheoscilloscope(TRIG.EXT.).
*RST:CONT
PGENerator:PATTern:TRIGger:SINGle Manual output of a pattern (single trigger).
Usage: Event
PGENerator:PATTern:TRIGger:EXTern:SLOPe Definestheslopeoftheexternalarbitrarypatterntrigger.
Parameters:<Slope> POSitive|NEGative|EITHer
POSitive Rising edge (rise).
NEGative Falling edge (fall).
EITHer Risingaswellasthefallingedge(both).
*RST:POSitive
PGENerator:PATTern:ARBitrary:DATA[:SET] Definesthearbitrarypattern.
Parameters: <ArbitraryData> Listofvalues
Example: PGEN:PATT:ARB:DATA 0,1,1,1,2,0,3,1,4,0
PGENerator:PATTern:ARBitrary:DATA:APPend Definesthearbitrarypattern.
Parameters: <AppendData> ListofValues
Example: PGEN:PATT:ARB:DATA:APP4 Fromindex=ntheoscilloscopeappendsa4inHEXtothepattern.
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
96
Command Reference
SCPI Programmers Manual
PGENerator:PATTern:ARBitrary:DATA:APPend:BOR
Parameters: <AppendData> Listofvalues Fromindex=ndatawillbeintegratedinexistingpatternviaOR combination.
PGENerator:PATTern:ARBitrary:DATA:APPend:BAND
Parameters: <AppendData> Listofvalues Fromindex=ndatawillbeintegratedinexistingpatternviaAND combination.
PGENerator:PATTern:ARBitrary:DATA:APPend:INDex Definestheindexofthearbitrarypattern.
Parameters: <AppendIndex> Numericvalue
Example: PGEN:PATT:ARB:DATA:APP:IND5 PGEN:PATT:ARB:DATA:APP4 Fromindex=napatternlengthof6willbedefinedwithlasthighbit4.
PGENerator:PATTern:ARBitrary:DATA:LENGth Definesthearbitrarypatternlength.
Parameters: <PatternLength> Numericvalue Range: 1 to 2048
*RST:1
PGENerator:PATTern:COUNter:FREQuency Definesthefrequencyvalueofthepatterngeneratorcounterfunction.Theuserfrequencyalwaysreferstotheswitchingofthepatterncondition.Thisresultsinsquarewaveformsforindividualpins.
Pin Frequency
S0 f/2
S1 f/4
S2 f/8
S3 f/16
SCPI Commands R&S®HMO1002 Remote Control
97
Command Reference
SCPI Programmers Manual
Parameters: <Period> Numericvalue Range: 2.380952425301E-02to2.500000000000E+07
*RST:1.000000000000E+05
PGENerator:PATTern:COUNter:DIRection Sets the pattern generator counter direction.
Parameters: <CountDirection> UPWard|DOWNward
*RST:UPW
PGENerator:PATTern:SQUarewave:POLarity Definesthepolarityofthepatterngeneratorsquarewavefunction.
Parameters: <Polarity> NORMal|INVerted
*RST:NORM
PGENerator:PATTern:SQUarewave:DCYCle
Parameters: <DutyCycle> Numericvalue Range: 1.00E+00to9.900E+01 Defaultunit: %
*RST:5.000E+01
Example: PGEN:PATT:SQU:DCYC20 Setsthedutycycleofthesquarewavefunctionto20%.
SCPI Commands R&S®HMO1002 Remote Control
98
Command Reference
SCPI Programmers Manual
PGENerator:MANual:STATe<s>
Suffix:<s> 0...3 Selects the pins S0 to S3 manually.
Parameters: <State> ON|OFF
ON: Pinstateissettohigh(H). OFF: Pinstateissettolow(L).
*RST:OFF
Example: PGEN:MAN:STAT2ON Pin state of S2 is set to high (H).
2.12 Digital Voltmeter
DVM<m>:TYPE .......................................................................................................................... 98DVM<m>:SOURce .................................................................................................................... 99DVM:ENABle .............................................................................................................................. 99DVM<m>:RESult[:ACTual]? ....................................................................................................... 99DVM:POSition .......................................................................................................................... 100
DVM<m>:TYPE Selectsthemeasurementtypeofthedigitalvoltmeterfunction.
Suffix:<m> 1...4 Selects the channel resp. the secondary measurement type.
Parameters: <MeasurementType> MEAN|DCRMs|STDD|UPEakvalue|LPEakvalue|PEAK| CRESt|OFF
MEAN: DC DCRMs: RMS STDDeviation: Standarddeviation UPEakvalue: Peak+ LPEakvalue: Peak- PEAK: Peakpeakvalue(Maximum-Minimum) CRESt: Crest factor (|X|max/XRMS) OFF: Measurementdisplaydeactivated
Example: DVM1:TYPEPEAK SelectstheDVMtypePEAKforchannel1(CH1).
SCPI Commands R&S®HMO1002 Remote Control
99
Command Reference
SCPI Programmers Manual
DVM<m>:SOURce Selectsthesourceforthedigitalvoltmeterfunction.
Suffix:<m> 1...4 Selects the channel resp. the secondary measurement type.
Parameters:<Source> CH1 | CH2
DVM1=primarymeasurementvalueCH1 DVM2=secondarymeasurementvalueCH1 DVM3=primarymeasurementvalueCH2 DVM4=secondarymeasurementvalueCH2
Example: DVM2:SOURCH2
DVM:ENABle Activatesordeactivatesthedigitalvolmeterfunction.
Parameters: <VoltmeterEnable> ON|OFF
*RST:OFF
DVM<m>:RESult[:ACTual]?
Suffix:<m> 1...4 Selects the channel resp. the secondary measurement type.
Response: <CurrentValue> Numericvalue
Example: DVM1:RES? ReceivedthevoltmetervalueofCH1.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
100
Command Reference
SCPI Programmers Manual
DVM:POSition Selectsthedisplaypositionofthedigitalvoltmetervalues.
Parameters: <Position> TLEFt|TRIGht|BLEFt|BRIGht
TLEFt: Displaypositiontopleft. TRIGht: Displaypositiontopright. BLEFt: Displaypositionbottomleft. BRIGht: Displaypositionbottomright.
*RST:TLEF
2.13 Component Tester
COMPonenttest:STATe<State> ............................................................................................... 100COMPonenttest:FREQuency<Frequency> ............................................................................. 100
COMPonenttest:STATe <State> Switches the compoenent tester mode on or off.
Parameters: <State> ON|OFF
*RST:OFF
COMPonenttest:FREQuency <Frequency> Sets the frequency of the component tester source.
Parameters: <Frequency> F50 | F200
F50: 50Hz F200: 200Hz
SCPI Commands R&S®HMO1002 Remote Control
101
Command Reference
SCPI Programmers Manual
2.11 Protocol Analysis
General ................................................................................................................................ 101ParallelBus .............................................................................................................................. 103SPI .......................................................................................................................................105SSPI ..................................................................................................................................... 113I2C ........................................................................................................................................... 116UART ....................................................................................................................................... 126CAN .................................................................................................................................... 133LIN ........................................................................................................................................... 145
2.11.1 General
BUS<b>:STATe<State> ........................................................................................................... 101BUS<b>:TYPE<Type> ............................................................................................................ 101BUS<b>:FORMat<Format> .................................................................................................... 102BUS<b>:DSIZe<DisplaySize> ................................................................................................ 102BUS<b>:DSIGnals<BitsSignals> ............................................................................................ 102BUS<b>:POSition<Position> .................................................................................................. 102BUS<b>:LABel<Label> .......................................................................................................... 103BUS<b>:LABel:STATe<State> ................................................................................................ 103
BUS<b>:STATe <State> Switches the protocol display on or off.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <State> ON|OFF
*RST:OFF
BUS<b>:TYPE <Type> Definesthebusorinterfacetypeforanalysis.Formosttypes,aspecialoptiontotheinstrumentis required.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Type> PARallel|CPARallel|I2C|SPI|SSPI|UART|CAN|LIN
*RST:PAR
SCPI Commands R&S®HMO1002 Remote Control
102
Command Reference
SCPI Programmers Manual
BUS<b>:FORMat <Format> Sets the decoding format for the display on the screen.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Format> ASCii|HEXadecimal|BINary|DECimal
*RST:HEX
BUS<b>:DSIZe <DisplaySize> Setstheheightofthedecodedbussignalonthesreen.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <DisplaySize> SMALl|MEDium|LARGe
*RST:MED
BUS<b>:DSIGnals <BitsSignals> Displaystheindividualbitlinesabovethedecodedbusline.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BitsSignals> ON|OFF
*RST:ON
BUS<b>:POSition <Position> Setstheverticalpositionofthedecodedbussignalindivisionsonthesreen.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Position> Range: -4.0000E+00to4.0000E+00 Defaultunit: div
*RST:1.0000E+00
SCPI Commands R&S®HMO1002 Remote Control
103
Command Reference
SCPI Programmers Manual
BUS<b>:LABel <Label> SetsthelabelfortheBus.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Label> Stringvalue “ xxxxxxxx“(maximum8characters)
BUS<b>:LABel:STATe <State> Swichtesthelabelofthebusonoroff.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <State> ON|OFF
*RST:ON
2.11.2 Parallel Bus
BUS<b>:PARallel:DATA<m>:SOURce<Source> .................................................................... 103BUS<b>:PARallel:WIDTh<BusWidth> .................................................................................... 104
BUS<b>:PARallel:DATA<m>:SOURce <Source> Setstheinputchannelsforthedatabitlines.Thesuffix<m>selectsthebitline.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> D0....D7
*RST:D0
SCPI Commands R&S®HMO1002 Remote Control
104
Command Reference
SCPI Programmers Manual
BUS<b>:PARallel:WIDTh <BusWidth> Setsthenumberoflinestobeanalyzed.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BusWidth> Maximumnumberisthenumberofinputchannels. Range: 1 to 8 Defaultunit: Bit
*RST:4
SCPI Commands R&S®HMO1002 Remote Control
105
Command Reference
SCPI Programmers Manual
2.11.3 SPI
SPI - Configuration BUS<b>:SPI:CS:SOURce<Source> ........................................................................................ 105BUS<b>:SPI:CS:POLarity<Polarity> ....................................................................................... 106BUS<b>:SPI:CLOCk:SOURce<Source> ................................................................................. 106BUS<b>:SPI:CLOCk:POLarity<Polarity> ................................................................................. 106BUS<b>:SPI:DATA:SOURce<Source> ................................................................................... 107BUS<b>:SPI:DATA:POLarity<Polarity> ................................................................................... 107BUS<b>:SPI:BORDer<BitOrder> ............................................................................................ 107BUS<b>:SPI:SSIZe<SymbolSize> .......................................................................................... 108
Trigger TRIGger:A:SPI:MODE<Mode> ............................................................................................... 108TRIGger:A:SPI:PATTern<DataPattern> .................................................................................... 108TRIGger:A:SPI:PLENgth<PatternLength> ............................................................................... 109TRIGger:A:SPI:POFFset<PatternBitOffset> ............................................................................. 109
Decode BUS<b>:SPI:FCOunt? .............................................................................................................. 109BUS<b>:SPI:FRAMe<n>:STATus? ........................................................................................... 109BUS<b>:SPI:FRAMe<n>:STARt? ............................................................................................ 110BUS<b>:SPI:FRAMe<n>:STOP<StopTime> .......................................................................... 110BUS<b>:SPI:FRAMe<n>:DATA? ............................................................................................. 110BUS<b>:SPI:FRAMe<n>:WCOunt? ........................................................................................ 111BUS<b>:SPI:FRAMe<n>:WORD<o>STARt? .......................................................................... 111BUS<b>:SPI:FRAMe<n>:WORD<o>STOP? ........................................................................... 111BUS<b>:SPI:FRAMe<n>:WORD<o>MISO? ........................................................................... 112BUS<b>:SPI:FRAMe<n>:WORD<o>MOSI? ........................................................................... 112
BUS<b>:SPI:CS:SOURce <Source> Selects the input channel of the chip select line.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
106
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:CS:POLarity <Polarity> Selectswhetherthechipselectsignalishighactive(high=1)orlowactive(low=1).
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Polarity> POSitive|NEGative
POSitive: Highactive NEGative: Lowactive
*RST:POS
BUS<b>:SPI:CLOCk:SOURce <Source> Selects the input channel of the clock line.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
BUS<b>:SPI:CLOCk:POLarity <Polarity> Selectsifdataisstoredwiththerisingorfallingslopeoftheclock.Theslopemarksthebeginofanewbit.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Polarity> POSitive|NEGative
POSitive: Rising slope NEGative: Falling slope
*RST:NEG
SCPI Commands R&S®HMO1002 Remote Control
107
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:DATA:SOURce <Source> Selects the input channel of the data line.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
BUS<b>:SPI:DATA:POLarity <Polarity> Selectswhethertransmitteddataishighactive(high=1)orlowactive(low=1).
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Polarity> POSitive|NEGative
POSitive: Highactive NEGative: Lowactive *RST:POS
BUS<b>:SPI:BORDer <BitOrder> DefinesifthedataofthemessagesstartswithMSB(mostsignificantbit)orLSB(leastsignifi-cantbit).
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BitOrder> MSBFirst|LSBFirst
*RST:MSBFirst
SCPI Commands R&S®HMO1002 Remote Control
108
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:SSIZe <SymbolSize> Setsthewordlength,thenumberofbitsinamessage.
Suffix: <b> 1,2 Selectsthebus.
Parameters:<SymbolSize> Range: 4to32 Defaultunit: Bit
*RST:8Bit
TRIGger:A:SPI:MODE <Mode> SpecifiesthetriggermodeforSPI/SSPIprotocols.
Parameters: <Mode> BSTart|BEND|NTHBit|PATTern
BSTart Burststart,setsthetriggereventtothestartoftheframe.Theframe startswhenthechipselectsignalCSchangestotheactivestate.
BEND Burstend,setsthetriggereventtotheendofthemessage.
NTHBit Setsthetriggereventtothespecifiedbitnumber.Todefinethebit number,useTRIGger:A:SPI:POFFset.
PATTern Setsthetriggereventtoaserialpattern.Todefinethepattern,use TRIGger:A:SPI:PATTern.Foracompleteconfigurationofthepattern mode,youalsohavetosetTRIGger:A:SPI:PLENgthand TRIGger:A:SPI:POFFset.
*RST:BST
TRIGger:A:SPI:PATTern <DataPattern> Definesthebitpatternastriggercondition.
Parameters: <DataPattern> Binarypatternwithmax.32bit.Characters0,1,andXareallowed.
Example: TRIGger:A:SPI:PATTern“0011XXXX0110” Setsa12bitpattern.
SCPI Commands R&S®HMO1002 Remote Control
109
Command Reference
SCPI Programmers Manual
TRIGger:A:SPI:PLENgth <PatternLength> Defineshowmanybitsbuilduptheserialpattern.
Parameters: <PatternLength> Range:1to32
*RST:4
TRIGger:A:SPI:POFFset <PatternBitOffset> Setsthenumberofbitsbeforethefirstbitofthepattern.
Parameters: <PatternBitOffset> Numberofignoredbits Range: 0 to 4095 *RST:0
BUS<b>:SPI:FCOunt? Returnsthenumberofframes.
Suffix: <b> 1,2 Selectsthebus.
Return values:<FrameCount> Totalnumberofdecodedframes.
Usage: Query only
BUS<b>:SPI:FRAMe<n>:STATus? Returns the status of frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Status> OK|INCFirst|INCLast|INSufficient
OK: frame is o.k. INCFirst: firstframeisincomplete INCLast: last frame is incomplete INSufficient: frameisinsufficient
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
110
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:FRAMe<n>:STARt? Returns the start time of a frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:SPI:FRAMe<n>:STOP <StopTime> Returns the stop time of a frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StopTime> Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:SPI:FRAMe<n>:DATA? Returns the comma separeted frame data.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Data> Listofdecimalvaluesofdatabytes
Example: BUS:SPI:FRAM3:DATA?
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
111
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:FRAMe<n>:WCOunt? Returnsthenumberofwordsofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<WordCount> Numberofwords(numericvalue).
Usage: Query only
BUS<b>:SPI:FRAMe<n>:WORD<o>STARt? Returns the start time of a word of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthewordnumber.
Return values:<StartTime> Numeric Value Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:SPI:FRAMe<n>:WORD<o>STOP? Returns the stop time of a word of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthewordnumber.
Return values:<StopTime> Numeric Value Range: dependsonsamplerateandtimebase. Unit: s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
112
Command Reference
SCPI Programmers Manual
BUS<b>:SPI:FRAMe<n>:WORD<o>MISO? Returnsthedecimalvalueofadatawordofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthewordnumber.
Return values:<Data> Decimalvalueofadataword
Usage: Query only
BUS<b>:SPI:FRAMe<n>:WORD<o>MOSI? Returnsthedecimalvalueofadatawordofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthewordnumber.
Return values:<Data> Decimalvalueofadataword.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
113
Command Reference
SCPI Programmers Manual
2.11.4 SSPI
BUS<b>:SSPI:CLOCk:SOURce<Source> ............................................................................... 113BUS<b>:SSPI:CLOCk:POLarity<Polarity> .............................................................................. 113BUS<b>:SSPI:DATA:SOURce<Source> ................................................................................. 113BUS<b>:SSPI:DATA:POLarity<Polarity> ................................................................................. 114BUS<b>:SSPI:BITime<BurstIdleTime> ................................................................................... 114BUS<b>:SSPI:BORDer<BitOrder> ......................................................................................... 114BUS<b>:SSPI:SSIZe<SymbolSize> ........................................................................................ 115
BUS<b>:SSPI:CLOCk:SOURce <Source> Selects the input channel of the clock line.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
BUS<b>:SSPI:CLOCk:POLarity <Polarity> Selectsifdataisstoredwiththerisingorfallingslopeoftheclock.Theslopemarksthebeginofanewbit.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Polarity> POSitive|NEGative
POSitive: Rising slope NEGative: Falling slope
BUS<b>:SSPI:DATA:SOURce <Source> Selects the input channel of the data line.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
114
Command Reference
SCPI Programmers Manual
BUS<b>:SSPI:DATA:POLarity <Polarity> Selectswhethertransmitteddataishighactive(high=1)orlowactive(low=0).
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Polarity> POSitive|NEGative
POSitive: Highactive NEGative: Lowactive
*RST:POS
BUS<b>:SSPI:BITime <BurstIdleTime> Withintheidletimethedataandclocklinesarelow.Anewframebeginswhentheidletimehasexpiredandtheclocklinehasbeeninactiveduringthattime.Ifthetimeintervalbetweenthedata words is shorter than the idle time, the words are part of the same frame.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BurstIdleTime> Range: 16E-9to1E-3 Defaultunit: s
*RST:100E-6
BUS<b>:SSPI:BORDer <BitOrder> DefinesifthedataofthemessagesstartswithMSB(mostsignificantbit)orLSB(leastsignifi-cantbit).
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BitOrder> MSBFirst|LSBFirst
*RST:MSBF
SCPI Commands R&S®HMO1002 Remote Control
115
Command Reference
SCPI Programmers Manual
BUS<b>:SSPI:SSIZe <SymbolSize> Setsthewordlength,thenumberofbitsinamessage.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <SymbolSize> Range: 4to32 Defaultunit: Bit
*RST:8Bit
SCPI Commands R&S®HMO1002 Remote Control
116
Command Reference
SCPI Programmers Manual
2.11.5 I2C
I2C - Configuration BUS<b>:I2C:CLOCk:SOURce<Source> ................................................................................. 116BUS<b>:I2C:DATA:SOURce<Source> ................................................................................... 117
Trigger TRIGger:A:I2C:MODE<Mode> ............................................................................................... 117TRIGger:A:I2C:ACCess <Access> ............................................................................................ 118TRIGger:A:I2C:AMODe<AdrMode> ....................................................................................... 118TRIGger:A:I2C:ADDRess<AddressString> ............................................................................. 118TRIGger:A:I2C:PATTern ............................................................................................................. 118TRIGger:A:I2C:PLENgth<PatternLength> ............................................................................... 118TRIGger:A:I2C:POFFset<PatternByteOffset> .......................................................................... 119
Decode BUS<b>:I2C:FCOunt? .............................................................................................................. 119BUS<b>:I2C:FRAMe<n>:STATus? ........................................................................................... 119BUS<b>:I2C:FRAMe<n>:STARt? ............................................................................................ 120BUS<b>:I2C:FRAMe<n>:STOP? ............................................................................................. 120BUS<b>:I2C:FRAMe<n>:ACCess? .......................................................................................... 120BUS<b>:I2C:FRAMe<n>:AMODe? ......................................................................................... 121BUS<b>:I2C:FRAMe<n>:AACCess? ....................................................................................... 121BUS<b>:I2C:FRAMe<n>:ADDRess? ....................................................................................... 121BUS<b>:I2C:FRAMe<n>:ADEVice? ........................................................................................ 122BUS<b>:I2C:FRAMe<n>:ASTart? ............................................................................................ 122BUS<b>:I2C:FRAMe<n>:ADBStart? ....................................................................................... 122BUS<b>:I2C:FRAMe<n>:ACOMplete? ................................................................................... 123BUS<b>:I2C:FRAMe<n>:BCOunt? ......................................................................................... 123BUS<b>:I2C:FRAMe<n>:DATA? ............................................................................................. 123BUS<b>:I2C:FRAMe<n>:BYTE<o>VALue? ............................................................................ 124BUS<b>:I2C:FRAMe<n>:BYTE<o>STARt? ............................................................................. 124BUS<b>:I2C:FRAMe<n>:BYTE<o>ACKStart? ........................................................................ 124BUS<b>:I2C:FRAMe<n>:BYTE<o>ACCess? .......................................................................... 125BUS<b>:I2C:FRAMe<n>:BYTE<o>COMPlete? ...................................................................... 125
BUS<b>:I2C:CLOCk:SOURce <Source> Sets the input channel to which the clock line is connected.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
117
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:DATA:SOURce <Source> Sets the input channel to which the data line is connected.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
TRIGger:A:I2C:MODE <Mode> SpecifiesthetriggermodeforI2C.
Parameters: <Mode> STARt|RESTart|STOP|MACKnowledge|PATTern
STARt Startofthemessage.ThestartconditionisafallingslopeonSDAwhile SCL is high.
RESTart Restarted message. The restart is a repeated start condition.
STOP Endofthemessage.ThestopconditionisarisingslopeonSDAwhile SCL is high.
MACKnowledge Missing acknowledge. If the transfer failed, at the moment of the acknowledgebittheSCLandtheSDAlinesarebothonhighlevel.
PATTern Triggers on a set of trigger conditions: read or write access of the ma ster,toanaddress,or/andtoabitpatterninthemessage. Foracompleteconfigurationofthepatternmode,youhavetoset: TRIGger:A:I2C:ACCess (read/write access), and TRIGger:A:I2C:AMODe and TRIGger:A:I2C:ADDRess (address), and/or TRIGger:A:I2C:POFFset and TRIGger:A:I2C:PLENgth and TRIGger:A:I2C:PATTern (pattern)
*RST:STAR
SCPI Commands R&S®HMO1002 Remote Control
118
Command Reference
SCPI Programmers Manual
TRIGger:A:I2C:ACCess <Access> TogglesthetriggerconditionbetweenReadandWriteaccessofthemaster.
Parameters: <Access> READ|WRITe
*RST:READ
TRIGger:A:I2C:AMODe <AdrMode> Setsthelenghtoftheslaveaddress.
Parameters: <AdrMode> NORMal|EXTended
NORMal: 7bitaddress EXTended: 10bitaddress
*RST:NORM
TRIGger:A:I2C:ADDRess <AddressString> Setstheaddressoftheslavedevice.Theaddresscanhave7bitsor10bits.
Parameters: <AddressString> Binarypatternwithmax.10bit.Characters0,1,andXareallowed.
Example: TRI:A:I2C:ADDR“10X1”
TRIGger:A:I2C:PATTern Definesthebitpatternastriggercondition.
Parameters: <DataPattern> Binarypatternwithmax.24bit.Characters0,1,andXareallowed.
TRIGger:A:I2C:PLENgth <PatternLength> Defineshowmanybytesareconsideredinthetriggercondition.Tosetthepatternforthesebytes,useTRIGger:A:I2C:PATTern.
Parameters: <PatternLength> Numberofbytes Range: 1 to 3
*RST:1
SCPI Commands R&S®HMO1002 Remote Control
119
Command Reference
SCPI Programmers Manual
TRIGger:A:I2C:POFFset <PatternByteOffset> Setsthenumberofbytesbeforethefirstbyteofinterest,relatingtotheendoftheaddressbytes.
Parameters: <PatternByteOffset> Numberofignoredbytes Range: 0 to 4095
*RST:0
BUS<b>:I2C:FCOunt? Returnsthenumberofframes.
Suffix: <b> 1,2 Selectsthebus.
Return values:<FrameCount> Totalnumberofdecodedframes.
Usage: Query only
BUS<b>:I2C:FRAMe<n>:STATus? Returns the status of frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<State> INComplete|OK|UNEXpstop|INSufficient|ADDifferent
INComplete: frame is incomplete OK: frame is o.k. UNEXpstop: framestopisunexpected INSufficient: frameisinsufficient ADDifferent: frame is different
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
120
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:STARt? Returns the start time of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:I2C:FRAMe<n>:STOP? Returns the stop time of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<EndTime> Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:I2C:FRAMe<n>:ACCess? Returns the read/write access.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Access> INComplete|READ|WRITE|EITHer|UNDF
INComplete: frame is incomplete READ: read frame WRITE: write frame EITHer: either write or read frame UNDF: frameisundefined
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
121
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:AMODe? Returns the adress mode.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AddressMode> BIT7 | BIT10
BIT7: 7 Bit address BIT10: 10 Bit address
Usage: Query only
BUS<b>:I2C:FRAMe<n>:AACCess? Returns the address acknowledge of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Acknowledge> INComplete|ACK|NACK|EITHer
INComplete: Acknowledge is incomplete ACK: Acknowledge NACK: not Acknowledge EITHer: ACK or NACK
Usage: Query only
BUS<b>:I2C:FRAMe<n>:ADDRess? Returnstheread/writeaddressasadecimalvalue(includingRWbit).
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AddressValue> Range: 0 to 2047
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
122
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:ADEVice? Returnstheread/writeaddressasadecimalvalue(excludingRWbit).
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<SlaveAddress> Range:0to1023
Usage: Query only
BUS<b>:I2C:FRAMe<n>:ASTart? Returns the start time of a address of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range: dependsonsamplerateandtimebase Unit: s
Usage: Query only
BUS<b>:I2C:FRAMe<n>:ADBStart? Returns the start time of a address acknowledge of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AckStartTime> Range: dependsonsamplerateandtimebase Unit s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
123
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:ACOMplete? Returnstheinfowhetheranaddresswasreceivedcomplete.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AddressComplete> ON|OFF
Usage: Query only
BUS<b>:I2C:FRAMe<n>:BCOunt? Returnsthenumberofdatabytesofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ByteCountInFrame> Numberofwords(bytes)
Example: BUS1:I2C:FRAM2:BCO?
Usage: Query only
BUS<b>:I2C:FRAMe<n>:DATA? Returnsthenumberofdatabytesofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<DataWordsInFrame> Listofdecimalvaluesofdatabytesofaframe.
SCPI Commands R&S®HMO1002 Remote Control
124
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:BYTE<o>VALue? Returnsthevalueofadatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteValue> Decimalvalue Range: 0 to 255
Usage: Query only
BUS<b>:I2C:FRAMe<n>:BYTE<o>STARt? Returnsthestarttimeofdatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<StartTime> Range:dependsonsamplerateandtimebase Defaultunit:s
Usage: Query only
BUS<b>:I2C:FRAMe<n>:BYTE<o>ACKStart? Returnsthestarttimeoftheacknowledgebitofadatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<AckStartTime> Range:dependsonsamplerateandtimebase Defaultunit:s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
125
Command Reference
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:BYTE<o>ACCess? Returnstheacknowledgebitofadatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<Acknowledge> INComplete|ACK|NACK|EITHer
INComplete: Acknowledge is incomplete ACK: Acknowledge NACK: Not Acknowledge EITHer: ACK or NACK
Usage: Query only
BUS<b>:I2C:FRAMe<n>:BYTE<o>COMPlete? Returnstheinformationwhetheradatabyteofaframeisreceivedcomplete.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteComplete> ON|OFF
ON: Databytewasreceivedcompletely.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
126
Command Reference
SCPI Programmers Manual
2.11.6 UART
UART - Configuration BUS<b>:UART:DATA:SOURce<Source> ............................................................................... 126BUS<b>:UART:DATA:POLarity<Polarity> ............................................................................... 126BUS<b>:UART:SSIZe<SymbolSize> ...................................................................................... 127BUS<b>:UART:PARity<Parity> ............................................................................................... 127BUS<b>:UART:SBIT<StopBitNumber> .................................................................................. 127BUS<b>:UART:BAUDrate<Baudrate> .................................................................................... 128BUS<b>:UART:BITime<BurstIdleTime> ................................................................................. 128
Trigger TRIGger:A:UART:MODE<Mode> ............................................................................................ 128TRIGger:A:UART:PATTern<DataPattern> ................................................................................ 129TRIGger:A:UART:PLENgth<PatternLength> ........................................................................... 129TRIGger:A:UART:POFFset<PatternByteOffset> ...................................................................... 129
DecodeBUS<b>:UART:FCOunt? .......................................................................................................... 130BUS<b>:UART:WORD<n>:RXValue? ...................................................................................... 130BUS<b>:UART:WORD<n>:TXValue? ...................................................................................... 130BUS<b>:UART:WORD<n>:COUNt? ........................................................................................ 130BUS<b>:UART:WORD<n>:STARt? ......................................................................................... 131BUS<b>:UART:WORD<n>:STOP? .......................................................................................... 131BUS<b>:UART:WORD<n>:STATe? .......................................................................................... 132BUS<b>:UART:WORD<n>:SOURce? ...................................................................................... 132
BUS<b>:UART:DATA:SOURce <Source> Selects the input channel of the UART signal.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Source> CH1|CH2|D0....D7
*RST:CH1
BUS<b>:UART:DATA:POLarity <Polarity> Definesifthetransmitteddataonthebusishigh(high=1)orlow(low=1)active.
Suffix: <b> 1,2 Selectsthebus.
SCPI Commands R&S®HMO1002 Remote Control
127
Command Reference
SCPI Programmers Manual
Parameters: <Polarity> POSitive|NEGative
POSitive: Highactive NEGative: Lowactive
*RST:POS
BUS<b>:UART:SSIZe <SymbolSize> Setsthenumberofdatabitsinamessage.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <SymbolSize> Range: 5to9 Defaultunit: Bit *RST:8
BUS<b>:UART:PARity <Parity> Definestheoptionalparitybitthatisusedforerrordetection.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Parity> ODD|EVEN|NONE
*RST:NONE
BUS<b>:UART:SBIT <StopBitNumber> Setsthestopbits.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <StopBitNumber> B1|B1_5|B2 1;1.5or2stopbitsarepossible.
*RST:B1
SCPI Commands R&S®HMO1002 Remote Control
128
Command Reference
SCPI Programmers Manual
BUS<b>:UART:BAUDrate <Baudrate> Setstheuserdefinednumberoftransmittedbitspersecond.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <Baudrate> Range: 6.0E+01to1.56E+07 Defaultunit: Bit
*RST:1.15200E+05
BUS<b>:UART:BITime <BurstIdleTime> Setstheminimaltimebetweentwodataframes(packets),thatis,betweenthelaststopbitandthestartbitofthenextframe.
Suffix: <b> 1,2 Selectsthebus.
Parameters: <BurstIdleTime> Range: 9.54880E-05to2.6843137E-01 Defaultunit: s
*RST:1.1458333E-03
TRIGger:A:UART:MODE <Mode> SpecifiesthetriggermodeforUART/RS-232interfaces.
Parameters: <Mode> BSTart|SBIT|NTHSymbol|SYMBol|PATTern|PERRor|FERRor| BREak
BSTart Burststart.Setsthetriggertothebeginofadataframe.Theframestart isthefirststartbitaftertheidletime.
SBIT Thestartbitisthefirstlowbitafterastopbit.
NTHSymbol Setsthetriggertothen-thsymbolofaburst.
SYMBol Triggersifapatternoccursinasymbolatanypositioninaburst.
SCPI Commands R&S®HMO1002 Remote Control
129
Command Reference
SCPI Programmers Manual
PATTern Triggersonaserialpatternatadefinedpositionintheburst.Todefine thepattern,useTRIGger:A:UART:PLENgthand TRIGger:A:UART:PATTern.Todefinetheposition,use TRIGger:A:UART:POFFset.
PERRor ParityError:Triggersifabiterroroccuredintransmission.
FERRor Triggers on frame error.
BREak Triggersifastartbitisnotfollowedbyastopbitwithinadefinedtime. Duringthebreakthestopbitsareatlowstate.
*RST:SBIT
TRIGger:A:UART:PATTern <DataPattern> Definesthebitpatternastriggercondition.
Parameters: <DataPattern> Binarypatternwithmax.32bit.Characters0,1,andXareallowed.
*RST:1(=„00000001“)
TRIGger:A:UART:PLENgth <PatternLength> Defineshowmanysymbolsbuilduptheserialpattern.
Parameters: <PatternLength> Numberofsymbols Range: 1 to 3
*RST:1
TRIGger:A:UART:POFFset <PatternByteOffset> Setsthenumberofsymbolsbeforethefirstsymbolofthepattern.
Parameters: <PatternByteOffset> Numberofignoredsymbols Range: 0 to 4095
SCPI Commands R&S®HMO1002 Remote Control
130
Command Reference
SCPI Programmers Manual
BUS<b>:UART:FCOunt? Returnsthenumberofframes.
Suffix: <b> 1,2 Selectsthebus.
Return values:<FrameCount> Totalnumberofdecodedframes.
BUS<b>:UART:WORD<n>:RXValue? ReturnsthevalueofRX.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Value> Decimalvalue Range: 0 to 511
Usage: Query only
BUS<b>:UART:WORD<n>:TXValue? Returns the value of TX.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<Value> Decimalvalue Range: 0 to 511
Usage: Query only
BUS<b>:UART:WORD<n>:COUNt? Returnsthenumberofwordsofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
SCPI Commands R&S®HMO1002 Remote Control
131
Command Reference
SCPI Programmers Manual
Return values:<WordCount> Numberofwords(symbols,characters)
Usage: Query only
BUS<b>:UART:WORD<n>:STARt? Returns the start time of a word of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range: dependsonsamplerateandtimebase Defaultunit: s
Usage: Query only
BUS<b>:UART:WORD<n>:STOP? Returns the stop time of a word of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StopTime> Range: dependsonsamplerateandtimebase Defaultunit: s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
132
Command Reference
SCPI Programmers Manual
BUS<b>:UART:WORD<n>:STATe? Returns the status of frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<FrameStatus> OK|FRSTart|FRENd|FRMError|STERror|SPERror|PRERror| INSufficient
OK: Frame is o.k. FRSTart: Frame start FRENd: Frame end FRMError: Frame error STERror: Startbiterror SPERror: Stopbiterror PRERror: Parityerror INSufficient: Frameisinsufficient
*RST:OK
Usage: Query only
BUS<b>:UART:WORD<n>:SOURce? Returns the source of transmision.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<SourceLine> RX | TX
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
133
Command Reference
SCPI Programmers Manual
2.11.7 CAN
CAN - Configuration BUS<b>:CAN:DATA:SOURce<Source> ................................................................................. 134BUS<b>:CAN:TYPE<SignalType> .......................................................................................... 134BUS<b>:CAN:SAMPlepoint<SamplePoint> ........................................................................... 134BUS<b>:CAN:BITRate<BitRate> ............................................................................................ 134
Trigger TRIGger:A:CAN:TYPE<TriggerType> ....................................................................................... 135TRIGger:A:CAN:FTYPe<FrameType> ...................................................................................... 135TRIGger:A:CAN:ITYPe<IdentifierType> ................................................................................... 135TRIGger:A:CAN:ICONdition<IdentifierCondition> .................................................................. 136TRIGger:A:CAN:IDENtifier<Identifier> .................................................................................... 136TRIGger:A:CAN:DCONdition<DataCondition> ....................................................................... 136TRIGger:A:CAN:DATA<Data> ................................................................................................. 136TRIGger:A:CAN:DLENgth<DataLength> ................................................................................ 137TRIGger:A:CAN:ACKerror<AcknowledgeError> ..................................................................... 137TRIGger:A:CAN:CRCerror <CRCerror> .................................................................................... 137TRIGger:A:CAN:FROMerror<FormError> ............................................................................... 137TRIGger:A:CAN:BITSterror<BitStuffingError> ........................................................................ 137
DecodeBUS<b>:CAN:FCOunt? ............................................................................................................ 138BUS<b>:CAN:FRAMe<n>:STATus? ......................................................................................... 138BUS<b>:CAN:FRAME<n>:STARt? .......................................................................................... 138BUS<b>:CAN:FRAME<n>:STOP? ........................................................................................... 139BUS<b>:CAN:FRAME<n>:TYPE? ........................................................................................... 139BUS<b>:CAN:FRAME<n>:DATA? ........................................................................................... 139BUS<b>:CAN:FRAME<n>:ACKState? ..................................................................................... 140BUS<b>:CAN:FRAME<n>:CSState? ....................................................................................... 140BUS<b>:CAN:FRAME<n>:DLCState? ..................................................................................... 140BUS<b>:CAN:FRAME<n>:IDSTate? ........................................................................................ 141BUS<b>:CAN:FRAME<n>:ACKValue? .................................................................................... 141BUS<b>:CAN:FRAME<n>:CSValue? ...................................................................................... 141BUS<b>:CAN:FRAME<n>:DLCValue? .................................................................................... 142BUS<b>:CAN:FRAME<n>:IDTYpe? ........................................................................................ 142BUS<b>:CAN:FRAME<n>:IDValue? ....................................................................................... 142BUS<b>:CAN:FRAME<n>:BSEPosition? ................................................................................. 143BUS<b>:CAN:FRAME<n>:BCOunt? ....................................................................................... 143BUS<b>:CAN:FRAME<n>:BYTE<o>:STATe? .......................................................................... 143BUS<b>:CAN:FRAME<n>:BYTE<o>:VALue? ......................................................................... 144
SCPI Commands R&S®HMO1002 Remote Control
134
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:DATA:SOURce <Source> Sets the input channel to which the data line is connected.
Parameters: <b> 1,2 Selectsthebus.
<Source> CH1|CH2|D0....D7
*RST:CH1
BUS<b>:CAN:TYPE <SignalType> Sets the signal type of the CAN.
Parameters:<b> 1,2 Selectsthebus.
<SignalType> CANH | CANL CANH: CAN High CANL: CAN Low
*RST:CANH
BUS<b>:CAN:SAMPlepoint <SamplePoint> SetsthesamplepointfortheCANDecoderwithinthebitperiod.
Parameters:<b> 1,2 Selectsthebus.
<SamplePoint> Range: 25 to 90 Unit: %
*RST:50
BUS<b>:CAN:BITRate <BitRate> SetstheuserdefinedbitratefortheCANDecoder.
Parameters:<b> 1,2 Selectsthebus.
<BitRate> Range:1.00E+02to1.0081E+06 Unit: Bit/s *RST:5.0000E+04
SCPI Commands R&S®HMO1002 Remote Control
135
Command Reference
SCPI Programmers Manual
TRIGger:A:CAN:TYPE <TriggerType> SpecifiesthetriggertypeforCAN.
Parameters: <TriggerType> STOFrame|EOFrame|ID|IDDT|FTYPe|ERRCondition
STOFrame: Sets the trigger to the start of a frame. EOFrame: Sets the trigger to the end of a frame. ID: SetsthetriggertotheIDofaframe. IDDT: SetsthetriggertotheIDanddataofaframe. FTYPe: Sets the trigger to the frame type. ERRCondition: Sets the trigger to the error condition of a frame.
*RST:STOF
TRIGger:A:CAN:FTYPe <FrameType> SpecifiestheframetypeforCAN.
Parameters: <FrameType> DATA|REMote|ERRor|OVERload|ANY
DATA: Sets the frame type to data. REMote: Sets the frame type to remote. ERRor: Sets the frame type to error. OVERload: Setstheframetypetooverload. ANY: Sets the frame type to any.
*RST:ERR
TRIGger:A:CAN:ITYPe <IdentifierType> SpecifiestheidentifiertypeforCAN.IfthetriggertypeIDisset,onlyB11orB29areallowed.
Parameters: <IdentifierType> B11 | B29
B11: Setstheidentifiertype11Bit. B29: Setstheidentifiertype29Bit. *RST:B11
SCPI Commands R&S®HMO1002 Remote Control
136
Command Reference
SCPI Programmers Manual
TRIGger:A:CAN:ICONdition <IdentifierCondition> Specifiestheconditionfortheidentifier.
Parameters: <IdentifierCondition> EQUual | NEQual | GTHan | LTHan
EQUual: Setstheconditionforidentifiertoequal. NEQual: Setstheconditionforidentifiertonotequal. GTHan: Setstheconditionforidentifiertogreaterthan. LTHan: Setstheconditionforidentifiertolessthan.
*RST:EQU
TRIGger:A:CAN:IDENtifier <Identifier> Specifiestheidentifier,dependingofTRIGger:A:CAN:ITYPe<IdentifierType>settingonlystringwith11or29charactersispossible.
Parameters: <Identifier> Stringcontainingbinarypatternwithmax.29bit. Characters 0, 1 and X are allowed.
TRIGger:A:CAN:DCONdition <DataCondition> Specifiestheconditionforthedata.
Parameters: <DataCondition> EQUual | NEQual | GTHan | LTHan
EQUual: Setstheconditionforidentifiertoequal. NEQual: Setstheconditionforidentifiertonotequal. GTHan: Setstheconditionforidentifiertogreaterthan. LTHan: Setstheconditionforidentifiertolessthan.
*RST:EQU
TRIGger:A:CAN:DATA <Data> SpecifiesthedataforCANtrigger.DependingofTRIGger:A:CAN:DLENgth<DataLength>set-tingthenumberofcharactersisfixed,allbytesneedtobecomplete.
Parameters: <Data> Stringcontainingbinarypatternwithmax.64bit. Characters0,1andXareallowed.Makesuretoentercompletebytes. Example: TRIG:A:CAN:DATA„10010110“
SCPI Commands R&S®HMO1002 Remote Control
137
Command Reference
SCPI Programmers Manual
TRIGger:A:CAN:DLENgth <DataLength> SpecifiesthedatalengthfortheCANtrigger.
Parameters: <DataLength> Range: 0 to 8 Unit: Byte
*RST:1
TRIGger:A:CAN:ACKerror <AcknowledgeError> Specifiesthetriggeronacknowledgeerrorwhentriggertypeissettoerror,usingTRIGger:A:CAN:TYPE<TriggerType>. An acknowledgement error occurs when the transmitterdoesnotreceiveanacknowledgment-adominantbitduringtheAckSlot.
Parameters: <AcknowledgeError> ON|OFF
*RST:OFF
TRIGger:A:CAN:CRCerror <CRCerror> Specifiesthetriggeronchecksumerrorwhentriggertypeissettoerror,usingTRIGger:A:CAN:TYPE<TriggerType>.
Parameters: <CRCerror> ON|OFF
*RST:OFF
TRIGger:A:CAN:FROMerror <FormError> Specifiesthetriggeronformerrorwhentriggertypeissettoerror,usingTRIGger:A:CAN:TYPE<TriggerType>.Aformerroroccurswhenafixed-formbitfieldcontainsoneormoreillegalbits.
Parameters: <FormError> ON|OFF
*RST:OFF
TRIGger:A:CAN:BITSterror <BitStuffingError> Specifiesthetriggeronstuffbiterrorwhentriggertypeissettoerror,usingTRIGger:A:CAN:TYPE<TriggerType>.
Parameters: <BitStuffingError> ON|OFF
*RST:ON
SCPI Commands R&S®HMO1002 Remote Control
138
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FCOunt? Returnsthenumberofframes.
Suffix: <b> 1,2 Selectsthebus.
Return values:<FrameCount> Totalnumberofdecodedframes.
Usage: Query only
BUS<b>:CAN:FRAMe<n>:STATus? Returns the status of frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<State> OK|BTST|CRC|FORM|NACK|INSufficient
OK: Frameisvalid. BTST: Bit stuff error occured. CRC: Cyclic redundancy check failed. FORM: WrongCRC,ACKdelimiterorendofframeoccured. NACK: Acknowledge is missing. INSufficient: Frame is incomplete.
BUS<b>:CAN:FRAME<n>:STARt? Returns the start time of a frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range: dependsonsamplerateandtimebase Defaultunit: s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
139
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:STOP? Returns the stop time of a frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StopTime> Range: dependsonsamplerateandtimebase Defaultunit: s
Usage: Query only
BUS<b>:CAN:FRAME<n>:TYPE? Returns the frame type.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<FrameType> DATA|REMote|ERR|OVLD
DATA: Frame type is data. REMote: Frame type is remote. ERR: Frame type is error. OVLD: Frametypeisoverload.
Usage: Query only
BUS<b>:CAN:FRAME<n>:DATA? Returnsacommaseparatedlistofdecimalvalues.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<FrameData> Commaseparatedlistofdecimalvaluesofdatabytesofaframe:
SCPI Commands R&S®HMO1002 Remote Control
140
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:ACKState? Returnsthestatusoftheacknowledgefieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AcknowledgeState> OK|UNDF
OK: Acknowledge state is o.k. UNDF: Acknowledgestateisundefined.
Usage: Query only
BUS<b>:CAN:FRAME<n>:CSState? Returnsthestatusofthechecksumfieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ChecksumState> OK|UNDF
OK: Acknowledge state is o.k. UNDF: Acknowledgestateisundefined.
Usage: Query only
BUS<b>:CAN:FRAME<n>:DLCState? Returns the status of the data length code of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<DataLengthCodeState> OK|UNDF
OK: Datalengthcodestateiso.k. UNDF: Datalengthcodestateisundefined.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
141
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:IDSTate? Returnsthestatusoftheidentifierfieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierState> OK|UNDF
OK: Identifierstateiso.k. UNDF: Identifierstateisundefined.
Usage: Query only
BUS<b>:CAN:FRAME<n>:ACKValue? Returnsthevalueoftheacknowledgebitofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<AcknowledgeValue> Decimalvalue
Usage: Query only
BUS<b>:CAN:FRAME<n>:CSValue? Returnsthevalueofthechecksumofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ChecksumValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
142
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:DLCValue? Returnsthevalueofthedatalengthcodefieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<DataLengthCodeValue> Non-negativeinteger
Usage: Query only
BUS<b>:CAN:FRAME<n>:IDTYpe? Returnsthelengthoftheidentifier:11bitforCANbaseframes,or29bitsforCANextendedframes.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierType> B11 | B29
B11: Identifiertypeis11bit B29: Identifiertypeis29bit
Usage: Query only
BUS<b>:CAN:FRAME<n>:IDValue? Returnsthevalueoftheidentifierofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
143
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:BSEPosition? Returnsthepositiontimeofthebitstuffingerrorinthespecifiedframe(ifavailable).
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<BitStuffingErrorPosition> Defaultunit:s
*RST:0
Usage: Query only
BUS<b>:CAN:FRAME<n>:BCOunt? Returnsthenumberofdatabytesofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ByteCount> Numberofwords(bytes)
Usage: Query only
BUS<b>:CAN:FRAME<n>:BYTE<o>:STATe? Returnsthestateoftheadatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteStatus> OK|UNDF
OK: Databytestateiso.k. UNDF: Databytestateisundefined.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
144
Command Reference
SCPI Programmers Manual
BUS<b>:CAN:FRAME<n>:BYTE<o>:VALue? Returnsthevalueofthedatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
145
Command Reference
SCPI Programmers Manual
2.11.8 LIN
LIN - Configuration BUS<b>:LIN:DATA:SOURce<Source> ................................................................................... 145BUS<b>:LIN:POLarity<Polarity> ............................................................................................ 146BUS<b>:LIN:STANdard<Standard> ....................................................................................... 146BUS<b>:LIN:BITRate<BitRate> .............................................................................................. 146
Trigger TRIGger:A:LIN:TYPE<TriggerType> ........................................................................................ 147TRIGger:A:LIN:ICONdition<IdentifierCondition> .................................................................... 147TRIGger:A:LIN:IDENtifier<Identifier> ...................................................................................... 147TRIGger:A:LIN:DCONdition<DataCondition> ......................................................................... 147TRIGger:A:LIN:DATA<Data> ................................................................................................... 148TRIGger:A:LIN:DLENgth<DataLength> .................................................................................. 148TRIGger:A:LIN:CHKSerror<ChecksumError> ......................................................................... 148TRIGger:A:LIN:IPERerror<IdentifierParityError> ..................................................................... 148TRIGger:A:LIN:SYERror <SynchronisationError> .................................................................... 148
DecodeBUS<b>:LIN:FCOunt? .............................................................................................................. 149BUS<b>:LIN:FRAME<n>:STATus? .......................................................................................... 149BUS<b>:LIN:FRAME<n>:STARt? ............................................................................................ 149BUS<b>:LIN:FRAME<n>:STOP? ............................................................................................. 150BUS<b>:LIN:FRAME<n>:VERSion? ........................................................................................ 150BUS<b>:LIN:FRAME<n>:DATA? ............................................................................................. 150BUS<b>:LIN:FRAME<n>:IDSTate<IdentifierState> ............................................................... 151BUS<b>:LIN:FRAME<n>:IDValue? ......................................................................................... 151BUS<b>:LIN:FRAME<n>:IDPValue? ....................................................................................... 151BUS<b>:LIN:FRAME<n>:SYSTate? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:CSSTate? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:CSValue? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:BCOunt? ......................................................................................... 153BUS<b>:LIN:FRAME<n>:BYTE<o>:STATe? ............................................................................ 153BUS<b>:LIN:FRAME<n>:BYTE<o>:VALue? ........................................................................... 153
BUS<b>:LIN:DATA:SOURce <Source> Sets the input channel to which the data line is connected.
Suffix:<b> 1,2 Selectsthebus.
Parameters:<Source> CH1|CH2|D0....D7
*RST:CH1
SCPI Commands R&S®HMO1002 Remote Control
146
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:POLarity <Polarity> Sets the polarity of the LIN.
Suffix:<b> 1,2 Selectsthebus.
Parameters:<Polarity> POSitive|NEGative
*RST:POS
BUS<b>:LIN:STANdard <Standard> SelectstheversionoftheLINstandardthatisusedintheDUT.Thesettingmainlydefinesthechecksumversionusedduringdecoding.ThemostcommonversionisLIN2.x.Formixednetworks,orifthestandardisunknown,settheLINstandardtoAUTO.
Suffix:<b> 1,2 Selectsthebus.
Parameters:<Standard> V1X|V2X|J2602|AUTO
V1X: LINStandardV1.x V2X: LINStandardV2.x J2602: LINStandardJ206(setsalsoBitRateto10.417KBit/s) AUTO: Any standard
*RST:V1X
BUS<b>:LIN:BITRate <BitRate> SetstheuserdefinedbitratefortheCANDecoder.
Suffix:<b> 1,2 Selectsthebus.
Parameters:<BitRate> Range: 1.00E+02to1.0081E+06 Unit: Bit/s
*RST:9.6E+03
SCPI Commands R&S®HMO1002 Remote Control
147
Command Reference
SCPI Programmers Manual
TRIGger:A:LIN:TYPE <TriggerType> SpecifiesthetriggertypeforLIN.
Parameters: <TriggerType> SYNC|WKFRame|ID|IDDT|ERRCondition
SYNC: Sets the trigger to the synchronisation. WKFRame: Sets the trigger to the wake up frame. ID: SetsthetriggertotheIDofaframe. IDDT: SetsthetriggertotheIDanddataofaframe. ERRCondition: Sets the trigger to the error condition of a frame.
*RST:SYNC
TRIGger:A:LIN:ICONdition <IdentifierCondition> Specifiestheconditionfortheidentifier.
Parameters: <IdentifierCondition> EQUual | NEQual | GTHan | LTHan
EQUual: Setstheconditionforidentifiertoequal. NEQual: Setstheconditionforidentifiertonotequal. GTHan: Setstheconditionforidentifiertogreaterthan. LTHan: Setstheconditionforidentifiertolessthan.
*RST:EQU
TRIGger:A:LIN:IDENtifier <Identifier> Specifiestheidentifier,only6characterareallowed.
Parameters: <Identifier> Stringcontainingbinarypattern.Characters0,1,andXareallowed. Enterthe6bitidentifierwithoutparitybits,nottheprotectedidentifier.
Example: TRIG:A:LIN:IDEN„100001“
TRIGger:A:LIN:DCONdition <DataCondition> Specifiestheconditionforthedata.
Parameters: <DataCondition> EQUual | NEQual | GTHan | LTHan
EQUual: Setstheconditionforidentifiertoequal. NEQual: Setstheconditionforidentifiertonotequal. GTHan: Setstheconditionforidentifiertogreaterthan. LTHan: Setstheconditionforidentifiertolessthan.
*RST:EQU
SCPI Commands R&S®HMO1002 Remote Control
148
Command Reference
SCPI Programmers Manual
TRIGger:A:LIN:DATA <Data> SpecifiesthedataforLINtrigger.DependingofTRIGger:A:LIN:DLENgth<DataLength>settingthenumberofcharactersisfixed,allbytesneedtobecomplete.
Parameters: <Data> Stringcontainingbinarypatternwithmax.64bit. Characters 0, 1 and X are allowed.
Example: TRIG:A:LIN:DATA„10100101“
TRIGger:A:LIN:DLENgth <DataLength> Definesthelengthofthedatapattern-thenumberofbytesinthepattern.
Parameters: <DataLength> Range: 1 to 8
*RST:1
TRIGger:A:LIN:CHKSerror <ChecksumError> Triggers on a checksum error when trigger type is set to error condition, using TRIGger:A:LIN:TYPE<TriggerType>.Thechecksumverifiesthecorrectdatatransmission.Itisthelastbyteoftheframeresponse.
Parameters: <ChecksumError> ON|OFF
*RST:ON
TRIGger:A:LIN:IPERerror <IdentifierParityError> Triggers on a parity error when trigger type is set to error condition, using TRIGger:A:LIN:TYPE<TriggerType>.Paritybitsarethebits6and7oftheidentifier.Theyverifythecorrecttransmissi-onoftheidentifier.
Parameters: <IdentifierParityError> ON|OFF *RST:OFF
TRIGger:A:LIN:SYERror <SynchronisationError> Specifiesthetriggeronsynchronisationerrorwhentriggertypeissettoerror,usingTRIGger:A:LIN:TYPE<TriggerType>.
Parameters: <SynchronisationError> ON|OFF *RST:OFF
SCPI Commands R&S®HMO1002 Remote Control
149
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:FCOunt? ReturnsthenumberofreceivedframesoftheactiveLINbus.
Suffix: <b> 1,2 Selectsthebus.
Return values:<FrameCount> Totalnumberofdecodedframes.
Usage: Query only
BUS<b>:LIN:FRAME<n>:STATus? Returns the status of frames.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<State> OK|CHKS|WAKeup|SYER|INS|ERR|UNDF|IPER
OK: Frameisvalid. CHKS: Checksum error occured. WAKeup: Wake up occured. SYER: Synchronisation INSufficient: Identifierisinsufficient. ERRor: Error UNDF: Undefined Usage: Query only
BUS<b>:LIN:FRAME<n>:STARt? Returns the start time of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StartTime> Range:dependsonsamplerateandtimebase Defaultunit:s
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
150
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:FRAME<n>:STOP? Returns the stop time of a frame.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<StopTime> Range:dependsonsamplerateandtimebase Defaultunit:s
Usage: Query only
BUS<b>:LIN:FRAME<n>:VERSion? ReturnstheversionofLIN.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<FrameVersion> V1X|V2X|J2602|UNK
V1X: LINversionis1.x V2X: LINversionis2.x J2602: LINversionisJ2602 UNK: LINversionisunknown
Usage: Query only
BUS<b>:LIN:FRAME<n>:DATA? Returnsacommaseparatedlistofdecimalvaluesofthedatabytes.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<FrameData> Commaseparatedlistofdecimalvaluesofdatabytesofaframe.
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
151
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:FRAME<n>:IDSTate <IdentifierState> Returnsthestatusoftheidentifierfieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierState> OK|PRERror|UNDF|INSufficient
OK: Identifierstateiso.k. PRERror: Parityerrorattheidentifier. UNDF: Addressisundefined. INSufficient: Identifierisinsufficient.
Usage: Query only
BUS<b>:LIN:FRAME<n>:IDValue? Returnsthevalueoftheidentifierofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierValue> Decimalvalue
Usage: Query only
BUS<b>:LIN:FRAME<n>:IDPValue? Returnsthevalueoftheparityoftheidentifierofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<IdentifierParityValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
152
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:FRAME<n>:SYSTate? Returnsthestatusofsynchronizationfieldofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<SyncFieldState> OK|ERR|UNDF
OK: Syncfieldstateiso.k. ERR: Sync error. UNDF: Syncfieldstateisundefined.
Usage: Query only
BUS<b>:LIN:FRAME<n>:CSSTate? Returns the state of the checksum of a frame.
Suffix: <b> 1,2 Selectsthebus.<n> Selects the frame.
Return values:<ChecksumState> OK|ERR|UNDF
OK: Checksumfieldstateiso.k. ERR: Checksum error. UNDF: Checksumstateisundefined.
Usage: Query only
BUS<b>:LIN:FRAME<n>:CSValue? Returnsthevalueofthechecksumofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ChecksumValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
153
Command Reference
SCPI Programmers Manual
BUS<b>:LIN:FRAME<n>:BCOunt? Returnsthenumberofbytesofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
Return values:<ByteCount> Numberofwords(bytes)
Usage: Query only
BUS<b>:LIN:FRAME<n>:BYTE<o>:STATe? Returnsthestatusofadatabyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteStatus> OK|INS|UART
OK: Byte status is o.k. INS: Bytestatusisinsufficient. UART: Errorwithinthebyte.
Usage: Query only
BUS<b>:LIN:FRAME<n>:BYTE<o>:VALue? Returnsthevalueofthebyteofaframe.
Suffix: <b> 1,2 Selectsthebus.
<n> Selects the frame.
<o> Selectsthebytenumber.
Return values:<ByteValue> Decimalvalue
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
154
Command Reference
SCPI Programmers Manual
2.12 Data and File Management Thischapterdescribescommandsthatstoreorrestoredataandmeasurementresults.
2.12.1 Output Control
HCOPy:DESTination<Medium> .............................................................................................. 154MMEMory:NAME <FileName> ............................................................................................... 154HCOPy[:IMMediate] ................................................................................................................. 155HCOPy:LANGuage<Format> .................................................................................................. 155HCOPy:PAGE:SIZE<Size> ....................................................................................................... 155HCOPy:PAGE:ORIentation<Orientation> ................................................................................ 155HCOPy:COLOR:SCHeme<ColorScheme> .............................................................................. 155SYSTem:COMMunicate:PRINter:SELect<PrinterName> ........................................................ 156SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt? ............................................................... 156SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]? ............................................................ 156SYSTem:EDUCation:PRESet .................................................................................................... 156
HCOPy:DESTination <Medium> Defineswhetherthescreenshotissavedorprinted.
Parameters: <Medium> „MMEM“|„SYST:COMM:PRIN“
„MMEM“ Savesthescreenshottoafile.Specifythefilenameandlocationwith MMEMory:NAME.
„SYST:COMM:PRIN“ PrintsontheprinterspecifiedwithSYSTem:COMMunicate:PRINter:SEL ect.TheprintermustbespecifiedbeforetheHCOPy:DESTinationis sent.
*RST:„MMEM“
MMEMory:NAME <FileName> DefinesthefilenametostoreanimageofthedisplaywithHCOPy[:IMMediate].
Parameters: <FileName> String parameter
SCPI Commands R&S®HMO1002 Remote Control
155
Command Reference
SCPI Programmers Manual
HCOPy[:IMMediate] Printsanimageofthedisplaytotheprinterorsavesanimagetoafileortheclipboard,depen-ding on the HCOPy:DESTination setting.
TheprinterisdefinedbySYSTem:COMMunicate:PRINter:SELect.
ThefilenameforstorageisdefinedbyMMEMory:NAME.
Usage: Event
HCOPy:LANGuage <Format> Definestheformatoftheprintedorsavedscreenshot.
Parameters:<Format> GDI|BMP|PNG|GIF
GDI: For output on printer BMP | PNG | GIF: Fileformatsforsavedscreenshots
*RST:PNG
HCOPy:PAGE:SIZE <Size> Definesthepagesizetobeused.
Parameters: <Size> A4|A5|B5|B6|EXECutive
HCOPy:PAGE:ORIentation <Orientation> Definesthepageorientation.
Parameters: <Orientation> LANDscape|PORTrait
HCOPy:COLOR:SCHeme <ColorScheme> Definesthecolormodeforsavedandprintedscreenshots.
Parameters: <ColorScheme> COLor|GRAYscale|INVerted INVerted Invertsthecolorsoftheoutput,i.e.adarkwaveformisprintedona whitebackground.
*RST:COLor
SCPI Commands R&S®HMO1002 Remote Control
156
Command Reference
SCPI Programmers Manual
SYSTem:COMMunicate:PRINter:SELect <PrinterName> Selectsaconfiguredprinter.
Parameters: <PrinterName> Stringparameter Enter the string as it is returned with SYSTem:COMMunicate:PRINter:ENUMerate:FIRStor SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT].
SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt? Queriesthenameofthefirstprinterinthelistofprinters.ThenamesofotherinstalledprinterscanbequeriedwiththeSYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]command.
Return values: <PrinterName> Stringparameter Enter the string as it is returned with SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt?or SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]?: Ifnoprinterisconfiguredanemptystringisreturned.
Usage: Query only
SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]? Queriesthenameofthenextprinterinstalled.TheSYSTem:COMMunicate:PRINter:ENUMerate:FIRStcommandshouldbesentpreviouslytoreturntothebeginningoftheprinterlistandquerythenameofthefirstprinter.
Return values: <PrinterName> Stringparameter Afterallavailableprinternameshavebeenreturned,anemptystring enclosedbyquotationmarks(„)isreturnedforthenextquery.Further queriesareansweredbyaqueryerror.
Usage: Query only
SYSTem:EDUCation:PRESetErases the password protection of the education mode.
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
157
Command Reference
SCPI Programmers Manual
2.12.2 MMEMory Commands TheMassMEMomorysubsystemprovidescommandstoaccessthestoragemediaandtosaveand reload instrument settings.
Theoscilloscopehastwostoragedevicesindicatedasdrives:• /INT: internal storage with default directories for each data type • /USB_FRONT:USBconnectoronthefrontpanel
CommoncomputerandnetworkdriveslikeC:,D:,\\server\sharearenotavailable.
Name conventions Thenamesoffilesanddirectorieshavetomeetthefollowingrules:• Onlythe8.3formatwithASCIIcharactersissupported.• No special characters are allowed. • Use/(slash)insteadof\(backslash).
MMEMory:DRIVes? .................................................................................................................. 157MMEMory:MSIS[<MassStorageIS>] ...................................................................................... 158MMEMory:DCATalog? .............................................................................................................. 158MMEMory:DCATalog:LENGth?<PathName> .......................................................................... 158MMEMory:MDIRectory<DirectoryName> .............................................................................. 159MMEMory:CDIRectory[<DirectoryName>] ............................................................................ 159MMEMory:RDIRectory<DirectoryName> ............................................................................... 159MMEMory:CATalog?<PathName>[,<Format>] ....................................................................... 159MMEMory:CATalog:LENGth?<PathName> ............................................................................ 160MMEMory:COPY<FileSource>,<FileDestination> ................................................................. 160MMEMory:MOVE<FileSource>,<FileDestination> ................................................................ 161MMEMory:DELete<FileSource> ............................................................................................. 161MMEMory:DATA<FileName>,<Data> .................................................................................... 161MMEMory:STORe:STATe<StateNumber>,<FileName>[,<msus>] ......................................... 162MMEMory:LOAD:STATe<StateNumber>,<FileName>[,<msus>] .......................................... 162
MMEMory:DRIVes? Returnsthestoragedevicesavailableontheoscilloscope.
Return values: <Drive> Listofstrings
/INT: Internal storage /USB_FRONT: USB connector on the front panel
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
158
Command Reference
SCPI Programmers Manual
MMEMory:MSIS [<MassStorageIS>] Changesthestoragedevice(drive).
Parameters: <MassStorageIS> Oneoftheavailabledrives:/INTor/USB_FRONT
Example: MMEM:MSIS‚/USB_FRONT‘ SetsUSBstickconnectedtothefrontpanelasstoragedevice.
MMEMory:DCATalog? Returnsthesubdirectoriesofthespecifieddirectory.TheresultcorrespondstothenumberofstringsreturnedbytheMMEMory:DCATalog:LENgth? command.
Query Parameters: <PathName> Stringparameter Specifiesthedirectory.
Return values: <FileEntry> String parameter Listofsubdirectoriesseparatedbycolons.
Example: MMEM:DCAT?“/USB_FRONT” received“SCREENSHOTS”,“DATA”
Usage: Query only
MMEMory:DCATalog:LENGth? <PathName> Returnsthenumberofdirectoriesinspecifieddirectory.TheresultcorrespondstothenumberofstringsreturnedbytheMMEMory:DCATalog? command. Query Parameters: <PathName> Stringparameter Specifiesthedirectory.
Return values: <FileEntryCount> Numberofdirectories.
Example: MMEM:DCAT:LENG?“/USB_FRONT” received2
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
159
Command Reference
SCPI Programmers Manual
MMEMory:MDIRectory <DirectoryName> Createsanewdirectorywiththespecifiedname.
Setting Parameters: <DirectoryName> Stringparameter Completepathincludingthestoragedevice.
Example: CreatedirectoryDATAonthefrontUSBflashdevice,withabsolute path: MMEM:MDIR“/USB_FRONT/DATA”
Usage: Setting only
MMEMory:CDIRectory [<DirectoryName>] Changesthedefaultdirectoryforfileaccess.
Setting Parameters: <DirectoryName> Stringparametertospecifythedirectory. Ifthestringalsocontainsthestoragedevice,thecommand MMEM:MSISisexecutedimplicitely.
Example: MMEM:CDIR“/USB_FRONT/DATA”
MMEMory:RDIRectory <DirectoryName> Deletesthespecifieddirectory.Allsubdirectoriesandallfilesinthespecifieddirectoryandinthesubdirectorieswillbedeleted.Youcannotdeletethecurrentdirectoryorasuperiordirectory.
Setting Parameters: <DirectoryName> Stringparameter
Example: MMEM:RDIR“/INT/TEST”
Usage: Setting only
MMEMory:CATalog? <PathName>[,<Format>] Returnsthealistoffilescontainedinthespecifieddirectory.TheresultcorrespondstothenumberoffilesreturnedbytheMMEMory:CATalog:LENgth? command.
Query Parameters: <PathName> Stringparameter Specifiesthedirectory.
<Format> ALL | WTIMe ALL: Extendedresultincludingfile,date,timeandattributes WTIMe: Extendedresultincludingfile,date,time
SCPI Commands R&S®HMO1002 Remote Control
160
Command Reference
SCPI Programmers Manual
Return values: <UsedMemory> Totalamountofstoragecurrentlyusedinthedirectory,inbytes.
<FreeMemory> Totalamountofstorageavailableinthedirectory,inbytes.
<FileEntry> String parameter Allfilesofthedirectoryarelistedwiththeirfilename,formatandsizein bytes.
Example: MMEM:CAT?‚/INT/HELP/ENGLISH/*.HTM‘ Returnsallenglishhelpfiles
Usage: Query only
MMEMory:CATalog:LENGth? <PathName> Returnsthenumberoffilesinthespecifieddirectory.TheresultcorrespondstothenumberoffilesreturnedbytheMMEMory:CATalog? command.
Query Parameters: <PathName> Stringparameter Directotytobequeried
Return values: <Count> Numberoffiles.
Usage: Query only
MMEMory:COPY <FileSource>,<FileDestination> CopiesdatabetweentheinstrumentandaUSBstick.
Setting Parameters: <FileSource> String parameter Nameandpathofthefiletobecopied.
<FileDestination> Stringparameter Nameandpathofthenewfile.Ifthefilealreadyexists,itisoverwritten without notice.
Example: MMEM:COPY“/INT/SETTINGS/SET001.SET”, “/USB_FRONT/SETTINGS/TESTSET1.SET”
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
161
Command Reference
SCPI Programmers Manual
MMEMory:MOVE <FileSource>,<FileDestination> Movesanexistingfiletoanewlocation.
Setting Parameters: <FileSource> String parameter Pathandnameofthefiletobemoved.
<FileDestination> Stringparameter Pathandnameofthenewfile.
Example: MMEM:MOVE“/INT/SETTINGS/SET001.SET”, “/USB_FRONT/SETTINGS”
Usage: Setting only
MMEMory:DELete <FileSource> Removesafilefromthespecifieddirectory.
Setting Parameters: <FileSource> String parameter Nameanddirectoryofthefiletoberemoved.
Usage: Setting only
MMEMory:DATA <FileName>,<Data> StoresdatatothestoragelocationspecifiedusingMMEMory:CDIRectory.
Parameters: <Data> 488.2blockdata Theblockbeginswithcharacter‚#‘.Thenextdigitisthelengthofthe lengthinformation,followedbythisgivennumberofdigitsproviding thenumberofbytesinthebinarydataattached.
Parameters for setting and query: <FileName> String parameter Thenameofthefilethedataisstoredto.
Example: MMEM:DATA‚abc.txt‘#216Thisisthefile #2: the length infomation has two digits 16:thebinarydatahas16bytes. MMEM:DATA?„abc.txt“ received:Thisisthefile
SCPI Commands R&S®HMO1002 Remote Control
162
Command Reference
SCPI Programmers Manual
MMEMory:STORe:STATe <StateNumber>,<FileName>[,<msus>] Savesthecurrentdevicesettingstothespecifiedfile.
Setting Parameters: <StateNumber> State0(low)or1(high)1
<FileName> String parameter Pathandfilename
<msus> Storagedevice(drive),seealsoMMEMory:MSIS
Usage: Setting only
MMEMory:LOAD:STATe <StateNumber>,<FileName>[,<msus>] Loadsthedevicesettingsfromthespecifiedfile.
Setting Parameters: <StateNumber> State0(low)or1(high)
<FileName> String parameter Pathandfilename
<msus> Storagedevice(drive),seealsoMMEMory:MSIS
Usage: Setting only
SCPI Commands R&S®HMO1002 Remote Control
163
Command Reference
SCPI Programmers Manual
2.13 General Instrument Setup
DISPlay:LANGuage<Language> ............................................................................................. 163SYSTem:NAME ........................................................................................................................ 163SYSTem:DATE<Year>,<Month>,<Day> ................................................................................. 163SYSTem:TIME <Hour>,<Minute>,<Second> .......................................................................... 164SYSTem:TREE? ......................................................................................................................... 164SYSTem:SET <Setup> ............................................................................................................. 164SYSTem:ERRor:[NEXT]? ........................................................................................................... 164SYSTem:ERRor:ALL? ................................................................................................................ 165SYST:PRESet ............................................................................................................................ 165
DISPlay:LANGuage <Language> Setsthelanguageinwhichthesoftkeylabels,helpandotherscreeninformationcanbe displayed.Supportedlanguagesarelistedinthe„Specifications“datasheet.
Parameters: <Language> ENGLish|GERMan|FRENch|SPANish|RUSSian|SCHinese| TCHinese
*RST:Resetdoesnotchangethelanguage
SYSTem:NAME Definesaninstrumentname.
Parameters: <Name> Stringwithmax.20characters
SYSTem:DATE <Year>,<Month>,<Day> Specifiestheinternaldatefortheinstrument.
Parameters: <Year> Defaultunit: a
<Month> Range: 1 to 12
<Day> Range: 1to31 Defaultunit: d
Usage: SCPIconfirmed
SCPI Commands R&S®HMO1002 Remote Control
164
Command Reference
SCPI Programmers Manual
SYSTem:TIME <Hour>,<Minute>,<Second> Specifiestheinternaltimefortheinstrument.
Parameters: <Hour> Range: 0 to 23 Defaultunit: h
<Minute> Range: 0 to 59 Defaultunit: min
<Second> Range: 0 to 59 Defaultunit: s
Usage: SCPIconfirmed
SYSTem:TREE? Returns a list of implemented remote commands.
Usage: Query only
SYSTem:SET <Setup> DefinesorqueriesthedevicesettingsthatcanbesavedandloadmanuallywithSAVE/RECALL-->DeviceSettings.
Parameters: <Setup> 488.2blockdata
Usage: SCPIconfirmed
SYSTem:ERRor:[NEXT]? Queriestheerror/eventqueuefortheoldestitemandremovesitfromthequeue.Theresponseconsistsofanerrornumberandashortdescriptionoftheerror.Positiveerrornumbersareinstrument-dependent.NegativeerrornumbersarereservedbytheSCPIstandard.
Return values: <Error> Error/event_number,“Error/event_description>[;Devicedependentinfo]“ Ifthequeueisempty,theresponseis0,“Noerror“
Usage: Query only SCPIconfirmed
SCPI Commands R&S®HMO1002 Remote Control
165
Command Reference
SCPI Programmers Manual
SYSTem:ERRor:ALL? Queriestheerror/eventqueueforallunreaditemsandremovesthemfromthequeue.TheresponseisacommaseparatedlistoferrornumberandashortdescriptionoftheerrorinFIFOorder.Positiveerrornumbersareinstrument-dependent.Negativeerrornumbersare reservedbytheSCPIstandard.
Return values: <Error> Listof:Error/event_number,“Error/event_description>[;Devicedependentinfo]“ Ifthequeueisempty,theresponseis0,“Noerror”
Usage: Query only SCPIconfirmed
SYST:PRESet Resetstheinstrumenttothedefaultstate,hasthesameeffectas*RST.
Usage: Event
2.14 Status Reporting
2.14.1 STATus:OPERation Register
ThecommandsoftheSTATus:OPERationsubsystemcontrolthestatusreportingstructuresoftheSTATus:OPERationregister:See also: • chapter1.6.1,„StructureofaSCPIStatusRegister“• „STATus:OPERationRegister“
Thefollowingcommandsareavailable:STATus:OPERation:CONDition? ................................................................................................ 165STATus:OPERation:ENABle<Enable> ...................................................................................... 166STATus:OPERation:NTRansition<NegativeTransition> ............................................................ 166STATus:OPERation:PTRansition<PositiveTransition> .............................................................. 166STATus:OPERation[:EVENt]? .................................................................................................... 166
STATus:OPERation:CONDition? ReturnstheoftheCONDitionpartoftheoperationalstatusregister.
Return values: <Condition> Conditionbitsindecimalrepresentation.ALIGnment(bit0), SELFtest(bit1), AUToset(bit2),WTRigger(bit3). Range: 1 to 65535
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
166
Command Reference
SCPI Programmers Manual
STATus:OPERation:ENABle <Enable>
Parameters: <Enable> Range:1to65535
STATus:OPERation:NTRansition <NegativeTransition>
Parameters: <NegativeTransition> Range:1to65535
STATus:OPERation:PTRansition <PositiveTransition>
Parameters: <PositiveTransition> Range:1to65535
STATus:OPERation[:EVENt]?
Return values: <Event> Range:1to65535
Usage: Query only
SCPI Commands R&S®HMO1002 Remote Control
167
Command Reference
SCPI Programmers Manual
2.14.2 STATus:QUEStionable Registers
ThecommandsoftheSTATus:QUEStionablesubsystemcontrolthestatusreportingstructuresoftheSTATus:QUEStionableregisters:
Fig. 2.1: Structure of the STATus:QUEStionable register
See also: • chapter1.6.1,„StructureofaSCPIStatusRegister“• „STATus:QUEStionableRegister“
Thefollowingcommandsareavailable:STATus:PRESet ......................................................................................................................... 168STATus:QUEStionable:CONDition? ........................................................................................... 168STATus:QUEStionable:COVerload:CONDition? ........................................................................ 168STATus:QUEStionable:LIMit:CONDition? ................................................................................. 168
Remote ControlR&S® RTM
286User Manual 1305.0595.02 ─ 03
Fig. 12-4: Structure of the STATus:QUEStionable register
See also:● chapter 12.1.6.1, "Structure of a SCPI Status Register", on page 183● "STATus:QUEStionable Register", on page 188
The following commands are available:
STATus:PRESet............................................................................................................287STATus:QUEStionable:CONDition...................................................................................287STATus:QUEStionable:COVerload:CONDition..................................................................287STATus:QUEStionable:LIMit:CONDition...........................................................................287STATus:QUEStionable:MASK:CONDition.........................................................................287STATus:QUEStionable:ENABle.......................................................................................287STATus:QUEStionable:COVerload:ENABle......................................................................287STATus:QUEStionable:LIMit:ENABle...............................................................................287STATus:QUEStionable:MASK:ENABle.............................................................................287
Command Reference
SCPI Commands R&S®HMO1002 Remote Control
168
Command Reference
SCPI Programmers Manual
STATus:QUEStionable:MASK:CONDition? ............................................................................... 168STATus:QUEStionable:ENABle<Enable> ................................................................................ 168STATus:QUEStionable:COVerload:ENABle<Enable> .............................................................. 168STATus:QUEStionable:LIMit:ENABle<Enable> ....................................................................... 168STATus:QUEStionable:MASK:ENABle<Enable> ..................................................................... 168STATus:QUEStionable[:EVENt]? ............................................................................................... 169STATus:QUEStionable:COVerload[:EVENt]? ............................................................................. 169STATus:QUEStionable:LIMit[:EVENt]? ...................................................................................... 169STATus:QUEStionable:MASK[:EVENt]? .................................................................................... 169STATus:QUEStionable:NTRansition<NegativeTransition> ....................................................... 169STATus:QUEStionable:COVerload:NTRansition<NegativeTransition> .................................... 169STATus:QUEStionable:LIMit:NTRansition<NegativeTransition> ............................................ 169STATus:QUEStionable:MASK:NTRansition<NegativeTransition> .......................................... 169STATus:QUEStionable:PTRansition<PositiveTransition> ......................................................... 169STATus:QUEStionable:COVerload:PTRansition<PositiveTransition> ....................................... 169STATus:QUEStionable:LIMit:PTRansition<PositiveTransition> ................................................ 169STATus:QUEStionable:MASK:PTRansition<PositiveTransition> .............................................. 169
STATus:PRESet ResetsallSTATUS:QUESTIONALBLEregisters.
Usage: Event
STATus:QUEStionable:CONDition? STATus:QUEStionable:COVerload:CONDition? STATus:QUEStionable:LIMit:CONDition? STATus:QUEStionable:MASK:CONDition? ReturnsthecontentsoftheCONDitionpartofthestatusregistertocheckforquestionablein-strumentormeasurementstates.ReadingtheCONDitionregistersdoesnotdeletethecontents.
Return values: <Condition> Conditionbitsindecimalrepresentation Range: 1 to 65535
Usage: Query only
STATus:QUEStionable:ENABle <Enable> STATus:QUEStionable:COVerload:ENABle <Enable> STATus:QUEStionable:LIMit:ENABle <Enable> STATus:QUEStionable:MASK:ENABle <Enable> SetstheenablemaskthatallowstrueconditionsintheEVENtparttobereportedinthesum-marybit.Ifabitissetto1intheenablepartanditsassociatedeventbittransitionstotrue,apositivetransitionoccursinthesummarybitandisreportedtothenexthigherlevel.
Parameters: <Enable> Bitmaskindecimalrepresentation Range: 1 to 65535
SCPI Commands R&S®HMO1002 Remote Control
169
Command Reference
SCPI Programmers Manual
Example: STATus:QUEStionable:MASK:ENABle24 Setbitsno.3and4oftheSTATus:QUEStionable:MASK:ENABleregister part:24=8+16=23+24
STATus:QUEStionable[:EVENt]? STATus:QUEStionable:COVerload[:EVENt]? STATus:QUEStionable:LIMit[:EVENt]? STATus:QUEStionable:MASK[:EVENt]? ReturnsthecontentsoftheEVENtpartofthestatusregistertocheckwhetheraneventhasoccurred since the last reading. Reading an EVENt register deletes its contents.
Return values: <Event> Eventbitsindecimalrepresentation Range: 1 to 65535
Usage: Query only
STATus:QUEStionable:NTRansition <NegativeTransition> STATus:QUEStionable:COVerload:NTRansition <NegativeTransition> STATus:QUEStionable:LIMit:NTRansition <NegativeTransition> STATus:QUEStionable:MASK:NTRansition <NegativeTransition> Setsthenegativetransitionfilter.Ifabitisset,a1to0transitioninthecorrespondingbitoftheconditionregistercausesa1tobewritteninthecorrespondingbitoftheeventregister.
Parameters: <NegativeTransition> Bitmaskindecimalrepresentation Range: 1 to 65535
Example: STATus:QUEStionable:MASK:NTRansition24 Setbitsno.3and4oftheSTATus:QUEStionable:MASK:NTRansition registerpart:24=8+16=23+24
STATus:QUEStionable:PTRansition <PositiveTransition> STATus:QUEStionable:COVerload:PTRansition <PositiveTransition> STATus:QUEStionable:LIMit:PTRansition <PositiveTransition> STATus:QUEStionable:MASK:PTRansition <PositiveTransition> Setsthepositivetransitionfilter.Ifabitisset,a0to1transitioninthecorrespondingbitoftheconditionregistercausesa1tobewritteninthecorrespondingbitoftheeventregister.
Parameters: <PositiveTransition> Bitmaskindecimalrepresentation Range:1 to 65535
Example: STATus:QUEStionable:MASK:PTRansition24 Setbitsno.3and4oftheSTATus:QUEStionable:MASK:PTRansition registerpart:24=8+16=23+24
SCPI Commands R&S®HMO1002 Remote Control
170
List of Commands
SCPI Programmers Manual
List of Commands
3 SCPI Commands in alphabetic order
ACQuire:AVERage:COUNt<AverageCount> ............................................................................. 36ACQuire:FILTer:FREQency <FilterFrequency> ........................................................................... 38ACQuire:HRESolution <HighRes> ............................................................................................. 40ACQuire:INTerpolate <Interpolation> ......................................................................................... 36ACQuire:MODE<AcquisitionMode> ......................................................................................... 35ACQuire:PEAKdetect<PeakDetect> .......................................................................................... 39ACQuire:POINts:ARATe? ............................................................................................................ 38ACQuire:SRATe? ......................................................................................................................... 38ACQuire:STATe <Aquisition State> ............................................................................................ 39ACQuire:TYPE<AquisitionType> .............................................................................................. 39ACQuire:WRATe<WaveformRate> ........................................................................................... 36AUToscale ................................................................................................................................. 35
BUS<b>:CAN:BITRate<BitRate> ............................................................................................ 134BUS<b>:CAN:DATA:SOURce<Source> ................................................................................. 134BUS<b>:CAN:FCOunt? ............................................................................................................ 138BUS<b>:CAN:FRAME<n>:ACKState? ..................................................................................... 140BUS<b>:CAN:FRAME<n>:ACKValue? .................................................................................... 141BUS<b>:CAN:FRAME<n>:BCOunt? ....................................................................................... 143BUS<b>:CAN:FRAME<n>:BSEPosition? ................................................................................. 143BUS<b>:CAN:FRAME<n>:BYTE<o>:STATe? .......................................................................... 143BUS<b>:CAN:FRAME<n>:BYTE<o>:VALue? ......................................................................... 144BUS<b>:CAN:FRAME<n>:CSState? ....................................................................................... 140BUS<b>:CAN:FRAME<n>:CSValue? ...................................................................................... 141BUS<b>:CAN:FRAME<n>:DATA? ........................................................................................... 139BUS<b>:CAN:FRAME<n>:DLCState? ..................................................................................... 140BUS<b>:CAN:FRAME<n>:DLCValue? .................................................................................... 142BUS<b>:CAN:FRAME<n>:IDSTate? ........................................................................................ 141BUS<b>:CAN:FRAME<n>:IDTYpe? ........................................................................................ 142BUS<b>:CAN:FRAME<n>:IDValue? ....................................................................................... 142BUS<b>:CAN:FRAME<n>:STARt? .......................................................................................... 138BUS<b>:CAN:FRAMe<n>:STATus? ......................................................................................... 138BUS<b>:CAN:FRAME<n>:STOP? ........................................................................................... 139BUS<b>:CAN:FRAME<n>:TYPE? ........................................................................................... 139BUS<b>:CAN:SAMPlepoint<SamplePoint> ........................................................................... 134BUS<b>:CAN:TYPE<SignalType> .......................................................................................... 134BUS<b>:DSIGnals<BitsSignals> ............................................................................................ 102BUS<b>:DSIZe<DisplaySize> ................................................................................................ 102BUS<b>:FORMat<Format> .................................................................................................... 102BUS<b>:I2C:CLOCk:SOURce<Source> ................................................................................. 116BUS<b>:I2C:DATA:SOURce<Source> ................................................................................... 117BUS<b>:I2C:FCOunt? .............................................................................................................. 119BUS<b>:I2C:FRAMe<n>:AACCess? ....................................................................................... 121BUS<b>:I2C:FRAMe<n>:ACCess? .......................................................................................... 120BUS<b>:I2C:FRAMe<n>:ACOMplete? ................................................................................... 123BUS<b>:I2C:FRAMe<n>:ADBStart? ....................................................................................... 122BUS<b>:I2C:FRAMe<n>:ADDRess? ....................................................................................... 121
SCPI Commands R&S®HMO1002 Remote Control
171
List of Commands
SCPI Programmers Manual
BUS<b>:I2C:FRAMe<n>:ADEVice? ........................................................................................ 122BUS<b>:I2C:FRAMe<n>:AMODe? ......................................................................................... 121BUS<b>:I2C:FRAMe<n>:ASTart? ............................................................................................ 122BUS<b>:I2C:FRAMe<n>:BCOunt? ......................................................................................... 123BUS<b>:I2C:FRAMe<n>:BYTE<o>ACCess? .......................................................................... 125BUS<b>:I2C:FRAMe<n>:BYTE<o>ACKStart? ........................................................................ 124BUS<b>:I2C:FRAMe<n>:BYTE<o>COMPlete? ...................................................................... 125BUS<b>:I2C:FRAMe<n>:BYTE<o>STARt? ............................................................................. 124BUS<b>:I2C:FRAMe<n>:BYTE<o>VALue? ............................................................................ 124BUS<b>:I2C:FRAMe<n>:DATA? ............................................................................................. 123BUS<b>:I2C:FRAMe<n>:STARt? ............................................................................................ 120BUS<b>:I2C:FRAMe<n>:STATus? ........................................................................................... 119BUS<b>:I2C:FRAMe<n>:STOP? ............................................................................................. 120BUS<b>:LABel<Label> .......................................................................................................... 103BUS<b>:LABel:STATe<State> ................................................................................................ 103BUS<b>:LIN:BITRate<BitRate> .............................................................................................. 146BUS<b>:LIN:DATA:SOURce<Source> ................................................................................... 145BUS<b>:LIN:FCOunt? .............................................................................................................. 149BUS<b>:LIN:FRAME<n>:BCOunt? ......................................................................................... 153BUS<b>:LIN:FRAME<n>:BYTE<o>:STATe? ............................................................................ 153BUS<b>:LIN:FRAME<n>:BYTE<o>:VALue? ........................................................................... 153BUS<b>:LIN:FRAME<n>:CSSTate? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:CSValue? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:DATA? ............................................................................................. 150BUS<b>:LIN:FRAME<n>:IDPValue? ....................................................................................... 151BUS<b>:LIN:FRAME<n>:IDSTate<IdentifierState> ............................................................... 151BUS<b>:LIN:FRAME<n>:IDValue? ......................................................................................... 151BUS<b>:LIN:FRAME<n>:STARt? ............................................................................................ 149BUS<b>:LIN:FRAME<n>:STATus? .......................................................................................... 149BUS<b>:LIN:FRAME<n>:STOP? ............................................................................................. 150BUS<b>:LIN:FRAME<n>:SYSTate? ........................................................................................ 152BUS<b>:LIN:FRAME<n>:VERSion? ........................................................................................ 150BUS<b>:LIN:POLarity<Polarity> ............................................................................................ 146BUS<b>:LIN:STANdard<Standard> ....................................................................................... 146BUS<b>:PARallel:DATA<m>:SOURce<Source> .................................................................... 103BUS<b>:PARallel:WIDTh<BusWidth> .................................................................................... 104BUS<b>:POSition<Position> .................................................................................................. 102BUS<b>:SPI:BORDer<BitOrder> ............................................................................................ 107BUS<b>:SPI:CLOCk:POLarity<Polarity> ................................................................................. 106BUS<b>:SPI:CLOCk:SOURce<Source> ................................................................................. 106BUS<b>:SPI:CS:POLarity<Polarity> ....................................................................................... 106BUS<b>:SPI:CS:SOURce<Source> ........................................................................................ 105BUS<b>:SPI:DATA:POLarity<Polarity> ................................................................................... 107BUS<b>:SPI:DATA:SOURce<Source> ................................................................................... 107BUS<b>:SPI:FCOunt? .............................................................................................................. 109BUS<b>:SPI:FRAMe<n>:DATA? ............................................................................................. 110BUS<b>:SPI:FRAMe<n>:STARt? ............................................................................................ 110BUS<b>:SPI:FRAMe<n>:STATus? ........................................................................................... 109BUS<b>:SPI:FRAMe<n>:STOP<StopTime> .......................................................................... 110BUS<b>:SPI:FRAMe<n>:WCOunt? ........................................................................................ 111BUS<b>:SPI:FRAMe<n>:WORD<o>MISO? ........................................................................... 112
SCPI Commands R&S®HMO1002 Remote Control
172
List of Commands
SCPI Programmers Manual
BUS<b>:SPI:FRAMe<n>:WORD<o>MOSI? ........................................................................... 112BUS<b>:SPI:FRAMe<n>:WORD<o>STARt? .......................................................................... 111BUS<b>:SPI:FRAMe<n>:WORD<o>STOP? ........................................................................... 111BUS<b>:SPI:SSIZe<SymbolSize> .......................................................................................... 108BUS<b>:SSPI:BITime<BurstIdleTime> ................................................................................... 114BUS<b>:SSPI:BORDer<BitOrder> ......................................................................................... 114BUS<b>:SSPI:CLOCk:POLarity<Polarity> .............................................................................. 113BUS<b>:SSPI:CLOCk:SOURce<Source> ............................................................................... 113BUS<b>:SSPI:DATA:POLarity<Polarity> ................................................................................. 114BUS<b>:SSPI:DATA:SOURce<Source> ................................................................................. 113BUS<b>:SSPI:SSIZe<SymbolSize> ........................................................................................ 115BUS<b>:STATe<State> ........................................................................................................... 101BUS<b>:TYPE<Type> ............................................................................................................ 101BUS<b>:UART:BAUDrate<Baudrate> .................................................................................... 128BUS<b>:UART:BITime<BurstIdleTime> ................................................................................. 128BUS<b>:UART:DATA:POLarity<Polarity> ............................................................................... 126BUS<b>:UART:DATA:SOURce<Source> ............................................................................... 126BUS<b>:UART:FCOunt? .......................................................................................................... 130BUS<b>:UART:PARity<Parity> ............................................................................................... 127BUS<b>:UART:SBIT<StopBitNumber> .................................................................................. 127BUS<b>:UART:SSIZe<SymbolSize> ...................................................................................... 127BUS<b>:UART:WORD<n>:COUNt? ........................................................................................ 130BUS<b>:UART:WORD<n>:RXValue? ...................................................................................... 130BUS<b>:UART:WORD<n>:SOURce? ...................................................................................... 132BUS<b>:UART:WORD<n>:STARt? ......................................................................................... 131BUS<b>:UART:WORD<n>:STATe? .......................................................................................... 132BUS<b>:UART:WORD<n>:STOP? .......................................................................................... 131BUS<b>:UART:WORD<n>:TXValue? ...................................................................................... 130
*CAL ........................................................................................................................................... 29CALCulate:MATH<m>:ARIThmetics <Arithmetics> .................................................................. 83CALCulate:MATH<m>:FFT:AVERage:COUNt ............................................................................ 84CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:ADJusted? ............................................. 84CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:AUTO<SpanRBWCoupling> ................ 85CALCulate:MATH<m>:FFT:BANDwidth[:RESolution]:RATio<SpanRBWRatio> ....................... 85CALCulate:MATH<m>:FFT:BANDwidth[:RESolution][:VALue]<ResolutionBW> ..................... 85CALCulate:MATH<m>:FFT:CFRequency <CenterFreq> ............................................................ 85CALCulate:MATH<m>:FFT:FULLspan ....................................................................................... 85CALCulate:MATH<m>:FFT:MAGNitude:SCALe ......................................................................... 84CALCulate:MATH<m>:FFT:SPAN<FreqSpan> ......................................................................... 86CALCulate:MATH<m>:FFT:STARt <StartFreq> ......................................................................... 86CALCulate:MATH<m>:FFT:STOP<StopFreq> .......................................................................... 86CALCulate:MATH<m>:FFT:WINDow:TYPE<WindowType> ..................................................... 86CALCulate:QMATh:OPERation<Operation> .............................................................................. 78CALCulate:QMATh:SOURce<m> .............................................................................................. 78CALCulate:QMATh:STATe <State> ............................................................................................. 78CHANnel<m>:ARIThmetics <TrArithmetic> .............................................................................. 37CHANnel<m>:BANDwidth<BandwidthLimit> ......................................................................... 42CHANnel<m>:COUPling<Coupling> ....................................................................................... 40CHANnel<m>:DATA? ................................................................................................................. 46CHANnel<m>:DATA:ENVelope? ................................................................................................ 47
SCPI Commands R&S®HMO1002 Remote Control
173
List of Commands
SCPI Programmers Manual
CHANnel<m>:DATA:ENVelope:HEADer? .................................................................................. 47CHANnel<m>:DATA:HEADer? ................................................................................................... 46CHANnel<m>:DATA:POINts<Points> ....................................................................................... 48CHANnel<m>:LABel<Label> ................................................................................................... 43CHANnel<m>:LABel:STATe <State> ......................................................................................... 43CHANnel<m>:OFFSet<Offset> ................................................................................................ 41CHANnel<m>:OVERload<Overload> ....................................................................................... 42CHANnel<m>:POLarity<Polarity> ............................................................................................ 42CHANnel<m>:POSition<Position> ........................................................................................... 41CHANnel<m>:RANGe <Range> ............................................................................................... 41CHANnel<m>:SCALe <Scale> .................................................................................................. 41CHANnel<m>:SKEW<Skew> .................................................................................................. 43CHANnel<m>:STATe <State> .................................................................................................... 40CHANnel<m>:THReshold <Threshold> .................................................................................... 43CHANnel<m>:TYPE<DecimationMode> ................................................................................. 37*CLS ........................................................................................................................................... 29COMPonenttest:FREQuency<Frequency> ............................................................................. 100COMPonenttest:STATe<State> ............................................................................................... 100CURSor<m>:AOFF .................................................................................................................... 65CURSor<m>:FUNCtion <Type> ................................................................................................ 66CURSor<m>:RESult? ................................................................................................................. 69CURSor<m>:SOURce<Source> ............................................................................................... 67CURSor<m>:STATe <State> ...................................................................................................... 65CURSor<m>:TRACking:SCALe[:STATe]<State> ....................................................................... 69CURSor<m>:TRACking[:STATe]<State> ................................................................................... 67CURSor<m>:X1Position<Xposition1> ...................................................................................... 67CURSor<m>:X2Position<Xposition2> ...................................................................................... 68CURSor<m>:X3Position<Xposition3> ...................................................................................... 68CURSor<m>:XCOupling<Coupling> ........................................................................................ 69CURSor<m>:XDELta:INVerse? .................................................................................................. 70CURSor<m>:XDELta[:VALue]? .................................................................................................. 70CURsor<m>:XRATio:UNIT <Unit> ............................................................................................. 71CURSor<m>:XRATio[:VALue]? ................................................................................................... 71CURSor<m>:Y1Position<Yposition1> ...................................................................................... 68CURSor<m>:Y2Position<Yposition2> ...................................................................................... 68CURSor<m>:Y3Position<Yposition3> ...................................................................................... 68CURSor<m>:YCOupling<Coupling> ........................................................................................ 69CURSor<m>:YDELta:SLOPe? .................................................................................................... 70CURSor<m>:YDELta[:VALue]? .................................................................................................. 70CURSor<m>:YRATio:UNIT <Unit> ............................................................................................ 71CURSor<m>:YRATio[:VALue]? ................................................................................................... 72
DISPlay:GRID:STYLe<Style> .................................................................................................... 63DISPlay:INTensity:BACKlight<Intensity> .................................................................................. 61DISPlay:INTensity:GRID<Intensity> .......................................................................................... 61DISPlay:INTensity:WAVeform<Intensity> ................................................................................. 61DISPlay:LANGuage<Language> ............................................................................................. 163DISPlay:MODE<Mode> ............................................................................................................ 59DISPlay:PALette<Palette> ......................................................................................................... 60DISPlay:PERSistence:CLEar ....................................................................................................... 62DISPlay:PERSistence:INFinite<InfPersistence> ........................................................................ 62
SCPI Commands R&S®HMO1002 Remote Control
174
List of Commands
SCPI Programmers Manual
DISPlay:PERSistence:STATe<State> ......................................................................................... 61DISPlay:PERSistence:TIME:AUTO<Auto> ................................................................................ 62DISPlay:PERSistence:TIME<Time> ........................................................................................... 62DISPlay:STYLe<Style> .............................................................................................................. 62DISPlay:VSCReen:ENABle<Enable> ......................................................................................... 60DISPlay:VSCReen:POSition<Position> ..................................................................................... 60DISPlay:XY:XSOurce<Source> ................................................................................................. 60DISPlay:XY:Y1Source<Source> ................................................................................................ 61DVM:ENABle .............................................................................................................................. 99DVM<m>:RESult[:ACTual]? ....................................................................................................... 99DVM<m>:SOURce .................................................................................................................... 99DVM<m>:TYPE .......................................................................................................................... 98DVM:POSition .......................................................................................................................... 100
*ESE<Value> ............................................................................................................................. 30*ESR? ......................................................................................................................................... 30
GENerator:FREQuency <Frequency> ........................................................................................ 91GENerator:FUNCtion <Function> .............................................................................................. 90GENerator:FUNCtion:PULSe:DCYCle ......................................................................................... 91GENerator:FUNCtion:RAMP:POLarity<Polarity> ...................................................................... 91GENerator:OUTPut[:ENABle] ..................................................................................................... 91GENerator:VOLTage<Amplitude> ............................................................................................. 90GENerator:VOLTage:OFFSet<Offset> ....................................................................................... 90
HCOPy:COLOR:SCHeme<ColorScheme> .............................................................................. 155HCOPy:DESTination<Medium> .............................................................................................. 154HCOPy[:IMMediate] ................................................................................................................. 154HCOPy:LANGuage<Format> .................................................................................................. 155HCOPy:PAGE:ORIentation<Orientation> ................................................................................ 155HCOPy:PAGE:SIZE<Size> ....................................................................................................... 155
*IDN? .......................................................................................................................................... 30
LOGic<I>:LABel<Label> ........................................................................................................... 44LOGic<I>:LABel:State<Label> .................................................................................................. 45LOGic<I>:POSition<Position> .................................................................................................. 44LOGic<I>:SIZE<Size> ............................................................................................................... 44LOGic<I>:STATe<state> ............................................................................................................ 44
MASK:ACTion:YOUT:ENABle<Yout> ........................................................................................ 90MASK:CHCopy ........................................................................................................................... 88MASK:COUNt? ........................................................................................................................... 89MASK:LOAD<FileName> .......................................................................................................... 88MASK:SAVE<FileName> .......................................................................................................... 88MASK:SOURce<Source> ......................................................................................................... 88MASK:STATe<State> ................................................................................................................ 87MASK:TEST<Test> .................................................................................................................... 88MASK:VCOunt? .......................................................................................................................... 89MASK:XWIDth<Xaddition> ...................................................................................................... 89MASK:YPOSition<Yposition> ................................................................................................... 88
SCPI Commands R&S®HMO1002 Remote Control
175
List of Commands
SCPI Programmers Manual
MASK:YSCALe<Yscale> ........................................................................................................... 89MASK:YWIDth<Yaddition> ....................................................................................................... 89MEASurement<m>:AOFF ......................................................................................................... 72MEASurement<m>:AON .......................................................................................................... 72MEASurement<m>:ARESult? .................................................................................................... 73MEASurement<m>:CATegory? .................................................................................................. 74MEASurement<m>:DELay:SLOPe<SignalSlope>,<ReferenceSlope> ..................................... 77MEASurement<m>[:ENABle]<State> ...................................................................................... 73MEASurement<m>:MAIN <MeasType> ................................................................................... 75MEASurement<m>:RESult?[<MeasType>] .............................................................................. 77MEASurement<m>:SOURce<SignalSource>[,<ReferenceSource>] ....................................... 73MMEMory:CATalog:LENGth?<PathName> ............................................................................ 160MMEMory:CATalog?<PathName>[,<Format>] ....................................................................... 159MMEMory:CDIRectory[<DirectoryName>] ............................................................................ 159MMEMory:COPY<FileSource>,<FileDestination> ................................................................. 160MMEMory:DATA<FileName>,<Data> .................................................................................... 161MMEMory:DCATalog? .............................................................................................................. 158MMEMory:DCATalog:LENGth?<PathName> .......................................................................... 158MMEMory:DELete<FileSource> ............................................................................................. 161MMEMory:DRIVes? .................................................................................................................. 157MMEMory:LOAD:STATe<StateNumber>,<FileName>[,<msus>] .......................................... 162MMEMory:MDIRectory<DirectoryName> .............................................................................. 159MMEMory:MOVE<FileSource>,<FileDestination> ................................................................ 161MMEMory:MSIS[<MassStorageIS>] ...................................................................................... 158MMEMory:NAME <FileName> ............................................................................................... 154MMEMory:RDIRectory<DirectoryName> ............................................................................... 159MMEMory:STORe:STATe<StateNumber>,<FileName>[,<msus>] ......................................... 162
*OPC ........................................................................................................................................... 30*OPT? ......................................................................................................................................... 30
PGENerator:FUNCtion ................................................................................................................ 92PGENerator:MANual:STATe<s> ................................................................................................. 98PGENerator:PATTern:ARBitrary:DATA:APPend ........................................................................... 95PGENerator:PATTern:ARBitrary:DATA:APPend:BAND ................................................................ 96PGENerator:PATTern:ARBitrary:DATA:APPend:BOR .................................................................. 96PGENerator:PATTern:ARBitrary:DATA:APPend:INDex ................................................................ 96PGENerator:PATTern:ARBitrary:DATA:LENGth ........................................................................... 96PGENerator:PATTern:ARBitrary:DATA[:SET] ............................................................................... 95PGENerator:PATTern:BURSt:NCYCle .......................................................................................... 94PGENerator:PATTern:BURSt:STATe ............................................................................................ 94PGENerator:PATTern:COUNter:DIRection .................................................................................. 97PGENerator:PATTern:COUNter:FREQuency ............................................................................... 96PGENerator:PATTern:FREQuency ............................................................................................... 94PGENerator:PATTern:ITIMe ........................................................................................................ 94PGENerator:PATTern:PERiod ...................................................................................................... 93PGENerator:PATTern:SQUarewave:DCYCle ............................................................................... 97PGENerator:PATTern:SQUarewave:POLarity .............................................................................. 97PGENerator:PATTern:STATe ........................................................................................................ 93PGENerator:PATTern:STIMe ....................................................................................................... 93PGENerator:PATTern:TRIGger:EXTern:SLOPe ............................................................................. 95
SCPI Commands R&S®HMO1002 Remote Control
176
List of Commands
SCPI Programmers Manual
PGENerator:PATTern:TRIGger:MODE ......................................................................................... 94PGENerator:PATTern:TRIGger:SINGle ........................................................................................ 95POD:State<State> .................................................................................................................... 45POD:THReshold<ThresholdMode> ......................................................................................... 45POD:THReshold:UDLevel<u><ThresholdLevel> ..................................................................... 45PROBe<m>:SETup:ATTenuation[:AUTO]? .................................................................................. 50PROBe<m>:SETup:ATTenuation:MANual<ManualAttenuation> ............................................. 49PROBe<m>:SETup:ATTenuation:UNIT<Unit> .......................................................................... 49PROBe<m>:SETup:TYPE? .......................................................................................................... 49*PSC<Action> ........................................................................................................................... 31
REFCurve<m>:DATA? ................................................................................................................ 82REFCurve<m>:DATA:HEADer? .................................................................................................. 82REFCurve<m>:HORizontal:POSition<Position> ....................................................................... 81REFCurve<m>:HORizontal:SCALe<Scale> .............................................................................. 81REFCurve<m>:LOAD<FileName> ............................................................................................ 80REFCurve<m>:LOAD:STATe ...................................................................................................... 81REFCurve<m>:SAVE<FileName> ............................................................................................. 80REFCurve<m>:SOURce:CATalog? ............................................................................................. 80REFCurve<m>:SOURce<Source> ............................................................................................ 79REFCurve<m>:STATe ................................................................................................................. 79REFCurve<m>:UPDate .............................................................................................................. 80REFCurve<m>:VERTical:POSition<Position> ........................................................................... 82REFCurve<m>:VERTical:SCALe<Scale> .................................................................................. 81REFLevel<m>:RELative:MODE<RelativeMode> ...................................................................... 74*RST .......................................................................................................................................... 31RUN ........................................................................................................................................... 32RUNContinous .......................................................................................................................... 32RUNSingle ................................................................................................................................. 33
SINGle ....................................................................................................................................... 33*SRE<Contents> ....................................................................................................................... 31STATus:OPERation:CONDition? ................................................................................................ 165STATus:OPERation:ENABle<Enable> ...................................................................................... 166STATus:OPERation[:EVENt]? .................................................................................................... 166STATus:OPERation:NTRansition<NegativeTransition> ............................................................ 166STATus:OPERation:PTRansition<PositiveTransition> .............................................................. 166STATus:PRESet ......................................................................................................................... 168STATus:QUEStionable:CONDition? ........................................................................................... 168STATus:QUEStionable:COVerload:CONDition? ........................................................................ 168STATus:QUEStionable:COVerload:ENABle<Enable> .............................................................. 168STATus:QUEStionable:COVerload[:EVENt]? ............................................................................. 169STATus:QUEStionable:COVerload:NTRansition<NegativeTransition> .................................... 169STATus:QUEStionable:COVerload:PTRansition<PositiveTransition> ....................................... 169STATus:QUEStionable:ENABle<Enable> ................................................................................ 168STATus:QUEStionable[:EVENt]? ............................................................................................... 169STATus:QUEStionable:LIMit:CONDition? ................................................................................. 168STATus:QUEStionable:LIMit:ENABle<Enable> ....................................................................... 168STATus:QUEStionable:LIMit[:EVENt]? ...................................................................................... 169STATus:QUEStionable:LIMit:NTRansition<NegativeTransition> ............................................ 169STATus:QUEStionable:LIMit:PTRansition<PositiveTransition> ................................................ 169
SCPI Commands R&S®HMO1002 Remote Control
177
List of Commands
SCPI Programmers Manual
STATus:QUEStionable:MASK:CONDition? ............................................................................... 168STATus:QUEStionable:MASK:ENABle<Enable> ..................................................................... 168STATus:QUEStionable:MASK[:EVENt]? .................................................................................... 169STATus:QUEStionable:MASK:NTRansition<NegativeTransition> .......................................... 169STATus:QUEStionable:MASK:PTRansition<PositiveTransition> .............................................. 169STATus:QUEStionable:NTRansition<NegativeTransition> ....................................................... 169STATus:QUEStionable:PTRansition<PositiveTransition> ......................................................... 169*STB? ........................................................................................................................................ 31STOP ......................................................................................................................................... 33SYSTem:COMMunicate:PRINter:ENUMerate:FIRSt? ............................................................... 156SYSTem:COMMunicate:PRINter:ENUMerate[:NEXT]? ............................................................ 156SYSTem:COMMunicate:PRINter:SELect<PrinterName> ........................................................ 155SYSTem:DATE<Year>,<Month>,<Day> ................................................................................. 163SYSTem:EDUCation:PRESet .................................................................................................... 156SYSTem:ERRor:ALL? ................................................................................................................ 165SYSTem:ERRor:[NEXT]? ........................................................................................................... 164SYSTem:NAME ........................................................................................................................ 163SYSTem:SET <Setup> ............................................................................................................. 164SYSTem:TIME <Hour>,<Minute>,<Second> .......................................................................... 164SYSTem:TREE? ......................................................................................................................... 164SYST:PRESet ............................................................................................................................ 165
TIMebase:ACQTime<AcquisitionTime> .................................................................................... 34TIMebase:DIVisions? ................................................................................................................. 34TIMebase:POSition<Offset> ..................................................................................................... 34TIMebase:RANGe<AcquisitionTime> ....................................................................................... 34TIMebase:RATime? ..................................................................................................................... 33TIMebase:REFerence<ReferencePoint> ................................................................................... 34TIMebase:ROLL:ENABle<Roll> ................................................................................................ 38TIMebase:SCALe<TimeScale> ................................................................................................. 33TIMebase:ZOOM:POSition<Position> ...................................................................................... 64TIMebase:ZOOM:SCALe<ZoomScale> .................................................................................... 63TIMebase:ZOOM:STATe<ZoomState> ...................................................................................... 63TIMebase:ZOOM:TIME<Time> ................................................................................................. 63*TRG .......................................................................................................................................... 31TRIGger:A:CAN:ACKerror<AcknowledgeError> ..................................................................... 137TRIGger:A:CAN:BITSterror<BitStuffingError> ........................................................................ 137TRIGger:A:CAN:CRCerror <CRCerror> .................................................................................... 137TRIGger:A:CAN:DATA<Data> ................................................................................................. 136TRIGger:A:CAN:DCONdition<DataCondition> ....................................................................... 136TRIGger:A:CAN:DLENgth<DataLength> ................................................................................ 137TRIGger:A:CAN:FROMerror<FormError> ............................................................................... 137TRIGger:A:CAN:FTYPe<FrameType> ...................................................................................... 135TRIGger:A:CAN:ICONdition<IdentifierCondition> .................................................................. 136TRIGger:A:CAN:IDENtifier<Identifier> .................................................................................... 136TRIGger:A:CAN:ITYPe<IdentifierType> ................................................................................... 135TRIGger:A:CAN:TYPE<TriggerType> ....................................................................................... 135TRIGger:A:EDGE:COUPling<Coupling> ................................................................................... 52TRIGger:A:EDGE:FILTer:LPASs<State> ..................................................................................... 53TRIGger:A:EDGE:FILTer:NREJect<State> ................................................................................. 53TRIGger:A:EDGE:SLOPe<Slope> .............................................................................................. 52
SCPI Commands R&S®HMO1002 Remote Control
178
List of Commands
SCPI Programmers Manual
TRIGger:A:I2C:ACCess <Access> ............................................................................................ 118TRIGger:A:I2C:ADDRess<AddressString> ............................................................................. 118TRIGger:A:I2C:AMODe<AdrMode> ....................................................................................... 118TRIGger:A:I2C:MODE<Mode> ............................................................................................... 117TRIGger:A:I2C:PATTern ............................................................................................................. 118TRIGger:A:I2C:PLENgth<PatternLength> ............................................................................... 118TRIGger:A:I2C:POFFset<PatternByteOffset> .......................................................................... 119TRIGger:A:LEVel<n>[:VALue]<Level> ...................................................................................... 51TRIGger:A:LIN:CHKSerror<ChecksumError> ......................................................................... 148TRIGger:A:LIN:DATA<Data> ................................................................................................... 148TRIGger:A:LIN:DCONdition<DataCondition> ......................................................................... 147TRIGger:A:LIN:DLENgth<DataLength> .................................................................................. 148TRIGger:A:LIN:ICONdition<IdentifierCondition> .................................................................... 147TRIGger:A:LIN:IDENtifier<Identifier> ...................................................................................... 147TRIGger:A:LIN:IPERerror<IdentifierParityError> ..................................................................... 148TRIGger:A:LIN:SYERror <SynchronisationError> .................................................................... 148TRIGger:A:LIN:TYPE<TriggerType> ........................................................................................ 147TRIGger:A:MODE<TriggerMode> ............................................................................................. 50TRIGger:A:PATTern:CONDition<Condition> ............................................................................. 57TRIGger:A:PATTern:FUNCtion<Function> ................................................................................ 57TRIGger:A:PATTern:MODE<PatternMode> ............................................................................... 57TRIGger:A:PATTern:SOURce<SourceString> ............................................................................ 56TRIGger:A:PATTern:WIDTh:DELTa<PatternDelta> .................................................................... 58TRIGger:A:PATTern:WIDTh:RANGe<PatternRange> ................................................................. 58TRIGger:A:PATTern:WIDTh[:WIDTh]<Numeric_Value> ............................................................. 58TRIGger:A:SOURce<Source> ................................................................................................... 51TRIGger:A:SPI:MODE<Mode> ............................................................................................... 108TRIGger:A:SPI:PATTern<DataPattern> .................................................................................... 108TRIGger:A:SPI:PLENgth<PatternLength> ............................................................................... 109TRIGger:A:SPI:POFFset<PatternBitOffset> ............................................................................. 109TRIGger:A:TV:FIELd <Field> ...................................................................................................... 55TRIGger:A:TV:LINE <Line> ........................................................................................................ 56TRIGger:A:TV:POLarity<Polarity> ............................................................................................. 55TRIGger:A:TV:STANdard <Standard> ........................................................................................ 55TRIGger:A:TYPE<Type> ............................................................................................................ 51TRIGger:A:UART:MODE<Mode> ............................................................................................ 128TRIGger:A:UART:PATTern<DataPattern> ................................................................................ 129TRIGger:A:UART:PLENgth<PatternLength> ........................................................................... 129TRIGger:A:UART:POFFset<PatternByteOffset> ...................................................................... 129TRIGger:A:WIDTh:DELTa<Delta> .............................................................................................. 54TRIGger:A:WIDTh:POLarity<Polarity> ...................................................................................... 53TRIGger:A:WIDTh:RANGe<RangeMode> ................................................................................ 54TRIGger:A:WIDTh:WIDTh<Time1> ........................................................................................... 54TRIGger:EXTern:COUPling<ExternCoupling> ........................................................................... 51*TST? ......................................................................................................................................... 32TSTamp:ACLear .......................................................................................................................... 64TSTamp:CLEar ............................................................................................................................ 64TSTamp:NEXT ............................................................................................................................ 64TSTamp:PREVious ...................................................................................................................... 64TSTamp:SET ............................................................................................................................... 64
*WAI .......................................................................................................................................... 32
R&S®isaregisteredtrademarkofRohde&SchwarzGmbH&Co.KG HAMEG Instruments® is a registered trademark of HAMEG InstrumentsGmbH;Tradenamesaretrademarksoftheowners 10/2014|©HAMEGInstrumentsGmbH Subjecttochangewithoutnotice
www.hameg.com
HAMEGInstrumentsGmbH Industriestr.6|63533Mainhausen|Germany|Tel+49(0)61828000
value-instruments.com
top related