:SENSe:SWEep:TYPE
Description
This commands sets the sweep type to LINEAR or LOGARITHMIC. The calculation for the measurement frequency points is based on this selection.
Syntax
:SENSe<ch>:SWEep:TYPE
| Command | Query | Query Response |
|---|---|---|
| Yes | Yes | The sweep mode. |
| Parameters | Accepted Format |
Allowed Suffixes |
Possible Errors |
Description |
|---|---|---|---|---|
{ LINear | LOGarithmic } |
exactly the given options | none |
Illegal parameter value |
The sweep mode |
To learn more about channels and traces, please refer to the SCPI command structure
Options
| Options | Description |
|---|---|
LINear |
The distance between measurement frequencies is linear. |
LOGarithmic |
The distance between measurement frequencies is logarithmic. |
Presets
For presets please refer to Measurement Modes and Default Settings.
Sample usage
Configure and start a logarithmic sweep measurement from 7.5kHz to 12.5kHz.
visaSession.write(':SENS:FREQ:STAR 7.5kHz;STOP 12.5kHz\n')
visaSession.write(':SENS:SWE:TYPE LOG\n')
visaSession.write(':TRIG:SING\n')
visaSession.query('*OPC?\n')
frequencyValues = visaSession.query(':SENS:FREQ:DATA?\n')
measurementValues = visaSession.query(':CALC:DATA:SDAT?\n')