: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 |
Parameter |
:SENSe<ch>:SWEep:TYPE |
{ LINear | LOGarithmic } |
Parameters |
accepted format |
allowed suffixes |
possible Errors |
description |
<ch > |
{ 1 | empty } |
none |
Invalid channel index |
Currently only one channel is supported. Empty means 1 is used as default. |
{ LINear | LOGarithmic } |
exactly the given options |
none |
Illegal parameter value |
The sweep mode |
Syntax |
Response |
:SENSe<ch>:SWEep:TYPE? |
{ LIN | LOG } |
Parameters |
accepted format |
description |
<ch > |
{ 1 | empty } |
Currently only one channel is supported. Empty means 1 is used as default. |
Response value |
description |
{ LIN | LOG } |
The sweep mode |
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
.
var visaSession = new TcpipSocket(VISA_RESOURCENAME);
visaSession.RawIO.Write(":SENS:FREQ:STAR 7.5kHz;STOP 12.5kHz\n");
visaSession.RawIO.Write(":SENS:SWE:TYPE LOG\n");
visaSession.RawIO.Write(":TRIG:SING\n");
// wait for the measurement to finish
visaSession.RawIO.Write("*OPC?\n");
visaSession.RawIO.ReadString();
visaSession.RawIO.Write(":SENS:FREQ:DATA?\n");
var frequencyValues = visaSession.RawIO.ReadString();
visaSession.RawIO.Write(":CALC:DATA:SDAT?\n");
var measurementValues = visaSession.RawIO.ReadString();
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')
:SENSe:FREQuency:STARt
:SENSe:FREQuency:STOP