How to measure the transfer function in Simulink?

AI Thread Summary
To measure the transfer function in Simulink, utilize the "Linear Analysis Tool" from the Control System Toolbox, which allows for detailed analysis of system characteristics, including Bode plots. The "Bode Plot" block can also be employed to directly visualize the transfer function by processing input and output signals. Issues with the "PS Divide" block may arise, as it can lead to inaccuracies when dividing signals. Additionally, ensure that the simulation settings, such as the solver, are appropriate for your model to achieve accurate results. Properly configuring these tools will yield a more reliable representation of the system's frequency response.
jean28
Messages
83
Reaction score
0
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/ee410/jean28x/bode1.jpg

This is the graph I got:

http://i1226.photobucket.com/albums/ee410/jean28x/bode2.jpg

Thank you all very much.
 
Engineering news on Phys.org
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...
 
SirAskalot said:
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/ee410/jean28x/finalproyect.jpg

Graph I get (instead of Sine Wave):

http://i1226.photobucket.com/albums/ee410/jean28x/simulinkpic3.jpg
 
Try changing solver. Now you are using ODE45, but other might be better for this system of equations.

http://www.mathworks.se/help/simulink/ug/choosing-a-solver.html
 


To measure the transfer function in Simulink, you can use the "Linear Analysis Tool" which is part of the Control System Toolbox. This tool allows you to analyze the linear characteristics of your system, including the transfer function. To use this tool, you need to first create a Simulink model of your system and then open the Linear Analysis Tool from the "Apps" tab in the Simulink window. From there, you can specify the inputs and outputs of your system and run the analysis. The tool will then display the transfer function, Bode plot, and other relevant information for your system. You can also use the "Bode Plot" block from the Simulink library to directly plot the transfer function of your system. This block takes in the input and output signals and automatically calculates the transfer function and plots the Bode plot. I would recommend using these tools instead of the "PS Divide" block, as they are specifically designed for this purpose and will provide more accurate results.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top