Open this model

Frequency Response of Passive Circuit

This demonstration shows how to generate the frequency response of a non-switched network. In this example, a Bode plot is produced for a first-order RC network. The PLECS AC Sweep block is used for the analysis. It is placed in series with the PLECS Circuit block in a loop such that the network is perturbed by the output of the AC Sweep block. The frequency response for other passive network types and using different parameter values can easily be generated in this way.

To run an AC Sweep Analysis double-click on the AC Sweep Analysis block to open the dialog and click on the Start analysis button. The progress of the analysis is displayed in the MATLAB Command Window. When the analysis has finished a new Bode plot will be displayed showing the corresponding transfer function.

Note that the `System period length' parameter in the AC Sweep settings window is set to 0 in this case, as the system is non-periodic.