:SENSe:FREQuency:CENTer
Description
This command gets or sets the center frequency of a sweep. If the center frequency is altered, the start frequency and the stop frequency are changed accordingly. If the resulting value of either the start frequency or the stop frequency would exceed the limits, a Settings conflict
error (-221
) is raised and the values are NOT changed. If the center frequency value itself exceeds the maximum or minimum frequency limit, it is tried to set it to max or min value. This does not raise an error, if the span is set to 0Hz
, otherwise a Settings conflict
error is raised, because the start or stop frequency would exceed the limits.
Syntax | Parameter |
---|---|
:SENSe<ch>:FREQuency:CENTer |
<numeric > |
Parameters | accepted format | allowed suffixes | possible Errors | description |
---|---|---|---|---|
<ch > |
{ 1 | empty } |
none |
Undefined header |
Currently only one channel is supported. Empty means 1 is used as default. |
<numeric > |
numeric value | Hz |
Settings conflict |
The center frequency value of the sweep |
Presets
default value | |
---|---|
<numeric > |
30kHz |
Sample usage
Configure and start a sweep measurement with center frequency of 10kHz
and a span of 5kHz
(from 7.5kHz
to 12.5kHz
).
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":SENS:FREQ:CENT 10kHz\n"); visaSession.RawIO.Write(":SENS:FREQ:SPAN 5kHz\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();
Related commands
Related commands in the Automation Interface
ConfigureSweep(Double, Double, Int32, SweepMode) (Gain)
ConfigureSweep(Double, Double, Int32, SweepMode) (OnePort)
ConfigureSweep(Double, Double, Int32, SweepMode) (S11)
ConfigureSweep(Double, Double, Int32, SweepMode) (S21)
ConfigureSweep(Double, Double, Int32, SweepMode) (SeriesThru)
ConfigureSweep(Double, Double, Int32, SweepMode) (ShuntThru)