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 parser for printed scalars output #435

Merged
merged 5 commits into from
Jan 14, 2024
Merged

Conversation

ivandi69
Copy link
Contributor

@ivandi69 ivandi69 commented Jan 7, 2024

In custom simulations one can print measurement or calculation results.
For example

ac lin 100 1meg 10meg
write custom.plot v(out)
meas ac fcenter max_at v(out)
let vmax=vecmax(v(out))
print fcenter vmax > custom.print

The custom.print file looks like this:

fcenter = 1.234e+01
vmax = 5.678e+00,4.321e-01

The parser adds printed results to the dataset as scalars.

ra3xdh and others added 5 commits January 5, 2024 09:39
Add resistor's parameters tc1 and tc2 to ngspice
In custom simulation one can print measurement or calculation results.
For example 'print a b c d > custom.prn'. The file looks like:
a = a_value
b = b_real,b_imag
etc...
The parser adds theses to the dataset as scalars.
@ra3xdh ra3xdh added this to the 24.1.0 milestone Jan 7, 2024
@ra3xdh ra3xdh merged commit f1a1445 into ra3xdh:current Jan 14, 2024
2 checks passed
@ra3xdh
Copy link
Owner

ra3xdh commented Jan 14, 2024

Thanks for the contribution! This addition will help to implement the .MEASURE support and the saveOp option #124

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.

3 participants