[Beginner] Simulink - Active Low Pass Filter of 1st Order

Hello everyone, I am not really familiar with Simulink and I have some difficulties to build my model. I have to make an Active Low Pass Filter of 1st Order like this :
The problem is that I have many errors when I try to run the simulation with my actual model
I don't know with block should I use to make a good model and measure the gain (dB) depending the frequency (Hz).
Thank you for your help.

Answers (2)

Hello,
what kind of errors are appearing? What Version of Matlab do you use? Is it possible to upload the Model to MatlabAnswers?
Regards, John
Hello, I use Matlab 2014, I upload the model and i have the following error :
--------------------------------------------------------------------------------
Initial conditions solve failed to converge. ...Problems possible for transient initialization, as well as stepsize control for transient solve, due to equations of one or more components: 'HW2_2_1/AC Voltage Source' Equation locations are: 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/source.ssc' (line 23) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+sources/ac_voltage.ssc' (line 29)
'HW2_2_1/Capacitor' Equation locations are: 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/capacitor.ssc' (line 45) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/branch.ssc' (line 23) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/capacitor.ssc' (line 44)
'HW2_2_1/Op-Amp' Equation locations are: 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/op_amp.ssc' (line 32) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/op_amp.ssc' (line 33) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/op_amp.ssc' (line 34)
'HW2_2_1/Resistor' Equation locations are: 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/branch.ssc' (line 23) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/resistor.ssc' (line 26)
'HW2_2_1/Resistor1' Equation locations are: 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/branch.ssc' (line 23) 'D:/Program Files/MATLAB/R2014a/toolbox/physmod/simscape/library/m/+foundation/+electrical/+elements/resistor.ssc' (line 26) Component: Simulink | Category: Block error

1 Comment

It´s me again. Thanks for the errormessage. Now it would be great if you upload the model.

Sign in to comment.

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 23 Sep 2015

Commented:

on 23 Sep 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!