Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

using spice simulation time step interval as a variable in an output expression

I want to calculate a simulation output using the time step between simulation points as a variable in the equation.  (i.e. total energy delivered to a load).

 

Is there a variable available that is this current time step value to use for this?

 

My alternative is to set the max time step very small so that it never becomes smaller during the simulation and then use that value in my expression, but some simulations may run a long time doing that.   Or if the time step does become smaller that that for any portion of the simulation interval, then the calculation would be off.

0 Kudos
Message 1 of 3
(755 Views)

Hellow!Here is the dependence of the output voltage on the time interval (Tmax=2-15 s)

fofango570_0-1715187675645.png

 

0 Kudos
Message 2 of 3
(709 Views)

I was trying to find the time step so I could incorporate it in to the total energy integration,  but by trial and error I found the integral function seems to automatically do that for you.  integral(pwr(Rn)) shows total cumulative energy delivered to a resistor as time moves forward in the simulation.

 

I found no detailing info on how the integral function works.

0 Kudos
Message 3 of 3
(674 Views)