LTsipce param error

Thread Starter

p2p

Joined Dec 28, 2022
7
hi I want to put the value that I calculate with meas function. I have problem. I adding error pic.How can I fix it?

thanks in advance

1672251459887.png1672251483694.png
 
Last edited:

Irving

Joined Jan 30, 2016
5,118
params are evaluated statically before the simulation runs, therefore you cannot assign a value calculated during/after the run and all ".meas" fail.

If you explain exactly what you're trying to achieve we can,maybe, suggest an alternate strategy

1672262805765.png

1672262620940.png

Since R1 not connected to anything I(R1) will always be 0

Also Vout- is redundant as its assigned automatically to GND.
 
Last edited:

ericgibbs

Joined Jan 29, 2010
21,440
hi p2p,
As @Irving explained, in order to calculate using .meas, LTS needs the Rin Value to start the calculations.

You have an error in a param command, it needs V(VIN+)
.meas VinRMS RMS V(VIN+)

LTS error message:

WARNING: Can't resolve .param r=rin
Questionable use of curly braces in "r2 vin+ 0 {r}"
Error: yet unevaluated parameter in: "[r]"
Circuit: * C:\Users\ericg\Desktop\simplified dc-dc.asc

E
 

Thread Starter

p2p

Joined Dec 28, 2022
7
I will make a frequency-independent DC/DC converter that I will use in my homework. I calculated the efficiency of the module I will use according to the current I will draw. I will make this circuit subcircuit and enter 4 external parameters. IN_MAX IN_MIN VOUT EFFICIENCY
 

Irving

Joined Jan 30, 2016
5,118
hi p2p.
The link does not give the circuit design within the Yellow box area.
I am not paying $90 for the model, do you have a free Copy.?
E

@p2p
Have you seen this link?
https://www.analog.com/en/technical...del-for-current-mode-dc-to-dc-converters.html
And this PDF.
Hi Eric,

Interesting article that shows how to simulate a generic DC/DC converter without having a specific chip model, but it still simulates on a cycle by cycle basis. However, the simulation the TS linked to appears to be a static parameter model that doesn't operate on a cycle by cycle basis but provides a time-averaged approach. It appears, for example, to require a fixed input value for efficiency whereas the cycle by cycle model calculates the efficiency of the conversion at the specified load point.

I think the point of the thread is that the TS doesn't want to pay $90 either (seems steep to me too) so is trying to create something similar.
 

Irving

Joined Jan 30, 2016
5,118
I will make a frequency-independent DC/DC converter that I will use in my homework. I calculated the efficiency of the module I will use according to the current I will draw. I will make this circuit subcircuit and enter 4 external parameters. IN_MAX IN_MIN VOUT EFFICIENCY
Given its DC to DC, why are you inputting a sine wave?
 
Top