:SENSe:FREQuency:CENTer
Description
This command gets or sets the center frequency of a sweep. If the center frequency is
altered, the start frequency the frequency span and the stop frequency are
changed accordingly.
If the specified parameter is out of the allowable setup range, the minimum value (if the
lower limit of the range is not reached) or the maximum value (if the upper limit of the
range is exceeded) is set.
Syntax |
Parameter |
:SENSe<ch>:FREQuency:CENTer |
<numeric > |
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. |
{ <numeric > | MINimum | MAXimum } |
Range from Min. frequency to Max. frequency |
Hz |
Numeric data error |
The center frequency value of the sweep |
Syntax |
Response |
:SENSe:FREQuency:CENTer? |
<numeric > |
Parameters |
accepted format |
description |
<ch > |
{ 1 | empty } |
Currently only one channel is supported. Empty means 1 is used as default. |
Response value |
description |
<numeric > |
value of the center frequency in Hz |
Presets
For presets please refer to Measurement Modes and Default Settings.
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();
visaSession.write(':SENS:FREQ:CENT 10kHz\n')
visaSession.write(':SENS:FREQ:SPAN 5kHz\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:SPAN