?
Hello All:
?
Sorry for being late to the party but I had to grab some sleep time.
?
So, it's equality only.
No matter how many times I read the .meas help I would not come to that conclusion.
To me;?WHEN <expr> means WHEN <any and all types of mathematical experssion>.
WHEN <expr of equality only> would be much more redily understandable.
?
I noticed that there were no examples of anything like:
Print the time if and when a power exceeds 5W.
Print the time if and when a collector-emitter voltage goes less than 2V.
Print the time if and when a snubbed node ever exceeds 15.6V.
?
Those are always the type of questions that I regularly need answers to.
?
Thanks very much for the examples.
I will see if I can get the answers I need using only equality.
? All for now ?
Sent:?Monday, February 24, 2025 at 11:24 AM
From:?"Tony Casey via groups.io" <tony@...> To:[email protected] Subject:?Re: [LTspice] .MEAS Failure On 24/02/2025 15:57, Andy I via groups.io wrote:
But I distinctly recall Helmut Sennewald cautioning people not to test for equality.? Better to use >= or <=.? The implication was that it did not use linear interpolation in those situations.? I thought .MEAS was one of them.This would be the case, for example, in a B-source expression, which disallows the "=" operator anyhow, e.g.: ? B1 EQ0 0 V=if(V(test)=0,1,0) ..which triggers an error, but: ? B1 EQ0 0 V=if(V(test)==0,1,0) ..doesn't. However, in the example of my simple sine source circuit, the 2nd of those expressions only results in V(eq0)=1 once at time=0, because none of the following data points result in V(test)=0, even though it is clear the waveform is periodic and passes through zero twice every cycle. This example therefore doesn't use interpolation, it simply looks at each data point. -- Regards, Tony |