: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
:SENSe<ch>:FREQuency:CENTer
| Command | Query | Query Response |
|---|---|---|
| Yes | Yes | Value of the center frequency in Hz. |
| Parameters | Accepted Format |
Allowed Suffixes |
Possible Errors |
Description |
|---|---|---|---|---|
{ <numeric> | MINimum | MAXimum } |
Range from Min. frequency to Max. frequency | Hz |
Numeric data error |
The center frequency value of the sweep |
To learn more about channels and traces, please refer to the SCPI command structure
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).
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')