This version (20 Jan 2016 10:26) was approved by Venkatesan Krishnamoorthy.The Previously approved version (20 Jan 2016 10:22) is available.Diff

Square wave With Phase and Gain

Click here to return to the Sources section.

The Square Wave block generates a square wave at a constant level and frequency. The output frequency is adjustable. Use the edit control or arrows to set the desired frequency; the checkbox control turns the signal on and off.

To change the source's Sampling Rate, Right-click in the block and select Set Sampling Rate, which will open the Sampling Rate window (default is 44.1 kHz).

GUI Control

GUI Control NameDefault ValueRangeFunction Description
on/offoffon/offTurns the output of the cell on or off. When the output is off, the output pin will output a constant value of 0.
Frequency500.010.01 to 0.5*Sample RateThe sets the frequency of the square wave that is output from the cell.
Initial Phase00 to 360Initial Phase of the square wave.
Gain0-144 to 42 dB The gain to be multiplied on the square wave

Note: The square wave is digitally generated and is non-bandlimited. This waveform is suitable for use as an internal control signal, but will produce aliasing distortion if used directly for audio output. If this configuration is desired, it is recommended that you apply a low-pass filter to the block's output before routing the signal to hardware outputs.

resources/tools-software/sigmastudio/toolbox/sources/squarewavewithphaseandgain.txt · Last modified: 20 Jan 2016 10:26 by Venkatesan Krishnamoorthy