How can i add an equation to a block (impedance measurement)?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Joel Van Sickel
il 3 Gen 2024
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 Commenti
Vedere anche
Categorie
Scopri di più su S-Parameters and Linear Components in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!