Help Icon
Search Results for

    Show / Hide Table of Contents

    :SENSe:FREQuency:SPAN

    Description

    This command gets or sets the frequency span of a sweep. If the frequency span is altered, the start frequency the stop frequency and the center 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:SPAN

    Command Query
    Query Response
    Yes Yes Value of the frequency span in Hz.
    Parameters
    Accepted Format
    Allowed Suffixes
    Possible Errors
    Description
    { <numeric> | MINimum | MAXimum } Range from Min. span to (Max. frequency - Min. frequency) Hz Numeric data error The frequency span 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')
    

    Related commands

    :SENSe:FREQuency:CENTer

    In this article
    Back to top Generated by DocFX