help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] What is a good way to get joules integrated in a .dat


From: Felix Salfelder
Subject: Re: [Help-gnucap] What is a good way to get joules integrated in a .dat output?
Date: Tue, 23 Aug 2016 21:21:19 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi John.

On Tue, Aug 23, 2016 at 01:31:21PM -0500, John Griessen wrote:
> How do you print x if it is not a function of time?  If it is just a single 
> number,

my suggestion,
.measure x=integrate(probe=...)
does only print a single number..?

also, you can put that number to a file using
.measure x=integrate(probe=...) > file
or append with
.measure x=integrate(probe=...) >> file
in case this is where you want to pick it up later on.

> it would need a time to start and stop.

you can pass boundaries to integrate, such as
.measure x=integrate(probe=..., begin=1, end=2)

(note that you can only use "measure" on waves that have been stored
during the previous simulation. there is some of work-in-progress
related to this...)

> I was hoping for a way to get a waveform with
> the same step sizes as the usual .print tran v(vin) i(C2) v(v2) v(vout) i(R3) 
> i(R2) pd(R3) pd(R2)
> gives.

i'm not sure if i understand. would you like to get an output close to

#time  probe   integral(probe)
0       0            0
1       0            0
2       1            0
3       1            1
4       1            2
5       1            3

?

cheers, hth
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]