SCPI Command Reference 17-81
Logarithmic current sweep
Logarithmic current sweep from 1mA to 100mA in 20 points:
*RST
SOUR:FUNC:MODE CURR
SOUR:SWE:SPAC LOG
SOUR:CURR:STAR .001
SOUR:CURR:STOP .1
SOUR:SWE:POIN 20
TRIG:COUN 20
SOUR:CURR:MODE SWE
OUTP ON
INIT
To determine the source values that will be generated:
Start: 0.001 Log
10
(Start): -3
Stop: 0.1 Log
10
(Stop): -1
LogStep = (Log
10
(Stop) - Log
10
(Start)) / (SWE:POIN -1)
= (-1 - (-3) / (20 - 1)
= 2/ 19
= 0.105263
Now add the LogStep value to Log
10
(Start) and to each subsequent result. This will create a
list of Log
10
Values. Next take the anti-log of each Log
10
Value to get the actual sweep values:
Value# Log
10
Value Sweep Value
1 -3.000000 0.001000
2 -2.894737 0.001274
3 -2.789474 0.001623
4 -2.684211 0.002069
5 -2.578948 0.002637
6 -2.473685 0.003360
7 -2.368422 0.004281
8 -2.263159 0.005456
9 -2.157896 0.006952
10 -2.052633 0.008859
11 -1.947370 0.011288
12 -1.842107 0.014384
13 -1.736844 0.018329
14 -1.631581 0.023357
15 -1.526318 0.029763
16 -1.421055 0.037927
17 -1.315792 0.048329
18 -1.210526 0.061584
19 -1.105263 0.078475
20 -1.000000 0.100000