Wiki

This version is outdated by a newer approved version.DiffThis version (05 May 2021 14:49) was approved by Prasad Kamath.The Previously approved version (21 Mar 2021 10:08) is available.Diff

This is an old revision of the document!


Click here to return to the Sources page

Sweep Input with Switch



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 Switch
  • Linear Sweep With Switch Tone Burst
  • Log Sweep Switch
  • Log Sweep With Switch 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.
  • On/Off switch
    • Starts the sweep

Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/1456x
—————————————-——————————————————————————————--——————————————-
LinearSweep and variants B & S B & S S
LogSweep and variants B & S B & S S


Pins

Output

NameTypeDescription
———————————-———————--
Output0AudioOutput channel 0


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
Enablefalse false(off)/true(on) Switch on and off the sine sweep


DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xx
—————————-- ————————————————————————————————— —————————————————--
start_freqnormalised value of start frequencyFloat
stop_freqnormalised value of end frequencyFloat
numcycles_per_stepGain, the sinetone wave to be multipliedFloat
numstepsnumber of steps between start and stopFloat
freq_increment frequency increment defined by range and numsteps Float
ison Enabled/Disabled the sweep Int


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)
ison = Sweep
FS, Where fs is frequency and FS is the sampling rate

resources/tools-software/sigmastudiov2/modules/sources/sweepswitch.1620218927.txt.gz · Last modified: 05 May 2021 14:48 by Prasad Kamath