% Magnitude and phase of frequency response. % 500 points between decades 10^1 and 10^4. % Generate logarithmically spaced vector of frequency values. % Obtain the matrices (A,B,C,D) of the state-space model of the circuit. Since the behaviour of an RLC circuit varies depending on the frequency, I used the bode function to obtain the magnitude and phase of the admittance for the range of frequency values spanning from 10 Hz to 10 kHz. Then I named the model as my_rlc and saved it in my working directory.įinally, I created the following script (inspired by this example) which makes use of the power_analyze function to obtain the state-space model of the circuit ( my_rlc) from which the admittance can be obtained. My speculation would be that the powergui block is being treated as a physical signal, and so is not available as a signal in the main Simulink. Since you did not provide any particular values for the circuit components, I am using the defaults. This is an approach without using the Impedance Measurement block:įirst I created a simulink model of an RLC circuit using the following blocks from the Simscape Power Systems Specialized Technology Fundamental Blocks Library ( powerlib):Īside from the AC Voltage Source block and the Series RLC Branch block, the Current Measurement block and the Powergui block are necessary for the model to work. Help you and you will get better answers. Working things out by your own means (use the documentation), and if you don't succeed, then post a Before posting on Stack Overflow you should try First of all I would like to reaffirm what Ander Biguri has suggested
0 Comments
Leave a Reply. |