MATLAB Control Systems RLC Circuit Queries

In summary, the conversation discusses a recent laboratory session on MATLAB relating to an RLC circuit. The participants were wondering if their code and graphs were correct and if anyone had any comments or suggestions. They also mention having to prepare a lab report and derive the transfer function from first principles. The conversation ends with a question about how to go about the derivation process. The suggested steps for deriving the transfer function include checking provided materials for schematic or input/output quantities, writing down the differential equation(s) for the circuit, and applying the Laplace transform to solve for the transfer function.
  • #1
DarrenMK
2
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
  • #2
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.
 

Related to MATLAB Control Systems RLC Circuit Queries

1. What is a MATLAB control system?

A MATLAB control system is a tool used for analyzing and designing control systems. It allows for the modeling, simulation, and analysis of dynamic systems, such as electrical circuits, mechanical systems, and biological systems.

2. What is an RLC circuit?

An RLC circuit is an electrical circuit consisting of a resistor (R), an inductor (L) and a capacitor (C) connected in series or parallel. It is commonly used in electronic devices and is used to filter and amplify electrical signals.

3. How can I model an RLC circuit in MATLAB?

To model an RLC circuit in MATLAB, you can use the Simulink library which includes various blocks for modeling electrical circuits. You can also use the circuit analysis functions in the Control System Toolbox to analyze the behavior of the circuit.

4. Can I simulate the response of an RLC circuit in MATLAB?

Yes, you can simulate the response of an RLC circuit in MATLAB using the Simulink library. You can specify the values of the components and the input signal, and then run the simulation to observe the response of the circuit.

5. How can I design a controller for an RLC circuit in MATLAB?

To design a controller for an RLC circuit in MATLAB, you can use the control design tools in the Control System Toolbox. These tools allow you to design different types of controllers, such as PID controllers, and analyze their performance on the RLC circuit.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
866
  • Engineering and Comp Sci Homework Help
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
3K
Back
Top