
Section 3: LPTLib command reference
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-70
S530-900-01 Rev. E / September 2017
scp_selftest
This command does an internal self-test of the scope card.
Usage
int scp_selftest(int
instr_id
)
instr_id
The instrument identification code of the scope card
Details
The scope card must be initialized before using this command.
This command returns a
0
if executed without error; a negative number indicates an error.
Example
Status1 = scp_selftest(SCP2);
Does a self-test of scope card 2 (SCP2).
Also see
(on page 3-67)
scp_setup
This command sets the start, stop, and step (scan resolution) frequencies of a scan.
Usage
int scp_setup(int
instr_id
, double
min_freq
, double
max_freq
, double
res_bandwidth
)
instr_id
The instrument identification code
min_freq
Start frequency of the scan in Hertz (Hz)
max_freq
Stop frequency of the scan in Hz
res_bandwidth
Step size (scan resolution in Hz):
1e6
,
3e5
,
1e5
,
3e4
,
1e4
,
3e3
, or
1000
Details
The scope card must be initialized before using this command.
The recommended relationship of the
res_bandwidth
parameter for different spans of a scan is
listed in the following table.
Relationship of res_bandwidth and span
Frequency span
res_bandwidth
60 MHz
≤
Span
1 MHz
20 MHz
≤
Span
≤
60 MHz
300 KHz
6 MHz
≤
Span
≤
20 MHz
100 KHz
2 MHz
≤
Span
≤
6 MHz
30 KHz
300 KHz
≤
Span
≤
2 MHz
10 KHz
100 KHz
≤
Span
≤
300 KHz
3000 Hz
50 KHz
≤
Span
≤
100 KHz
1000 Hz