Subcircuit diode

Hello
I’m trying to create a simple subcircuit diode to be able to pass parameters to it, like Vfwd, Ron, etc. The model is embedded in the component.
It isn’t working properly and I can’t see the error.
Any idea on what is wrong?
Thanks!


test-idiode.qsch (2.6 KB)

Missing a non-zero Ron for the behavioral diode to activate?

Thank you very much!
I need to pay more attention reading the documentation. Sorry
Now I think it is working well. I changed the name to xdiode and made the parameters not visible for clarity. They can still be edited using the component properties panel.
I am leaving the component here just in case someone is interested.
Thanks!


test-xdiode.qsch (3.0 KB)
xdiode.qsym (823 Bytes)

1 Like