How can i add an equation to a block (impedance measurement)?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a simple RLC circuit. I added an impedance measument block to measure its impedance. But I need to add length, area etc. parameters to my system. I have an equation for this. How can I integrate this equation? So, I need to add this equation and with the R value resulting from this equation, the circuit should work and the impedance measument should measure the impedance.
I tried turning the circuit into a subsystem and adding user-defined functions, but I don't know which one I should use. many won't let me add an equation like this.
0 件のコメント
回答 (1 件)
Joel Van Sickel
2024 年 1 月 3 日
You have 2 options. If it is a static value of impedance, you can pre calculate your circuit parameters such as R = R_pu*Length and put R into the resistance parameter. Or, if you need impedance to change dynamically, you can use the variable resistor and implement that equation specifically in simulink and pass it to the resistor. The same is possible for inductors and capacitors to create any impedance value that you want.
It might help to take the basic free training here: https://matlabacademy.mathworks.com/details/circuit-simulation-onramp/circuits
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Circuits and Systems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!