Signal Processing

Signal processing elements can be drawn by importing the schemdraw.dsp.dsp module:

from schemdraw import dsp

Because each element may have multiple connections in and out, these elements are not 2-terminal elements that extend “leads”, so they must be manually connected with Line or Arrow elements. The square elements define anchors ‘N’, ‘S’, ‘E’, and ‘W’ for the four directions. Circle-based elements also includ ‘NE’, ‘NW’, ‘SE’, and ‘SW’ anchors. Directional elements, such as Amp, Adc, and Dac define anchors input and out.

../_images/dsp_1_0.svg

Labels are placed in the center of the element. The generic Square and Circle elements can be used with a label to define other operations. For example, an integrator may be created using:

dsp.Square().label(r'$\int$')
../_images/dsp_2_0.svg