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

Allow passing parameters for SPICE subcircuits #1197

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Allow passing parameters for SPICE subcircuits #1197

merged 2 commits into from
Jan 8, 2025

Conversation

ra3xdh
Copy link
Owner

@ra3xdh ra3xdh commented Jan 8, 2025

This PR allows parameter passing to SPICE file (not SPICE Library device) component. Here is a screenshot of a new dialog and example illustrating how to use a new feature:

image

image

Triac.zip

@ra3xdh ra3xdh mentioned this pull request Jan 8, 2025
@ra3xdh ra3xdh linked an issue Jan 8, 2025 that may be closed by this pull request
@ra3xdh
Copy link
Owner Author

ra3xdh commented Jan 8, 2025

Also uploaded generic triac model requested by #924

@ra3xdh ra3xdh merged commit 058d69c into current Jan 8, 2025
7 checks passed
@tomhajjar
Copy link

tomhajjar commented Jan 8, 2025

Something wrong. Do you have compatibility mode enabled?

2025-01-08_073521

Parameter_Passing_test_prj.zip

@ra3xdh
Copy link
Owner Author

ra3xdh commented Jan 8, 2025

Yes, this model works only with LTSpice mode. I have it enabled in Simulation->Simulator settings

@tomhajjar
Copy link

tomhajjar commented Jan 8, 2025

set ngbehavior=psa worked. set ngbehavior=lt didn't.

Also I accidently opened the subcircuit with the last nightly and it deleted the parameter passing. A warning for Users may be required...

2025-01-08_074551

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

Successfully merging this pull request may close these issues.

How to make a Library from subcircuits with parameter passing like Xanalogue.lib ST Triac library
2 participants