Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library with User selectable parameters #1101

Closed
tomhajjar opened this issue Nov 28, 2024 · 2 comments
Closed

Library with User selectable parameters #1101

tomhajjar opened this issue Nov 28, 2024 · 2 comments

Comments

@tomhajjar
Copy link

tomhajjar commented Nov 28, 2024

I'm trying to make a Library but I'm having issues adding User selectable parameters to a "Spice netlist" device. I searched but can't find any example of doing this. Adding User selectable parameters to a "Spice library" device works BUT they can't be made into a Qucs Library.

First device is a PBRS 7 generator. Long term goal is to add "Systems Analysis" capabilities to Qucs-S. This will also add value to Ideal.lib and Xanalogue.lib which I doubt many use.

2024-11-27_204129
2024-11-27_204322
2024-11-27_213542
2024-11-27_213522

PBRS7_subcircuit.zip

@ra3xdh
Copy link
Owner

ra3xdh commented Nov 28, 2024

I am aware about this limitation. SpiceFile device doesn't support parameters. The .PARAM will have no effect in this case. Wait until the SpiceLibComp extensions #944 will be implemented. There is no workaround.

@ra3xdh ra3xdh closed this as completed Nov 28, 2024
@tomhajjar
Copy link
Author

tomhajjar commented Nov 28, 2024

AFAIK under the "Qucs way" of making sub-circuits, for sub-circuits "calling" external Spice models, User definable parameters MUST be on BOTH the schematic sub-circuit and symbol sections. On the schematic, param=param and on symbol param=value.

For sub-circuits not "calling" external Spice models, only the Symbol section must have the parameter info.

Will this be the "new" method as well?

2024-11-28_104834
2024-11-28_104855
2024-11-28_104914

Parameter_Passing_prj.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants