New Reply

How to measure the transfer function in Simulink?

 
Share Thread Thread Tools
Nov24-12, 01:25 PM   #1
 

How to measure the transfer function in Simulink?


Let's say I simulate a simple filter in simulink and I want to see the transfer function graph (bode plot) of it. What do I do to get Vout/ Vin? I tried using the "PS Divide" Block and divide the output voltage and the input voltage, but that didn't work. Could anyone help me out here?

This is what I tried:

http://i1226.photobucket.com/albums/...n28x/bode1.jpg

This is the graph I got:

http://i1226.photobucket.com/albums/...n28x/bode2.jpg

Thank you all very much.
PhysOrg.com
PhysOrg
engineering news on PhysOrg.com

>> NASA: Austin, calling Austin. 3-D pizzas to go
>> Research suggests modular design competence can benefit new product development
>> Army ground combat systems adopts tool for choosing future warfighting vehicles
Nov24-12, 05:18 PM   #2
 
The scale on your scope is way of. Hit the button next to the printer and uncheck the box saying something like "save only last 1000 data points". Simulate again and hit the button with the binoculars. Does the result seem to be correct now? Check with your analytical answer!

If no results appear, check the Matlab command window for warnings and errors. A divide block can cause problems for certain inputs.

Also this setup does not create the bode plot of the system. A bode plot is the frequency response, here you got only one frequency.

Further hints: A system can create a phase shift between the input and output. Comparing the input and output at the same instant of time gives no true information about the attenuation. How is this done in your model...
Nov24-12, 05:44 PM   #3
 
Quote by SirAskalot View Post
The scale on your scope is way of. Hit the button next to the printer and uncheck the box saying something like "save only last 1000 data points". Simulate again and hit the button with the binoculars. Does the result seem to be correct now? Check with your analytical answer!

If no results appear, check the Matlab command window for warnings and errors. A divide block can cause problems for certain inputs.

Also this setup does not create the bode plot of the system. A bode plot is the frequency response, here you got only one frequency.

Further hints: A system can create a phase shift between the input and output. Comparing the input and output at the same instant of time gives no true information about the attenuation. How is this done in your model...
Ok thanks a lot! One more quick question. I am trying to simulate this circuit (quite complicated) and I can't seem to get an output signal that seems sinusoidal. I think it has something to do with the Refine factor, because when I simulate simpler circuits I DO get a good sine wave. Do you have any idea why this would act this way?

Circuit:

http://i1226.photobucket.com/albums/...nalproyect.jpg

Graph I get (instead of Sine Wave):

http://i1226.photobucket.com/albums/...mulinkpic3.jpg
Nov25-12, 04:30 AM   #4
 

How to measure the transfer function in Simulink?


Try changing solver. Now you are using ODE45, but other might be better for this system of equations.

http://www.mathworks.se/help/simulin...-a-solver.html
New Reply
Thread Tools


Similar Threads for: How to measure the transfer function in Simulink?
Thread Forum Replies
Simulink Ramp Function. Math & Science Software 0
S-function simulink for serial communication Math & Science Software 0
Transfer Matricies in Simulink Math & Science Software 0
errors with s-function level 1 in simulink Math & Science Software 0
S-function! in Simulink/Matlab Differential Equations 0