Wiki

This version (01 Apr 2024 13:57) was approved by John Joseph.The Previously approved version (12 May 2021 12:49) is available.Diff

Click here to return to the Sources page

Sweep Input



Description


The Sweep block generates a sinewave that sweeps from a start frequency to an end frequency. The sweep rate is determined by the number of sweep steps and cycles per step. In case of the linear sweep, the frequency sweep is linear across time whereas in the case of log sweep input, the frequency sweeps logarithmically cross time. The following variants of the module are available:

  • Linear Sweep Input
  • Linear Sweep With Input Tone Burst
  • Log Sweep Input
  • Log Sweep With Input Tone Burst


Usage


Enter the desired start and stop frequency and step size using the edit controls:

  • Start Freq
    • The frequency at which to begin the sweep.
  • Stop Freq
    • The frequency at which to end the sweep.
  • # Steps
    • Determines the number of steps in the sweep.
  • # Cycles/Step
    • Determines the number of the cycles (sine wave cycles) in each step.

Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/1456x
LinearSweep and variants Not Supported Not Supported Sample
LogSweep and variantsNot Supported Not Supported Sample


Pins

Input

NameTypeDescription
InputControl Enable/Disable sweep

Output

NameTypeDescription
OutputAudioOutput channel


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
StartFrequency200 to 0.5* sample rateSets the initial frequency for sinetone sweep
StopFrequency200000 to 0.5* sample rateSets the final/end frequency for sinetone sweep
Steps42 to 48000 Number of increments in the range defined by start and stop frequency
Cycles5 1 to 500 Number of cycles to be rendered of a particular frequency


DSP Parameters

Parameter NameDescriptionADAU145x/146x
start_freqnormalised value of start frequencyFixPoint8d24
stop_freqnormalised value of end frequencyFixPoint8d24
numcycles_per_stepGain, the sinetone wave to be multipliedInteger32
numstepsnumber of steps between start and stopInteger32
freq_increment frequency increment defined by range and numsteps FixPoint8d24


DSP Parameter Computation

start_freq= StartFrequency/(FS/2)
freq_increment= EndFrequency/(FS/2)
numsteps= Steps
numcycles_per_step = Cycles
freq_increment = (StartFrequency-StopFrequency)/(Steps-1)
FS, Where fs is frequency and FS is the sampling rate

resources/tools-software/sigmastudiov2/modules/sources/sweepinput.txt · Last modified: 01 Apr 2024 13:57 by John Joseph