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

Add GUI for Qucsconv #647

Closed
3 tasks done
ra3xdh opened this issue Mar 20, 2024 · 20 comments · Fixed by #654
Closed
3 tasks done

Add GUI for Qucsconv #647

ra3xdh opened this issue Mar 20, 2024 · 20 comments · Fixed by #654
Assignees
Labels
Milestone

Comments

@ra3xdh
Copy link
Owner

ra3xdh commented Mar 20, 2024

The new version of Qucs-S will include QucsatorRF #370. The Qucsconv utility is a part of QucsatorRF. This tool operates only in CLI mode now. It would be good to add a simple GUI to Qucsconv in the Tools menu.

Update

No new GUI for qucsconv is needed. It's need to improve the existing one.

TODO list:

  • Move the Import/Export data dialog to Tools menu.
  • Allow to run it outside projects
  • Allow only valid in/out format pairs
@tomhajjar
Copy link

Sent email...

@tomhajjar
Copy link

tomhajjar commented Mar 21, 2024

The present user interface for Qucsconv is not well thought out. A new user wouldn't understand what file entries or drop down menu choices to make. At a minimum the file extensions should have been listed. Also what the drop down menu choices actually mean would help like what file format goes in and what format comes out. I don't even know what some of them will do.

Will the new "Qucsconv-RF" still convert Spice files to Qucs schematics? Qucsconv only works for simple Spice files.

2024-03-21_094430

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

The present user interface for Qucsconv is not well thought out.

I have never seen this dialog window in Qucs before. How to call it?

Will the new "Qucsconv-RF" still convert Spice files to Qucs schematics?

Qucsconv from Qucsator-RF follows the state for Qucsator-0.0.20: https://github.com/qucs/qucsator I may consider adding some extensions in the future, but I cannot promise when exactly and what.

@tomhajjar
Copy link

tomhajjar commented Mar 21, 2024

Project->Import/Export Data.

It needs a complete makeover to improve clarity and clear out the unneeded utility choices.

Qucs-0.0.20 has the "s-parameter" converter. It converts qucs.dat files from an s-parameter analysis to an *.s2p file. Not sure how it handles more than 2 ports.

2024-03-21_100646

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

It needs a complete makeover to improve clarity and clear out the unneeded utility choices

Yes, the existing converter GUI needs improvement. It should be moved to Tools menu and allowed to be launched outside projects. Also it should allow only valid input/output pairs.

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

I have attached TODO list for this issue.

@tomhajjar
Copy link

The requirement for opening a Project first isn't too bad since it will save a lot of mouse clicks choosing the input file and indicate the directory where the output file is saved. The input file(s) will generally be in a Project file.

Unfortunately in Qucs when you click the "Browse" button it It points to the location where Qucs is installed instead of the chosen Project directory. Qucsconv should present the chosen Project directory first.

2024-03-21_103854

@tomhajjar
Copy link

tomhajjar commented Mar 21, 2024

Qucsconv doesn't automatically choose the correct Output file suffix (s2p) even though Touchstone was chosen.

Qucsconv defaults to the filename and suffix of the input file so you must change the suffix to s2p.

Unsure why the "Output Data:" field is opened when choosing Touchstone. There is no details.

2024-03-21_113451
2024-03-21_112810

@ra3xdh ra3xdh added gui and removed new feature labels Mar 21, 2024
@tomhajjar
Copy link

tomhajjar commented Mar 21, 2024

Using Qucsconv_rf:

Converting NE85633_s_parameters.dat file to Touchstone S-parameter file is working

Converting SIMPLE 2SC3356.cir Spice file to Qucs Library netlist is working AFAIK. What this file is useful for is unknown...

Converting SIMPLE 2SC3356.cir Spice file to 2SC3356.sch is NOT working. This simple Spice file should easily convert into a sch file.

Attached is an old Qucs project. I created NE85633 HF Spice Model.sch using the qucsconv in QucsStudio.

NE85633=2SC3356

2SC3356 Amplifiers_qucs_prj.zip

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

Converting SIMPLE 2SC3356.cir file to 2SC3356.sch is NOT working

CIR to SCH conversion was never implemented in Qucsconv. SPICE netlist could be converted only Qucsator netlist, but not to XML schematic.

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

The valid pairs for conversion are the following. The qucs is meant qucs netlist, but not schematic.

FORMAT: The input - output format pair should be one of the following:
  inputformat - outputformat
  spice       - qucs
  spice       - qucslib
  vcd         - qucsdata
  qucsdata    - csv
  qucsdata    - touchstone
  citi        - qucsdata
  touchstone  - qucsdata
  csv         - qucsdata
  zvr         - qucsdata
  mdl         - qucsdata
  qucsdata    - matlab

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

I created NE85633 HF Spice Model.sch using the qucsconv in QucsStudio.

I cannot backport features from QucsStudio to Qucs-S without permission of its developer. Even open parts of QucsStudio may be under copyright.

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

Converting SIMPLE 2SC3356.cir Spice file to Qucs Library netlist is working AFAIK. What this file is useful for is unknown...

This works only for files containing modelcards. The example of such file is here: https://ltwiki.org/index.php?title=Standard.bjt Running qucsconv on it will produce a valid library containing transistor models.

@tomhajjar
Copy link

I fully understand however I've converted multiple Spice files to *.sch using qucsconv in Qucs. The biggest problem has been missing sources so I end up using QucsStudio. I would have to dig through old projects. I saved multiple failed conversions.

These schematics are after I clean them up.

2024-03-21_145849
2024-03-21_145828

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

fully understand however I've converted multiple Spice files to *.sch using qucsconv in Qucs.

Am I understanding correct? Could you post CLI syntax to convert SPICE to SCH XML? Qucsconv from Qucs never supported this feature. There is no way to convert netlist to schematic. I suspect this may be either something undocumented or you can be using Qucsconv from QucsStudio by mistake.

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 21, 2024

I have inspected the sources, the qucsconv version from Qucs-0.0.20 release cannot produce SCH files, but the version from QucsStudio can.

@tomhajjar
Copy link

tomhajjar commented Mar 21, 2024

Using QucsStudio, this is the converted file for the IRFP250 MOSFET looks like after it has been partially cleaned up. Looking at my old notes, QucsStudio doesn't do B sources as well as numerous other Spice specific components.

2024-03-21_155101

@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 22, 2024

As I wrote before, I cannot backport the features from open parts of QucsStudio without permission of its developer. I will try to contact Michael Margraf and ask about the license status of the open parts of QucsStudio.

@ra3xdh ra3xdh self-assigned this Mar 22, 2024
@ra3xdh ra3xdh added this to the 24.2.0 milestone Mar 22, 2024
@ra3xdh ra3xdh linked a pull request Mar 22, 2024 that will close this issue
@ra3xdh
Copy link
Owner Author

ra3xdh commented Mar 22, 2024

The import dialog redesign was made by #654. Here is the new dialog look:
image

@tomhajjar
Copy link

tomhajjar commented Mar 22, 2024

As I wrote before, I cannot backport the features from open parts of QucsStudio without permission of its developer. I will try to contact Michael Margraf and ask about the license status of the open parts of QucsStudio.

There really isn't a need to convert Spice to Sch. QucsStudio can't convert the majority of Spice models successfully anyway. It was useful to use it for Qucs but not for Qucs-S.

Attached is an old Qucs project trying to find OpAmps that worked in Qucs/QucsStudio. I needed OpAmp Spice models that accurately modeled VCC/VEE current for a power amplifier simulation. In multiple cases the OpAmps worked in Qucs and not in QucsStudio.

2024-03-22_101151

Opamp_Spice_mods_prj.zip

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