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-...
Copyright © 2020 Cadence Design Systems, Inc. All rights reserved.
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.
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))