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

S-Parameter ngspice plot #386

Closed
dwarning opened this issue Nov 26, 2023 · 3 comments
Closed

S-Parameter ngspice plot #386

dwarning opened this issue Nov 26, 2023 · 3 comments

Comments

@dwarning
Copy link

I try to make a s-parameter simulation with one point at different operating points:
Bildschirmfoto vom 2023-11-26 21-31-06

The problem is that can't plot the results vs Vbe. The result file bjt_spar.dat.ngspice has reasonable values. But plot is nothing. Plot over frequency in sweep works ell.

Can some help me please.

bjt_spar.sch.txt

@tomhajjar
Copy link

tomhajjar commented Nov 27, 2023

This may be the issue...

Qucs-S has issues plotting single frequencies, CW. In #156 Vadim used a 3D plot for a temporary fix.

Qucs/ngspice use different methods to calculate simulation frequencies from Start, Stop, Step and Number. One has to play around with the Qucs simulation settings to get the exact frequencies in ngspice. Vadim can explain better than I.

2023-11-26_211059

S-parameters_ngspice_prj.zip

@tomhajjar
Copy link

tomhajjar commented Nov 27, 2023

I found an old QucsStudio schematic from an ST presentation that looks like your schematic. Forgot where I found it.

2023-11-26_215103

Verilog Compiled_Library_prj.zip

@ra3xdh
Copy link
Owner

ra3xdh commented Nov 27, 2023

@dwarning It is a known issue and explained in #156 and #161 The plotting engine cannot assemble a set of 1x1 plots in a smooth curve. Two solutions are possible:

  • Set line style to Circles/Stars in the diagram properties. You will see the simulation points. Also you may use the table.
  • Use the scripting simulation to assemble a vector from set of 1x1 plots. I have uploaded a CV-curve simulation example that uses this approach. See Strange behavior trying to simulate Varactor #156 for more info.

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

No branches or pull requests

3 participants