This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TINA/Spice: HOW TO: Getting a computed expression

Other Parts Discussed in Thread: TINA-TI

Tool/software: TINA-TI or Spice Models

How to get a computed expression with TINA-TI?

With more details, here is what I used with LTspice (in its most simplified format) : (netlist)

C1 Fin 0 22µ

R1 Debut Fin 220

V1 Debut 0 5

.tran 0.02 startup

.meas tran E_fourni integ V(debut)*I(R1)

.meas tran E_dissipe integ (V(fin)-V(debut))*I(R1)

.backanno

.end

The two meas directives are what I would like to get, or, if you prefer in clear, since it may be available in another way with TINA, how to compute the Energy defined as the area under the power curve? In fact, looking, in this case, for efficiency, I look for   E_dissipe  divided by E_fourni ( an extra bonus if I can vary the 0.02s to get a whole curve, efficiency versus charging time, not just a point at a time, here, when the charging time is 0.02 ).

Hoping that my question is not too obscur. 

Thanks for you attention, in any case.

  • Hi Michel,

    You can write equations within VCVS block in TINA-TI and plot the output.
    Or, you can use post-processor in TINA-TI to observe the such plot.

    Please refer to the below E2E post for further assistance:

    e2e.ti.com/.../756886

    Thanks,
    Vivek Agarwal
  • Thanks for the tip. That was exactly what I was looking for, right on target.

    Couldn't find a way to integrate though  (to get the area under a curve), directly.
    Sure, I can export the data as text and perform a numerical manipulation in Excel, but, staying in Tina-TI,  I also found that I could use [Process]  (after having selected the desired curve), and select [Averages...] so that the total area is now the multiplication of the results : average    *  ( interval of time ).

    I just discovered that new function/curve editor of the [Edit] | [Post-processor...]. Is there a link with more details about it than what is available from the help file? That could possibly avoid some trips back and forth to Excel :-)  Or should I start another thread of discussion about it?


    Thanks for your expertise and your attention in sharing it with us.

  • Hi Michel,

    The help file contains the basic information required to start with the post-processor in TINA-TI.

    You can search over the internet or E2E forum for the specific queries and solutions regarding post-processor.
    The will help you to gain insights regarding this feature.

    Thanks,
    Vivek Agarwal