Chapter 1
1-3
Programming Fundamentals
Creating Valid Commands
Creating Valid Commands
Commands are not case sensitive and there are often many different
ways of writing a particular command. These are examples of valid
commands for a given command syntax:
Command Syntax
Sample Valid Commands
[:SENSe]:BANDwidth[:RESolution]
<freq>
The following sample commands are all
identical. They will all cause the same result.
•
:Sense:Band:Res 1700
•
:BANDWIDTH:RESOLUTION 1.7e3
•
:sens:band 1.7KHZ
•
:SENS:band 1.7E3Hz
•
:band 1.7kHz
•
:bandwidth:RES 1.7e3Hz
:MEASure:HARMonics:AMPLitude[n?
The last command below returns different
results than the commands above it. The
number 3 in the command causes this. See the
command description for more information.
•
:MEAS:HARM:AMPL?
•
:Meas:Harm:Ampl?
•
:MEAS:HARM:AMPL3?
[:SENSe]:DETector[:FUNCtion]
NEGative|POSitive|SAMPle
•
DET:FUNC NEG
•
:Sense:Detector:Function Sample
:INITiate:CONTinuous OFF|ON|0|1
The sample commands below are identical.
•
:INIT:CONT ON
•
:init:continuous 1
Summary of Contents for E4401B
Page 6: ...vi ...
Page 14: ...xiv Contents ...
Page 64: ...2 34 Chapter2 HP ESA Status Registers Using the Analyzer Status Registers ...
Page 65: ...3 1 3 Programming Examples ...
Page 151: ...4 1 4 Programming Command Cross References ...
Page 286: ...5 132 Chapter5 Language Reference UNIT Subsystem ...
Page 287: ...6 1 6 HP 8590 HP ESA Spectrum Analyzers Programming Conversion Guide ...
Page 292: ...1 HP 8590 HP ESA Spectrum Analyzers Conversion Guide ...
Page 368: ...7 1 7 Error Messages ...
Page 393: ...7 26 Chapter7 Error Messages 201 to 799 Device Specific Errors ...