Back to Forums
3 posts / 0 new
Last post
#1 Mar 13, 2020
Heirthe
Offline
Last seen: 2 years 10 months ago
Joined: 2020-03-13 13:10

Signal waveform integration over time

Is there any way to integrate signal (voltage/current) over time, from t=t1 to t=t2. I.E. if have a current signal, by integrating overtime
one gets charge??

I have tryed to use evaluate measurement, then under 'Trace Expression' , entered s(I(L1)), but got 'invalid expression'.

 

LTspice has it: https://electronics.stackexchange.com/questions/254602/how-to-integrate-...

Mon, 2020-03-16 10:32
retiredEE
Offline
Last seen: 1 year 4 months ago
Joined: 2018-03-21 12:19

Use Add trace, select s() from the Analog Operators, and pick your inductor current from the Simulation Output Variables list.  This will give you the charge from t=0 to the end of your simulation time.  Adjust your results by subtracting the charge at t1.  The value at t2 is the net charge from t1 to t2.

 

Wed, 2021-07-07 04:24 (Reply to #2)
Alex_Ing
Offline
Last seen: 2 years 8 months ago
Joined: 2021-07-07 04:15

How can I obtain a value at the time step t1 in Trace-Menu and subtract from the result of integration?

e.g. I calculate the energy in resistor over the simulation time with the expression: S( V(R1)*I(R1))

Download PSpice and try it for free! Download Free Trial
Cadence