MATLAB Control Systems RLC Circuit Queries

Click For Summary
SUMMARY

The discussion focuses on deriving the transfer function (TF) for an RLC circuit using MATLAB. The provided transfer function is G(s) = s/(RC) / (s^2 + s/(RC) + 1/√(LC)). Participants discuss the MATLAB code used to generate various transfer functions, including OpenLoopTransferFunction and ClosedLoopTransferFunction. The key takeaway is the importance of starting with the differential equations of the circuit to derive the TF accurately, followed by applying the Laplace transform to obtain the output/input relationship.

PREREQUISITES
  • Understanding of RLC circuit theory
  • Familiarity with MATLAB for control systems analysis
  • Knowledge of Laplace transforms
  • Experience in writing differential equations for electrical circuits
NEXT STEPS
  • Learn how to derive transfer functions from differential equations in MATLAB
  • Study the MATLAB Control System Toolbox for advanced analysis techniques
  • Explore the concept of feedback in control systems and its impact on stability
  • Investigate the significance of characteristic equations in system behavior analysis
USEFUL FOR

Electrical engineering students, control systems engineers, and anyone involved in analyzing RLC circuits using MATLAB.

DarrenMK
Messages
2
Reaction score
0
Hi there, we recently completed a laboratory session on MATLAB relating to an RLC Circuit and arrive at a code and relevant inputs and got our graphs as shown below.

I was just wondering if anyone know if these are correct and make any sense? Or any other comments appreciated.

We also have to prepare a lab report on our findings and derive our TF from first principles

G(s) = s/(RC) / s^2 + s/(RC) + 1/√(LC) is what we have. How do I go about derivation?

The code and other information is shown below. Transfer function:
0.3333
-----------------------
s^2 + 0.3333 s + 0.4082

Enter a value for Kp 1
Enter a value for Ti 2
Enter a value for Td 3
Enter a value for Hs1

Hs =

1


Transfer function:
2 s^2 + 0.6667 s + 0.3333
-----------------------------
2 s^3 + 0.6667 s^2 + 0.8165 s

ForwardPathTransferFunction

Transfer function:
2 s^2 + 0.6667 s + 0.3333
-----------------------------
2 s^3 + 0.6667 s^2 + 0.8165 s

FeedbackPathTransferFunction

FeedbackPathTransferFunction =

1

OpenLoopTransferFunction

Transfer function:
2 s^2 + 0.6667 s + 0.3333
-----------------------------
2 s^3 + 0.6667 s^2 + 0.8165 s

ClosedLoopTransferFunction

Transfer function:
4 s^5 + 2.667 s^4 + 2.744 s^3 + 0.7666 s^2 + 0.2722 s
----------------------------------------------------------------
4 s^6 + 6.667 s^5 + 6.377 s^4 + 3.833 s^3 + 1.433 s^2 + 0.2722 s

ErrorRatio

Transfer function:
2 s^3 + 0.6667 s^2 + 0.8165 s
------------------------------------
2 s^3 + 2.667 s^2 + 1.483 s + 0.3333

PrimaryFeedbackRatio

Transfer function:
4 s^5 + 2.667 s^4 + 2.744 s^3 + 0.7666 s^2 + 0.2722 s
----------------------------------------------------------------
4 s^6 + 6.667 s^5 + 6.377 s^4 + 3.833 s^3 + 1.433 s^2 + 0.2722 s

CharacteristicEquation

Transfer function:
2 s^3 + 2.667 s^2 + 1.483 s + 0.3333
------------------------------------
2 s^3 + 0.6667 s^2 + 0.8165 s


The graphs which were gotten from the above inputs were as follows;

http://img560.imageshack.us/img560/9556/stuffo.jpg

Are they what you would expect from such a system? What exactly do they show?

Any other help or comments appreciated
 
Last edited by a moderator:
Physics news on Phys.org
DarrenMK said:
We also have to prepare a lab report on our findings and derive our TF from first principles

G(s) = s/(RC) / s^2 + s/(RC) + 1/√(LC) is what we have. How do I go about derivation?
Check any materials you were provided with. It may have a schematic or specify the locations of input and output quantities. I would expect those to be input and output voltages.

Start by writing down the differential equation(s) for the circuit in terms of input and output quantities, in the time domain. Once the Laplace transform is applied to these differential equation(s), you may solve for the transfer function. The transfer function is the transformed output divided by the transformed input.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
2K
Replies
1
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K