Spectrum Compact v2
API user manual v.1.0
15
API commands
Description
trace
Returns the currently selected trace mode displayed on the screen of
Spectrum Compact:
1
–
normal
2
–
maxhold
3
–
minmaxhold
4
–
cumulative
5
–
average2
6
–
average 4
7
–
average 8
8
–
average16
trace
< 1
–
8 >
Sets the trace mode displayed on the screen of Spectrum Compact.
Note: values returned with “
sweepu
” and “
sweepc
” command
s are
always with “normal” trace mode (any processing must be done
afterward).
pib
<start frequency in kHz>
<end frequency in kHz>
Returns calculated Power-in-Band value once in dBm* for selected
frequency range (RESULT = -VALUE + (ATT - REF))
Enter values in kHz format:
Start Freq -
selected pib start frequency
End Freq -
selected pib end frequency
* returns calculated Power-in-Band values continuously
zspan
<center frequency in
kHz>
Returns measured signal level continuously in dBm for selected
center frequency point
–
zero span, with set RBW value. Each
measurement point is returned as ASCII hexadecimal unsigned byte
strings consisting of 2 + 1 characters.
Structure of returned value:
XXY, where XX
–
value in dBm ; Y
–
counter from 0 to 9.
Start Freq -
selected zero span center frequency
To stop an ongoing command immediately, send any character while
data is being received.