Remote Control For R&S FSH R&S Fsh-K1: Operating Manual
Remote Control For R&S FSH R&S Fsh-K1: Operating Manual
Operating Manual
1157.3564.12-10- 1
Dear Customer,
R&S® is a registered trademark of Rohde & Schwarz GmbH & Co. KG.
Trade names are trademarks of the owners.
1157.3564.12-10- 2
R&S FSH-K1 Enabling Remote Control Option R&S FSH-K1
Contents
Operation
If the correct key code is entered, the R&S FSH displays "Remote Control enabled".
If an invalid key code is entered, the R&S FSH displays "Option key error".
The correct key code can then be entered.
1157.3564.12 1 E-10
Connecting PCs R&S FSH-K1
Connecting PCs
The R&S FSH can be remote controlled by a PC or Laptop equipped with an USB interface or a RS232
interface.
Installation of the driver for the USB optical cable (R&S FSH-Z37)
The USB driver available on the R&S FSH CD-ROM emulates a serial COM port on the PC. In order to
install the driver on a PC equiped with Windows XP or Windows 2000 please proceed as follows:
Connect the optical USB cable to the PC. The hardware installation wizzard will pop up and state
that it has found a USB to serial bridge.
Insert the R&S FSH CD-ROM.
Select “automatic software installation” and press “Next”. The installation wizzard will automatically
search for the necessary driver and install it.
In case that the wizzard does not find the driver files you will be prompted for manual entry of the
corresponding path. The driver is located on the CD-ROM in folder “\drivers\USB”.
Press “Finish” in order to finalize the installation. The USB cable is now ready for use.
1157.3564.12 2 E-10
R&S FSH-K1 Notational Conventions
Notational Conventions
The following section describes the notational conventions as they are used throughout this document.
:= Equals
“...” Characters between “ “ are taken as they are, but the “ “ are excluded
(example “,” means an ASCII comma).
Item Description
1157.3564.12 3 E-10
Device Messages R&S FSH-K1
Device Messages
The remote control command set of the R&S FSH can be grouped into three categories:
• SET commands
SET commands are used to program parameters of the instrument like
center frequency, span, etc.
• GET commands
GET commands are used to query current settings and data from the instrument like
center frequency, marker, trace data, etc.
• CMD commands
CMD commands are used to initiate an action or a state transition in the instrument like
marker-to-peak, preset, remote state, etc.
<ack> response:
“0” No Error.
“1” Syntax Error. This response is generated when the command sent to the instrument is not
known or when the timeout on data reception expired. It is also generated, when the
parameter or value for the command are in the wrong data format.
“2” Execution Error. The command sent is not allowed in the current measurement mode.
“3” Dataset Storage Full. This response is generated when the dataset storage is full.
“4” Not Allowed. In the current state of the R&S FSH setting this parameter or value is not
allowed.
“5” Out Of Range. The parameter value is out of range and cannot be programmed.
Timeout
To prevent any lockups in the communication between PC and instrument the data transfer via the
serial interface is monitored by the R&S FSH. There is a timeout time of 60 seconds on every byte
received by the instrument. When the time between 2 bytes in a command or parameter send exceeds
60 seconds the R&S FSH will respond with a ‘Syntax Error’ acknowledge message (“1”<cr>).
Note: When using remote control commands and the sweep time is less than 30 ms (e.g. Zero
span) the measurement will stop until the complete command is received (in this case all
interrupts are switched off due to the processing of all data points).
1157.3564.12 4 E-10
R&S FSH-K1 Device Messages
GET Command
GET commands are used to query parameter settings or measured data from the instrument.
SET Command
SET commands are used to program parameter and setup settings of the instrument.
1157.3564.12 5 E-10
Device Messages R&S FSH-K1
CMD Command
CMD commands are used to initiate an action or a state transition on the instrument.
Example 2: This command saves a dataset on the instrument with the name ‘test’.
cmd<cr> (send ‘cmd’ command)
0<cr> (responds ‘command ok’)
SAVE,test<cr> (send parameter ‘SAVE’ with name ‘test’)
0<cr> (responds ‘parameter ok’)
1157.3564.12 6 E-10
R&S FSH-K1 Parameter Overview
Parameter Overview
In the following tables all parameters and commands are listed with the different measurement modes
they are active in.
Note: Parameters are not always available; this depends on the type of measurement selected
and other settings.
Distance to Fault
Vector Voltmeter
Channel Power
Receiver Mode
Power Sensor
Tracking Gen.
Occupied BW
TDMA Power
Carrier Noise
Analyzer
ACCESSORY * * * * * * * * * * * *
ANTDIV *
AUTOCISPRBW *
AUTODET * * * * * * * *
AUTORBW * * * * * * *
AUTOSPAN * * * *
AUTOSWPTIME * * * * * * * *
AUTOVBW * * * * * * *
BAUD * * * * * * * * * * *
CABLELEN *
CABLEMOD *
CALKIT * *
CALKITLEN * *
CHANNEL * * * * * * *
CHMODE * * * * * * *
CHPWRBW *
CHPWRSTD *
CHPWRCSTD *
CHPWRUNIT *
CHTABLE * * * * * * *
CISPRBW *
CNCHBW *
CNCSTD *
CNMANREFPWR *
CNMEASMODE *
CNMODE *
CNNOISECOR *
CNNORM *
CNPILOTFRQ *
CNPWRDISP *
CNRATIOCHBW *
CNREFMEASMODE *
1157.3564.12 7 E-10
Parameter Overview R&S FSH-K1
Parameter
Distance to Fault
Vector Voltmeter
Channel Power
Receiver Mode
Power Sensor
Tracking Gen.
Occupied BW
TDMA Power
Carrier Noise
Analyzer
CNREFPWR *
CNUNIT *
CNVISIONFRQ *
CTRFREQOFFS *
COUPLEDTOREF *
DELTA1 * * * * * *
DELTA * * * * * *
DELTAALLON * * * * * *
DELTA1ON * * * * * *
DELTAON * * * * * *
DISPLAY * * * * * * * * * * * *
DTFMODE *
DYNRANGE * * * * * * * * * * *
EXTINPUT * * * * * * * * * * *
FREQ * * * * * * * * * * * *
FREQOFFS * * * * * *
FREQSTART *
FREQSTOP *
LENUNIT * * * * * * * * * * *
LIMDEF * * * * * * * * * *
LIMLOW * * * * * * * * * *
LIMUPP * * * * * * * * * *
LIMBEEP * * * * * * * * * *
LIMMSG * * * * * * * * * *
MARK1 * * * * * *
MARK * * * * * *
MARKALLON * * * * * *
MARK1ON * * * * * *
MARKON * * * * * *
MARKMODE * * * * * *
MARKDEMOD * * *
MARKTIME * * *
MARKVOL * * *
MARKIMPREF * *
MARKMEASY * *
MATHMODE *
MEAS * * * * * * * * * * * *
MEASTIME * * *
NDBDOWNVAL * * *
OBWSTD *
OBWCSTD *
OBWCHBW *
OFFSETLEN * *
PREAMP * * * * * * * * * *
PRESETSET * * * * * * * * * * * *
1157.3564.12 8 E-10
R&S FSH-K1 Parameter Overview
Parameter
Distance to Fault
Vector Voltmeter
Channel Power
Receiver Mode
Power Sensor
Tracking Gen.
Occupied BW
TDMA Power
Carrier Noise
Analyzer
PSCRCD *
PWRSSTD *
RANGE * * * * * * * * * *
RBW * * * * * * * * *
REFLUNIT *
REFLVL * * * * * * * * * * *
REFLVLOFFS * * * * * * * * * * * *
RFINPUT * * * * * * * * * *
SCANMODE *
SCANSTART *
SCANSTOP *
SCANSTEP *
SPAN * * * * * *
SSCRCD *
SWPCONT * * * * * * * * * *
SWPTIME * * * * * * * * *
TDMASTD *
TDMACSTD *
TGATT * *
TGLVL * *
TGMODE * *
THRLOW *
THRUPP *
TRACEAVG * * * * * * * *
TRACEDET * * * * * * * * *
TRACEMODE * * * * * * * * *
TRD1 * * * * * * *
TRD1X *
TRD1Y *
TRD1Z *
TRD2 * * * * * * * *
TRIGDEL * * * * * * * *
TRIGLVL * * * * * * * *
TRIGSRC * * * * * * * * *
UNIT * * * * * * * * * * * *
VBW * * * * * * * *
VVREF *
1157.3564.12 9 E-10
Parameter Overview R&S FSH-K1
Get Parameter
Parameter
Distance to Fault
Vector Voltmeter
Channel Power
Receiver Mode
Power Sensor
Tracking Gen.
Occupied BW
TDMA Power
Carrier Noise
Analyzer
CABLELOSS * *
CARRFREQERR *
CCORRTRACE * *
CCORRTRACEBIN * *
CHPWR *
CNVALUE *
CPICHEIRAT *
CPICHPWR *
CPICHSLOTNR *
CPICHSYMEVM *
CTRACE * * *
CTRACEBIN * * *
DELTAALL? * * * * * *
ELCABLENVAL * *
EXTREF * * * * * * * * * * *
IDN? * * * * * * * * * * *
LEVEL *
LIMCHKREMOTE *
LIMLIST * * * * * * * * * *
LIMPASS * * * * * * * * * *
MARKALL? * * * * * *
MTRACE * * * * * * * * * *
MTRACEBIN * * * * * * * * * *
OCCBW *
NDBDOWN * *
PCCPCHEIRAT *
PCCPCHPWR *
PCCPCHPWRREL *
PCCPCHSYMEVM *
PSCHPWR *
PSCHPWRREL *
PWR *
REFL *
REFLCAL * * *
REFLVECTCAL * * *
SSCHPWR *
SSCHPWRREL *
STB? * * * * * * * * * * *
SYNCRESULT *
TDMAPWR *
TEMP * * * * * * * * * * * *
THRPASS *
1157.3564.12 10 E-10
TRACE
TOTPWR
Parameter
TRACEBIN
VECTVOLT
TRANSCAL
1157.3564.12
R&S FSH-K1
TRANSVECTCAL
*
*
Analyzer
*
*
Receiver Mode
*
*
*
*
Tracking Gen.
*
*
*
*
*
Vector Voltmeter
11
*
* Isotropic Antenna
Power Sensor
*
*
Carrier Noise
*
*
Channel Power
*
*
Occupied BW
*
*
TDMA Power
*
*
Distance to Fault
*
E-10
Parameter Overview
Parameter Overview R&S FSH-K1
CMD Commands
Parameter
Distance to Fault
Vector Voltmeter
Channel Power
Receiver Mode
Power Sensor
Tracking Gen.
Occupied BW
TDMA Power
Carrier Noise
Analyzer
AUTOSDSNGL *
AUTOSDMUL *
CAL_DTF *
CAL_TGSCLRFL * *
CAL_TGSCLTRN * *
CAL_TGVECRFL * *
CAL_TGVECTRN * *
INIT * * * * * * * * * * * *
LOCAL * * * * * * * * * * * *
LVLADJUST * * * * *
MARKNXTPK * * * * * *
MARKPK * * * * * *
MARKMIN * * * * * *
MARKTOCENT * * * * *
LIMDEL * * * * * * * * * *
MARKTOLVL * * * * * *
PRESET * * * * * * * * * * * *
PWRTOREF *
RECALL * * * * * * * * * * * *
REMOTE * * * * * * * * * * * *
SAVE * * * * * * * * * * * *
THROFF *
TRACETOMEM *
WAIT * * * * * * * * * * *
ZERO *
VVTOREF *
Note: When the instrument is in the state standby (Off) only the parameters IDN?, BAUD and
MEAS are available.
1157.3564.12 12 E-10
R&S FSH-K1 Command Description
Command Description
General Commands
Command Parameters Unit Comment
IDN? GET command only
BAUD 0...4 SET command only
REMOTE
LOCAL
PRESETSET 0...1
PRESET
INIT
WAIT
STB? GET command only
EXTINPUT 0, 1
SAVE <string>
RECALL <string>
EXTREF 0…3 GET command only
DISPLAY 0...1
TEMP GET command only
IDN?
This command returns the instrument ID string.
This string contains: <manufacturer>,<model number>,<serial number>,<software version>.
<model number>: 03, 13, 23 for the according R&S FSH3 model
06, 26 for the according R&S FSH6 model
18 for the according R&S FSH18 model
Example: get<cr>
0<cr>
idn?<cr> ‘query ID string
0<cr> ‘responds parameter ok
Rohde&Schwarz,23,100212,V11.0 ‘instrument ID string
1157.3564.12 13 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
baud,3<cr> ‘set baud rate on 115.200
0<cr> ‘responds ok with current baud rate
‘instrument is set to new baud rate
REMOTE
This command sets the instrument to remote state. Front panel interaction is disabled.
Example: cmd<cr>
0<cr>
remote<cr> ‘set instrument to remote
0<cr> ‘responds parameter ok
LOCAL
This command sets the instrument to local state. Front panel operation is enabled.
Example: cmd<cr>
0<cr>
local<cr> ‘set instrument to local
0<cr> ‘responds parameter ok
1157.3564.12 14 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
presetset,1<cr> ‘use custom preset settings’
0<cr> ‘responds parameter ok’
PRESET
This command sets the instrument to the preset settings.
Example: cmd<cr>
0<cr>
preset<cr> ‘set instrument to preset
0<cr> ‘responds parameter ok
INIT
This command starts / re-starts a new sweep.
Example: cmd<cr>
0<cr>
init<cr> ‘start new sweep
0<cr> ‘responds parameter ok
WAIT
This command is used to synchronize with the end of a sweep. After sending the WAIT command the
<ack> acknowledge is holdoff until the sweep is complete.
Example: cmd<cr>
0<cr>
wait<cr> ‘wait for end of sweep
0<cr> ‘responds parameter ok, sweep complete
STB?
This command returns the instrument status. The status indicates any settings/conditions that causes
measurements to be questionable (response: ‘1’) or not (response ‘0’).
Example: get<cr>
0<cr>
stb?<cr> ‘query status
0<cr> ‘responds parameter ok
0<cr> ‘status: o.k.
1157.3564.12 15 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
extinput,1<cr> ‘enable external reference on input connector
0<cr> ‘responds parameter ok
SAVE
This command saves the current setting and measurement in the specified dataset. If the dataset exists
it will be overwritten. Dataset names are not case sensitive.
Example: cmd<cr>
0<cr>
save,mydata.001<cr> ‘save settings to dataset “MYDATA.001”
0<cr> ‘responds parameter ok
RECALL
This command recalls a stored dataset. Dataset names are not case sensitive.
Example: cmd<cr>
0<cr>
recall,mydata.001<cr> ‘recall settings from dataset “MYDATA”
0<cr> ‘responds parameter ok
Example: get<cr>
0<cr>
extref<cr> ‘get status of external reference
0<cr> ‘responds parameter ok
1<cr> ‘response status out of range
1157.3564.12 16 E-10
R&S FSH-K1 Command Description
DISPLAY
This command turns the display on or off.
Value
0 Off
1 On
Example: set<cr>
0<cr>
display,0<cr> ‘turn display off
0<cr> ‘responds parameter ok
TEMP (Temperature)
This command returns the current temperature inside the instrument.
Example: get<cr>
0<cr>
temp<cr> ‘query temperature
0<cr> ‘responds parameter ok
32.6 ‘instrument temperature (Celsius)
1157.3564.12 17 E-10
Command Description R&S FSH-K1
FREQ (Frequency)
This command sets the center frequency.
The start and stop frequency of the instrument is defined by the current center frequency and span.
Example: set<cr>
0<cr>
freq,950E6<cr> ‘set center frequency to 950 MHz
0<cr> ‘responds parameter ok
SPAN
This command sets the span.
The start and stop frequency of the instrument is defined by the current center frequency and span.
The <numeric value> = 0 is used for Zero Span.
Example: set<cr>
0<cr>
span,20E6<cr> ‘set span to 20 MHz
0<cr> ‘responds parameter ok
1157.3564.12 18 E-10
R&S FSH-K1 Command Description
AUTOSPAN
This command switches span mode AUTO on/off (Measure Mode: Channel Power or Occupied BW)
Example: set<cr>
0<cr>
autospan,1<cr> ‘set Auto span On
0<cr> ‘responds parameter ok
1157.3564.12 19 E-10
Command Description R&S FSH-K1
Value CoupledToRef
0 Off
1 On
Example: set<cr>
0<cr>
coupledtoref,1<cr> ‘set coupled to on
0<cr> ‘responds parameter ok
1157.3564.12 20 E-10
R&S FSH-K1 Command Description
Amplitude Settings
Command Parameters Unit Comment
REFLVL <numeric value> Uses current unit
REFLVLOFFS <numeric value> dB
RANGE 0...36
DYNRANGE 0, 1
UNIT 0...8
RFINPUT 0, 1
PREAMP 0, 1
This command sets the reference level using the current unit.
Example: set<cr>
0<cr>
reflvl,-30<cr> ‘set reference level to –30dBm
0<cr> ‘responds parameter ok
1157.3564.12 21 E-10
Command Description R&S FSH-K1
RANGE
This command defines the range.
Value Range
0 10 dB/DIV
1 5 dB/DIV
2 2 dB/DIV
3 1 dB/DIV
4 LIN 0-100%
5 VSWR 1-6 (Tracking Gen, DTF)
6 VSWR 1-2 (Tracking Gen, DTF)
7 VSWR 1-1.5 (Tracking Gen, DTF)
8 VSWR 1-1.1 (Tracking Gen, DTF)
9 Smith Chart
10 0,001 Rho/DIV
11 0,01 Rho/DIV
12 0,1 Rho/DIV
13 1 Rho/DIV
14 1 mRho/DIV
15 10 mRho/DIV
16 100 mRho/DIV
17 1000 mRho/DIV
18 0,1 dB/DIV
19 VSWR 1-10 (Tracking Gen, DTF)
20 VSWR 1-20 (Tracking Gen, DTF)
21 Degrees
22 1 ns/DIV
23 2 ns/DIV
24 5 ns/DIV
25 10 ns/DIV
26 20 ns/DIV
27 50 ns/DIV
28 100 ns/DIV
29 0,003 Rho/DIV
30 0,03 Rho/DIV
31 0,3 Rho/DIV
32 3 mRho/DIV
33 30 mRho/DIV
34 300 mRho/DIV
35 0,2 dB/DIV
36 0,5 dB/DIV
Example: set<cr>
0<cr>
range,2<cr> ‘set range to 2 dB/DIV
0<cr> ‘responds parameter ok
1157.3564.12 22 E-10
R&S FSH-K1 Command Description
Value Range
0 Low Distortion
1 Low Noise
Example: set<cr>
0<cr>
dynrange,1<cr> ‘set dynamic range to ‘Low Noise’
0<cr> ‘responds parameter ok
UNIT
This command defines the unit of the level.
Value Unit
0 dBm
1 dBmV
2 dB\V
3 dB\V/m
4 dB\A/m
5 dB
6 Volt
7 Watt
8 V/m
Example: set<cr>
0<cr>
unit,2<cr> ‘set unit to dB\V
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
rfinput,1<cr> ‘set input impedance to 75 ]
0<cr> ‘responds parameter ok
1157.3564.12 23 E-10
Command Description R&S FSH-K1
PREAMP (Preamplifier)
This command switches the preamplifier on/off. Default on Preset is ‘Preamp OFF’
Value Preamp
0 OFF
1 ON
Example: set<cr>
0<cr>
preamp,1<cr> ‘turns the preamp on
0<cr> ‘responds parameter ok
1157.3564.12 24 E-10
R&S FSH-K1 Command Description
Bandwidth Settings
Command Parameters Unit Comment
AUTORBW 0, 1
RBW 0...10
AUTOVBW 0, 1
VBW 0...12
AUTOCISPRBW 0, 1 Receiver Mode only
(R&S FSH-K3)
CISPRBW 0…3 Receiver Mode only
(R&S FSH-K3)
Example: set<cr>
0<cr>
autorbw,1<cr> ‘turns the RBW auto coupling on
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
rbw,4<cr> ‘set resolution bandwidth to 3 kHz
0<cr> ‘responds parameter ok
1157.3564.12 25 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
autovbw,1<cr> ‘turns the VBW auto coupling on
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
vbw,5<cr> ‘set video bandwidth to 1 kHz
0<cr> ‘responds parameter ok
1157.3564.12 26 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
autocisprbw,1<cr> ‘turns the CISPRBW auto coupling on
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
cisprbw,2<cr> ‘set CISPR bandwidth to 120 kHz
0<cr> ‘responds parameter ok
1157.3564.12 27 E-10
Command Description R&S FSH-K1
Sweep Settings
Command Parameters Unit Comment
AUTOSWPTIME 0, 1
SWPTIME <numeric value> s Value 0: Auto
SWPCONT 0, 1
TRIGSRC 0...3
TRIGLVL <numeric value> %
TRIGDEL <numeric value> s
Example: set<cr>
0<cr>
autoswptime,1<cr> ‘turns the sweep time auto on
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
swptime,0.2<cr> ‘set resolution bandwidth to 200 ms
0<cr> ‘responds parameter ok
Value Sweep
0 Single
1 Continuous
Example: set<cr>
0<cr>
swpcont,0<cr> ‘set to single sweep
0<cr> ‘responds parameter ok
1157.3564.12 28 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
trigsrc,1<cr> ‘set to video trigger
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
trigLVL,50<cr> ‘set video trigger level to 50%
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
trigdel,100E-6<cr> ‘set trigger delay to 100 \s
0<cr> ‘responds parameter ok
1157.3564.12 29 E-10
Command Description R&S FSH-K1
Trace Settings
Command Parameters Unit Comment
TRACEMODE 0..4
WRAPPHASE 0,1
TRACEDET 0...6
TRACEAVG 2…999
TRACE <numeric value>,.... GET command only
TRACEBIN <value>,... GET command only
TRACETOMEM CMD command only
CCORRTRACE <numeric value>,.... GET command only
CCORRTRACEBIN <value>,... GET command only
CTRACE <numeric value>,.... GET command only
CTRACEBIN <value>,... GET command only
MATHMODE <numeric value>
MTRACE <string> GET command only
MTRACEBIN <string> GET command only
TRACEMODE
This command defines the trace mode.
Note: This command is available in Tracking Genarator only with measurement modes Smith Chart,
Phase or Vector Magnitude active.
1157.3564.12 30 E-10
R&S FSH-K1 Command Description
Value Detector
0 Auto Peak
1 Min Peak
2 Max Peak / Peak
3 Sample
4 RMS
5 Average
6 Quasi-Peak
Example: set<cr>
0<cr> ‘responds parameter ok
tracedet,3<cr> ‘selects sample detector
0<cr> ‘responds parameter ok
Note: In case of TRG measurement mode Phase, the phase data in unit radiants is returned.
Dependent on the wrap mode the wrapped or unwrapped phase values are provided.
1157.3564.12 31 E-10
Command Description R&S FSH-K1
A trace consists of 301 samples. If the Auto Peak detector is used, both Max and Min values are
returned (602 samples: 301 min values then 301 max values).
Example: get<cr>
0<cr>
tracebin<cr> ‘readout binary trace data
0<cr> ‘responds parameter ok
<sample><sample>....
Note: This command is only supported in Tracking Generator Measurement when vector calibrated
and not in measurement mode groupDelay.
1157.3564.12 32 E-10
R&S FSH-K1 Command Description
Note: This command is only supported in Tracking Generator Measurement when vector calibrated
and not in measurement mode groupDelay.
Note: This command is only supported in DTF measurement and in Tracking Generator
Measurement when vector calibrated.
1157.3564.12 33 E-10
Command Description R&S FSH-K1
Example: get<cr>
0<cr>
ctracebin<cr> ‘readout binary complex trace data
0<cr> ‘responds parameter ok
<sample><sample>....
Note: This command is only supported in DTF measurement and in Tracking Generator
Measurement when vector calibrated.
Note: In case of TG measurement mode, the phase data in unit radiants is returned. Dependent on
the wrap mode the wrapped or unwrapped phase values are provided.
1157.3564.12 34 E-10
R&S FSH-K1 Command Description
A trace consists of 301 samples. If the Auto Peak detector is used, both Max and Min values are
returned (602 samples: 301 min values then 301 max values).
Example: get<cr>
0<cr>
mtracebin,mydata.001<cr> ‘readout binary trace data from data set
0<cr> ‘responds parameter ok
<sample><sample>....
1157.3564.12 35 E-10
Command Description R&S FSH-K1
Marker
Command Parameters Unit Comment
MARK1ON 0, 1
MARK1 <numeric value>
MARKON <1…6>, 0, 1
MARK <1…6>, <numeric value>
DELTA1ON 0, 1
DELTA1 <numeric value>
DELTAON <1…6>, 0, 1
DELTA <2…6>, <numeric value>
MARKALLON 0, 1 SET command only
DELTAALLON 0, 1 SET command only
MARKALL? GET command only
DELTAALL? GET command only
MARKPK [1…6] CMD command only
MARKNXTPK [1…6] CMD command only
MARKMIN [1…6] CMD command only
MARKTOCENT [1…6] CMD command only
MARKTOLVL [1…6] CMD command only
MARKMODE 0...4
MARKDEMOD 0…2
MARKTIME < numeric value> s
MARKVOL 0…100 %
MARKIMPREF < numeric value> ]
MARKMEASY [0…6]
NDBDOWN GET command only
NDBDOWNVAL < numeric value > dB
1157.3564.12 36 E-10
R&S FSH-K1 Command Description
Value Marker
0 OFF
1 ON
Example: set<cr>
0<cr>
mark1on,1<cr> ‘turns marker on
0<cr> ‘responds parameter ok
MARK1 (Marker)
This command sets the marker to the specified position or queries the current marker value.
The marker unit depends on the unit of the x-axis which can be Hz, seconds or meter/feet depending of
the measurement mode. The unit of the second value in the GET command response depends on the
current unit of the y-axis.
If Smith Chart is active, the second and third values are the complex impedance.
Example: set<cr>
0<cr>
mark1,100E6<cr> ‘set marker to 100 MHz
0<cr> ‘responds parameter ok
Example 2: get<cr>
0<cr>
mark1<cr> ‘query current marker value
0<cr> ‘responds parameter ok
947.25e6,-79.28<cr> ‘returns Marker frequency and level
Param 1 Param 2
Value Marker No Value Marker Mode
0 OFF
1…6 Marker 1 … 6
1 ON
Example: set<cr>
0<cr>
markon,3,1<cr> ‘turns multi marker 3 on
0<cr> ‘responds parameter ok
1157.3564.12 37 E-10
Command Description R&S FSH-K1
MARK (Multimarker)
This command sets the corresponding (multi) marker to the specified position or queries the current
marker value.
The marker unit depends on the unit of the x-axis which can be Hz, seconds or meter/feet depending of
the measurement mode. The unit of the second value in the GET command response depends on the
current unit of the y-axis.
If Smith Chart is active, the second and third values are the complex impedance.
Value Multimarker
1…6 Marker 1…6
MARK,1 is used for the marker in normal and multi marker mode, MARK,2 to MARK,6 are available in
multi marker mode only.
Example: set<cr>
0<cr>
mark,2,100E6<cr> ‘set multi marker 2 to 100 MHz
0<cr> ‘responds parameter ok
Example 2: get<cr>
0<cr>
mark,2<cr> ‘query multi marker 2 value
0<cr> ‘responds parameter ok
947.25e6,-79.28<cr> ‘returns Marker frequency and level
Value Deltamarker
0 OFF
1 ON
Example: set<cr>
0<cr>
delta1on,1<cr> ‘turns deltamarker on
0<cr> ‘responds parameter ok
1157.3564.12 38 E-10
R&S FSH-K1 Command Description
DELTA1 (Deltamarker)
This command sets the deltamarker to the specified position in relation to the marker or queries the
current deltamarker value.
The deltamarker unit depends on the unit of the x-axis which can be Hz, seconds or meter/feet
depending of the measurement mode. The unit of the second value in the GET command response
depends on the current unit of the y-axis.
If Smith Chart is active, the second and third values are the complex impedance.
Example: set<cr>
0<cr>
delta1,-100E3<cr> ‘set deltamarker to 100 kHz below the marker
0<cr> ‘responds parameter ok
Example 2: get<cr>
0<cr>
delta1<cr> ‘query current marker value
0<cr> ‘responds parameter ok
-100e3,-8.23<cr> ‘returns deltamarker frequency and relative level
Param 1 Param 2
Value Deltamarker No Value Deltamarker
0 OFF
1…6 Deltamarker 1…6
1 ON
Example: set<cr>
0<cr>
deltaon,2,1<cr> ‘turns deltamarker 2 on
0<cr> ‘responds parameter ok
1157.3564.12 39 E-10
Command Description R&S FSH-K1
Value Deltamarker
2…6 Deltamarker 2…6
DELTA,2 is used for the deltamarker in normal and multi marker mode, DELTA,3 to DELTA,6 are
available in multi marker mode only.
Example: set<cr>
0<cr>
delta,2,-100E3<cr> ‘set deltamarker 2 to 100 kHz below the marker
0<cr> ‘responds parameter ok
Example 2: get<cr>
0<cr>
delta,2<cr> ‘query delta marker 2 value
0<cr> ‘responds parameter ok
-100e3,-8.23<cr> ‘returns deltamarker frequency and relative level
1157.3564.12 40 E-10
R&S FSH-K1 Command Description
MARKALL? (Multimarker)
This command queries the current list of multimarkers. Each multimarker returns three numbers:
multimarker number, x-axis value, y-axis value. This GET command is available in multi marker mode
only.
The unit of the second number in the GET command response depends on the unit of the x-axis which
can be Hz, seconds or meter/feet depending of the measurement mode. The unit of the third value in
the GET command response depends on the current unit of the y-axis.
Example: get<cr>
0<cr>
markall?<cr> ‘query multi marker list (e.g. 2 multimarkers)
0<cr> ‘responds parameter ok
1,103.4e6,-45.66,2,110.8e6,-23.67<cr>
Example: cmd<cr>
0<cr>
markpk<cr> ‘set marker to peak
0<cr> ‘responds parameter ok
Example 2: cmd<cr>
0<cr>
markpk,4<cr> ‘set multi marker 4 to peak
0<cr> ‘responds parameter ok
1157.3564.12 41 E-10
Command Description R&S FSH-K1
Example: cmd<cr>
0<cr>
marknxtpk<cr> ‘set marker to next peak
0<cr> ‘responds parameter ok
Example: cmd<cr>
0<cr>
markmin<cr> ‘set marker to minimum
0<cr> ‘responds parameter ok
Example: cmd<cr>
0<cr>
marktocent<cr> ‘set marker frequency to center frequency
0<cr> ‘responds parameter ok
Example: cmd<cr>
0<cr>
marktolvl<cr> ‘set marker level to reference level
0<cr> ‘responds parameter ok
Example 2: cmd<cr>
0<cr>
marktolvl,4<cr> ‘set multi marker 4 level to reference level
0<cr> ‘responds parameter ok
1157.3564.12 42 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
markmode,2<cr> ‘turns on frequency count
0<cr> ‘responds parameter ok
Value Demodulation
0 OFF
1 AM
2 FM
Example: set<cr>
0<cr>
markdemod,2<cr> ‘turns on FM demodulation
0<cr> ‘responds parameter ok
1157.3564.12 43 E-10
Command Description R&S FSH-K1
NDBDOWN
This command returns the measured ‘n dB down’ bandwidth value.
Example: get<cr>
0<cr>
ndbdown<cr> ‘get n dB down value
0<cr> ‘responds parameter ok
123.456e3 ‘bandwidth is 123.456 kHz
NDBDOWNVAL
This command defines the ‘n dB down’ value. The range is -100.0 dB to 100.0 dB with a resolution of
0.1 dB. This command will automatically set the marker mode to ‘n db down’.
Example: set<cr>
0<cr>
ndbdownval,5<cr> ‘set n dB down on 5 dB
0<cr> ‘responds parameter ok
1157.3564.12 44 E-10
R&S FSH-K1 Command Description
Measurement
Command Parameters Unit Comment
MEAS 0…11
TRD1 <string> Not in Isotropic
Antenna mode
TRD1X <string> Isotropic Antenna
mode only
TRD1Y <string> Isotropic Antenna
mode only
TRD1Z <string> Isotropic Antenna
mode only
TRD2 <string>
ACCESSORY <numeric value>
LIMDEF <name>,<description>,
<x-unit>,<x-scale>,<y-
unit>,<x0>,<y0>[,<xn>,
<yn>]
LIMDEL <name> CMD command only
LIMLIST GET command only
LIMLOW <string>
LIMUPP <string>
LIMPASS GET command only
LIMCHKREMOTE 0, 1 Receiver Mode only
(R&S FSH-K3)
THRLOW <numeric value> Receiver Mode only
(R&S FSH-K3)
THRUPP <numeric value> Receiver Mode only
(R&S FSH-K3)
THRPASS Receiver Mode only
(R&S FSH-K3)
GET command only
THROFF Receiver Mode only
(R&S FSH-K3)
CMD command only
1157.3564.12 45 E-10
Command Description R&S FSH-K1
Value Measurement
0 Off
1 Analyzer
2 Tracking Generator (Model 13, 23 and 26)
3 Power Sensor
4 Channel Power
5 Occupied Bandwidth
6 TDMA Power
7 Distance to Fault (R&S FSH-B1)
8 Receiver Mode (R&S FSH-K3)
9 Carrier / Noise
10 Isotropic Antenna
11 WCDMA BTS CDP
Using the value 0 the instrument can turned off if the power adapter is connected. If the instrument is
OFF it can be turned on programmatically by selecting one of the measurement modes.
Example: set<cr>
0<cr>
meas,4<cr> ‘selects channel power measurement
0<cr> ‘responds parameter ok
TRD1 (Transducer)
This command selects a transducer. To turn a transducer off, use the string ‘NONE’:
Example: set<cr>
0<cr>
trd1,hl223<cr> ‘selects transducer table “HL223”
0<cr> ‘responds parameter ok
Example 2: set<cr>
0<cr>
trd1,none<cr> ‘de-activates any transducer
0<cr> ‘responds parameter ok
1157.3564.12 46 E-10
R&S FSH-K1 Command Description
TRD2 (Transducer – dB )
This command selects a transducer (dB only). To turn a transducer off, use the string ‘NONE’.
Example: set<cr>
0<cr>
trd1,preamp<cr> ‘selects transducer table “preamp”
0<cr> ‘responds parameter ok
Value Accessory
0 Auto Detect
1 None
2 Bridge R&S FSH-Z2
3 Bridge R&S FSH-Z3
4 Power sensor
5 Isotropic Antenna
Example: set<cr>
0<cr>
accessory,0<cr> ‘Sets auto detection of accessory”
0<cr> ‘responds parameter ok
1157.3564.12 47 E-10
Command Description R&S FSH-K1
<name>,<description>,<x-unit>,<x-scale>,<y-unit>,<x0>,<y0>[,...<xn>,<yn>]
The parameter <name> and <description> are strings. The parameters x-unit and y-unit are listed in the
tables below:
Parameter x-unit:
Value Unit
0 Hz
1 Seconds
2 Meter
The parameter x-scale defines whether the x values are absolute values or relative values according to
the center x value:
Value x-scale
0 Absolute
1 Relative
Parameter y-unit:
Value Unit
0 dB
1 dBm
2 dBµV
3 dBmV
4 dBµV/m
5 dBµA/m
6 VSWR
7 Rho
8 Volt
9 Watt
10 Volt/m
2
11 Watt/m
12 Seconds
13 Degrees
The following example defines the limit line “LIMIT”, with description “Max” in dBm on the frequency
axis (Hz) as an absolute limit line with 4 values (100MHz -30dBm, 200MHz -10dBm, 300MHz -10dBm,
400MHz -30dBm):
Example: set<cr>
0<cr>
limdef,LIMIT,Max,0,0,1,100e6,-30,200e6,-10,300e6,
-10,400e6,-30<cr>
‘defines limit line “LIMIT”
0<cr> ‘responds parameter ok
Note: To replace an existing limit line in the instrument it has to be deleted first by using the LIMDEL
command described below.
1157.3564.12 48 E-10
R&S FSH-K1 Command Description
Example: get<cr>
0<cr>
limpass<cr> ‘query limit check
0<cr> ‘responds parameter ok
2<cr> ‘limit check passed
1157.3564.12 49 E-10
Command Description R&S FSH-K1
Example: get<cr>
0<cr>
limchkremote,1<cr> ‘enable remote massage on limit fail
0<cr> ‘responds parameter ok
123.456E6,23.5<cr> ‘limit exceeded
130.567E6,22.0<cr> ‘limit exceeded…..
…
0<cr> ‘remote message on limit fail OFF
LIMBEEP
This command turns the limit line beep on or off.
Value
0 Off
1 On
Example: get<cr>
0<cr>
limbeep<cr> ‘query if limit line beep is switched on’
0<cr> ‘responds parameter ok’
1<cr> ‘limit beep is switched on’
LIMMSG
This command turns the limit line message on or off.
Value
0 Off
1 On
Example: set<cr>
0<cr>
limmsg,1<cr> ‘switch limit line message on’
0<cr> ‘responds parameter ok’
1157.3564.12 50 E-10
R&S FSH-K1 Command Description
Example: get<cr>
0<cr>
thrpass<cr> ‘query threshold line check
0<cr> ‘responds parameter ok‘
2<cr> ‘threshold check passed
1157.3564.12 51 E-10
Command Description R&S FSH-K1
Tracking Generator
This command set applies to model 13, model 23 and model 26 only.
CALKIT
This command sets the tracking generator CalKit.
Example: get<cr>
0<cr>
calkit<cr> ‘query the calkit
0<cr> ‘responds parameter ok
0<cr> ‘response: FSH CalKit selected
1157.3564.12 52 E-10
R&S FSH-K1 Command Description
CALKITLEN
This command defines the user calkit length. When set, also the user calkit will be selected. The
numeric values must be between 0 and 1 m with resolution of 0.01 mm.
Example: set<cr>
0<cr>
calkitlen,1e-4<cr> ‘sets the user calkit length to 0.1 mm
0<cr> ‘responds parameter ok
OFFSETLEN
This command defines the offset length. The numeric values must be between 0 and 100 m with
resolution of 0.01 mm.
Example: set<cr>
0<cr>
offsetlen,1<cr> ‘sets the offset length to 1 m
0<cr> ‘responds parameter ok
1157.3564.12 53 E-10
Command Description R&S FSH-K1
Example: get<cr>
0<cr>
transcal<cr> ‘query state of transmission calibration
0<cr> ‘responds parameter ok
1<cr> ‘response: transmission calibrated
1157.3564.12 54 E-10
R&S FSH-K1 Command Description
Example: get<cr>
0<cr>
reflcal<cr> ‘query state of reflection calibration
0<cr> ‘responds parameter ok
1<cr> ‘response: reflection calibrated
Example: get<cr>
0<cr>
transvectcal<cr> ‘query state of transmission vector calibration
0<cr> ‘responds parameter ok
1<cr> ‘response: transmission vector calibrated
Example: get<cr>
0<cr>
reflvectcal<cr> ‘query state of reflection vector calibration
0<cr> ‘responds parameter ok
1<cr> ‘response: reflection vector calibrated
1157.3564.12 55 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
tgmode, 1<cr> ‘set tracking generator mode to cable loss meas
0<cr> ‘responds parameter ok
1157.3564.12 56 E-10
R&S FSH-K1 Command Description
Note: This command is only available when measurement mode is Phase and zero span is not active.
Example 2: set<cr>
0<cr>
vvref,0<cr> ‘disable vector voltage reference
0<cr> ‘responds parameter ok
1157.3564.12 57 E-10
Command Description R&S FSH-K1
Power Sensor
Command Parameters Unit Comment
PWR <numeric value> GET command only
REFL <numeric value> GET command only
ZERO CMD command only
PWRTOREF CMD command only
MEASTIME 0...2
REFLUNIT 0, 1 R&S FSH-Z44 only
PWRSSTD 0…7 R&S FSH-Z44 only
REFL (Reflection)
This command queries the reflection measured by the power sensor R&S FSH-Z44. The unit (dB or
VSWR ) depends on the setting of reflection unit (SET REFLUNIT command).
Example: get<cr>
0<cr>
refl<cr> ‘query reflection from sensor
0<cr> ‘responds parameter ok
2.54<cr> ‘response: reflection value
1157.3564.12 58 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
meastime,2<cr> ‘sets measurement time to “long”
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
reflunit,1<cr> ‘sets reflection unit to VSWR
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
pwrsstd,2<cr> ‘select EDGE as standard
0<cr> ‘responds parameter ok
1157.3564.12 59 E-10
Command Description R&S FSH-K1
Channel Power
Command Parameters Unit Comment
CHPWR <numeric value> GET command only
CHPWRSTD 0…3
CHPWRCSTD <string>
CHPWRUNIT 0…2
CHPWRBW <numeric value> Hz
LVLADJUST CMD command only
Example: set<cr>
0<cr>
chpwrstd,2<cr> ‘select cdmaOne as standard
0<cr> ‘responds parameter ok
Note: If any customized standard was previously selected a value of ‘4’ will be returned as a response
to a GET CHPWRSTD query.
1157.3564.12 60 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
chpwrunit,1<cr> ‘set unit to dBmV
0<cr> ‘responds parameter ok
Note: To check if the level adjustment is ready, the WAIT command can be used
1157.3564.12 61 E-10
Command Description R&S FSH-K1
Occupied Bandwidth
Command Parameters Unit Comment
OBW <numeric value> GET command only
OBWSTD 0…3
OBWCSTD <string>
OBWCHBW <numeric value> Hz
LVLADJUST CMD command only
Example: set<cr>
0<cr>
obwstd,1<cr> ‘select 3GPP WCDMA as standard
0<cr> ‘responds parameter ok
Note: If any customized standard was previously selected a value of ‘4’ will be returned as a response
to a GET OBWSTD query.
1157.3564.12 62 E-10
R&S FSH-K1 Command Description
Note: To check if the level adjustment is ready, the WAIT command can be used
1157.3564.12 63 E-10
Command Description R&S FSH-K1
TDMA Power
Command Parameters Unit Comment
TDMAPWR <numeric value> GET command only
TDMASTD 0…1
MEASTIME <numeric value> s
LVLADJUST CMD command only
Example: set<cr>
0<cr>
tdmastd,1<cr> ‘select GSM/EDGE as standard
0<cr> ‘responds parameter ok
Note: If any customized standard was previously selected a value of ‘2’ will be returned as a response
to a GET TDMASTD query.
1157.3564.12 64 E-10
R&S FSH-K1 Command Description
Note: To check if the level adjustment is ready, the WAIT command can be used
1157.3564.12 65 E-10
Command Description R&S FSH-K1
1157.3564.12 66 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
dtfmode,2<cr> ‘set DTF mode to “Spectrum”
0<cr> ‘responds parameter ok
1157.3564.12 67 E-10
Command Description R&S FSH-K1
Receiver Mode
The Receiver Mode requires the option R&S FSH-K3.
Example: set<cr>
0<cr>
chmode,1<cr> ‘selects channel mode
0<cr> ‘responds parameter ok
1157.3564.12 68 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
scanmode,1<cr> ‘selects scan mode
0<cr> ‘responds parameter ok
1157.3564.12 69 E-10
Command Description R&S FSH-K1
1157.3564.12 70 E-10
R&S FSH-K1 Command Description
1157.3564.12 71 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
cnmanrefpwr,1<cr> ‘select manual reference power
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
cnmeasmode,1<cr> ‘select Analog TV as measurement mode
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
cnmode,0<cr> ‘select C/N reference measurement
0<cr> ‘responds parameter ok
1157.3564.12 72 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
cnnoisecor,0<cr> ‘disable C/N noise correction
0<cr> ‘responds parameter ok
Value Norm
0 C/N
1 C/No
Example: set<cr>
0<cr>
cnnorm,1<cr> ‘select C/No as norm
0<cr> ‘responds parameter ok
1157.3564.12 73 E-10
Command Description R&S FSH-K1
Example: set<cr>
0<cr>
cnpwrdisp,1<cr>
0<cr> ‘responds parameter ok
Example: set<cr>
0<cr>
cnrefmeasmode,2<cr> ‘set reference measurement mode to manual
0<cr> ‘responds parameter ok
1157.3564.12 74 E-10
R&S FSH-K1 Command Description
Value Unit
0 dBm
1 dBmV
2 dBuV
Example: set<cr>
0<cr>
cnunit,1<cr> ‘select dBmV as unit
0<cr> ‘responds parameter ok
Note: To check if the level adjustment is ready, the WAIT command can be used
1157.3564.12 75 E-10
Command Description R&S FSH-K1
1157.3564.12 76 E-10
R&S FSH-K1 Command Description
Example: set<cr>
0<cr>
antdiv,1<cr> ‘set antenna diversity to type No. 1
0<cr> ‘responds parameter ok
Example: get<cr>
0<cr>
cpichpwr<cr> ‘get CPICH power of scrambling code nr id 1
0<cr> ‘responds parameter ok
-9.5<cr> ‘CPICH power is -9.5 dBm
If an auto scrambling detection multiple has been performed successfully the command allows an
option parameter.
Example: get<cr>
0<cr>
cpichpwr,4<cr> ‘get CPICH Power of scrambling code id 4
0<cr> ‘responds parameter ok
13<cr> ‘CPICH Power is 13 dBm
1157.3564.12 77 E-10
Command Description R&S FSH-K1
1157.3564.12 78 E-10
R&S FSH-K1 Command Description
Example: get<cr>
0<cr>
pscrcd,4<cr> ‘get prim scrambling code of id 4
0<cr> ‘responds parameter ok
1<cr> ‘prim scambling code number is 1
1157.3564.12 79 E-10
Command Description R&S FSH-K1
If an auto scrambling detection multiple has been performed successfully the get command allows an
option parameter.
Example: get<cr>
0<cr>
sscrcd,4<cr> ‘get sec scrambling code nr of id 4
0<cr> ‘responds parameter ok
0<cr> ‘sec scambling code number is 0
Example: get<cr>
0<cr>
syncresult<cr> ‘get synchronization result
0<cr> ‘responds parameter ok
2<cr> ‘sync. result: SYNC_RESULT_INCORR_ANTENNA_DIV
1157.3564.12 80 E-10
R&S FSH-K1 Command Description
Example: cmd<cr>
0<cr>
autosdsngl<cr> ‘start auto scrambling detection single
0<cr> ‘responds parameter ok
Example: cmd<cr>
0<cr>
autosdsngl<cr> ‘start auto scrambling detection multiple
0<cr> ‘responds parameter ok
1157.3564.12 81 E-10
Programming Examples R&S FSH-K1
Programming Examples
The following examples are code snippets in Visual Basic (VB6).
With MainForm.FSHCommC
.CommPort = Port
.Settings = Trim$(Str$(Speed)) + ",N,8,1"
.InBufferSize = 1000
.PortOpen = True
.InBufferCount = 0
End With
InBuffer = vbNullString
End Function
‘-------------------------------------------
With MainForm.FSHCommC
Do
InBuffer = InBuffer + .Input
DoEvents
CrPos = InStr(1, InBuffer, vbCr)
Loop Until CrPos > 0
PollFSH = Left$(InBuffer, CrPos - 1)
InBuffer = Mid$(InBuffer, CrPos + 1)
End With
End Function
‘-------------------------------------------
InBuffer = vbNullString
FSHCmd = False
With MainForm.FSHCommC
.Output = "cmd" + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
.Output = Command + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
FSHCmd = True
Else
DebugMsg "CMD error" + Str(TempError) + " for command <" + Command + ">"
End If
Else
DebugMsg "CMD error" + Str(TempError) + " for command <" + Command + ">"
End If
End With
End Function
‘-------------------------------------------
1157.3564.12 82 E-10
R&S FSH-K1 Programming Examples
InBuffer = vbNullString
FSHSet = False
With MainForm.FSHCommC
.Output = "set" + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
.Output = Command + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
FSHSet = True
Else
ErrorMsg "SET error" + Str(TempError) + " for command <" + Command + ">"
End If
Else
ErrorMsg "SET error" + Str(TempError) + " for command <" + Command + ">"
End If
End With
End Function
‘-------------------------------------------
InBuffer = vbNullString
FSHGet = False
With MainForm.FSHCommC
.Output = "get" + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
.Output = Command + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
Sleep 50
Buffer = PollFSH
FSHGet = True
Else
ErrorMsg "GET error" + Str(TempError) + " for command <" + Command + ">"
End If
Else
ErrorMsg "GET error" + Str(TempError) + " for command <" + Command + ">"
End If
End With
End Function
‘-------------------------------------------
End Sub
‘-------------------------------------------
1157.3564.12 83 E-10
Programming Examples R&S FSH-K1
InBuffer = vbNullString
FSHGetTraceBin = False
With MainForm.FSHCommC
.Output = "GET" + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
.Output = "TRACEBIN" + vbCr
TempError = Val(PollFSH)
If TempError = 0 Then
InBuffer = PollFSHBin(1205) ‘ 4 x 301 bins with 4 bytes
AsString.Buffer = StrConv(InBuffer, vbFromUnicode)
LSet AsValues = AsString
Values = AsValues.SValues
ReDim Preserve Values(0 To 300)
FSHGetTraceBin = True
Else
ErrorMsg "GET error" + Str(TempError) + " for command <TRACEBIN>"
End If
Else
ErrorMsg "GET error" + Str(TempError) + " for command <TRACEBIN>"
End If
End With
End Function
‘-------------------------------------------
With MainForm.FSHCommC
Do
InBuffer = InBuffer + .Input
DoEvents
DebugMsg "BIN-BUFFER-LEN: " + Str(Len(InBuffer))
Loop Until Len(InBuffer) >= BufferLen
PollFSHBin = Left$(InBuffer, BufferLen)
InBuffer = Mid$(InBuffer, BufferLen + 1)
End With
End Function
1157.3564.12 84 E-10