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

Spice netlist versus .INCLUDE Issues #951

Closed
1 task done
tomhajjar opened this issue Sep 18, 2024 · 4 comments · Fixed by #1018
Closed
1 task done

Spice netlist versus .INCLUDE Issues #951

tomhajjar opened this issue Sep 18, 2024 · 4 comments · Fixed by #1018
Assignees
Labels
Milestone

Comments

@tomhajjar
Copy link

tomhajjar commented Sep 18, 2024

Discussion #950 has found a few more issues. Attached are two schematics showing the issues.

  1. The SB5100.lib diode Spice model doesn't work. See SB5100_recovery.sch. The model does work if it is made into a sub-circuit using "Spice netlist". See SB5100_sub_recovery.sch.

  2. When making the subcircuit SB5100_sub.sch, the 1ST time you make it the filename has the entire PATH. When you place this sub in the schematic, the simulation fails and you find the "Spice netlist" is missing. You have to re-open SB5100_sub.sch, place another "Spice netlist" and Browse again for SB5100.lib. I made SB5100_sub_1st.sch to show the problem.

TODO list:

  • Convert path to relative only if schematic belongs to project or saved.

2024-09-17_235825
2024-09-17_235803
2024-09-18_001529
2024-09-18_003044

Rectifiers_prj.zip
LTspice SB5100.zip

@ra3xdh
Copy link
Owner

ra3xdh commented Sep 18, 2024

The SB5100 diode model works on my machine. See #950 (comment)

the 1ST time you make it the filename has the entire PATH. When you place this sub in the schematic, the simulation fails and you find the "Spice netlist" is missing.

The application applies relative path conversion after #640 The path is set relatively to project directory or containing schematic directory. This may be fixed as the following:

  • If the schematic doesn't belong to the project set absolute path
  • If schematic belongs to project set relative path

@tomhajjar
Copy link
Author

Still having the issue in item #2 above. I have to redo the sub-circuit twice to get rid of the extended path. I didn't document it this time.

@ra3xdh ra3xdh reopened this Sep 25, 2024
@ra3xdh
Copy link
Owner

ra3xdh commented Sep 25, 2024

I will implement the path setting policy proposed here: #951 (comment) in the next release.

@ra3xdh
Copy link
Owner

ra3xdh commented Oct 24, 2024

Fixed by #1018

@ra3xdh ra3xdh self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants