Post Go back to editing

In V26.1.1, the interpretation of `FROM` and `TO` in the `.meas` command appears to be different from before

Thread Summary

The user reported inconsistent .meas command behavior in LTspice V26.1.1, where FROM and TO times are interpreted using absolute simulator time instead of waveform viewer time, leading to unexpected results. The final answer confirms this as a bug and explains that out-of-bounds FROM and TO values are now acceptable if data exists within the range, a change introduced in LTspice 24.1. The user provided additional data from V26.0.2, showing intermediate behavior changes.
AI Generated Content
Category: Software
Software Version: V26.1.1

First of all, thank you for the release of V26.1.1 and for the continued improvements to LTspice.

I noticed some behavior in V26.1.1 regarding the interpretation of `FROM` / `TO` in the `.meas` command that appears to be different from previous versions.

The attached sample circuit is a very simple test case.

A transient analysis is run for 50 ms, with data saved starting from 20 ms.
Therefore, the waveform viewer displays a time range of 0 to 30 ms.

I then use `.meas` commands to calculate the AC RMS value.

In previous versions, my understanding has been that the times specified by `FROM` / `TO` correspond to the time axis displayed in the waveform viewer.

With that interpretation, I would expect the following results from these three measurements:

Measurement "out1_mean" FAIL'ed
Measurement "out1_acrms" FAIL'ed

out2_mean: AVG(v(out))=2.57779e-006 FROM 0.02 TO 0.03
out2_acrms: RMS(v(out) - out2_mean)=0.703621 FROM 0.02 TO 0.03

out3_mean: AVG(v(out))=0 FROM 0.01 TO 0.02
out3_acrms: RMS(v(out) - out3_mean)=0 FROM 0.01 TO 0.02


However, in V26.1.1, I actually get the following results:

out1_mean: AVG(V(out))=4.32692331062e-06 FROM 0 TO 0.05
out1_acrms: RMS(V(out) - out1_mean)=0.405740403021 FROM 0 TO 0.05

out2_mean: AVG(V(out))=0 FROM 0.02 TO 0.03
out2_acrms: RMS(V(out) - out2_mean)=0 FROM 0.02 TO 0.03

Measurement "out3_mean" FAIL'ed
Measurement "out3_acrms" FAIL'ed

From these results, it appears that `FROM` / `TO` in V26.1.1 are being interpreted using a different time reference from previous versions. However, I am unable to understand exactly which time interval is being measured.

Is this an intentional change in V26.1.1, or could this be an issue?

Best regards,
Denspa

 261005_fromto.zip

Edit Notes

Translated Title to English. Removed contains AI generated content flag. Added keywords.
[edited by: MStokowski at 5:50 PM (GMT -4) on 20 Oct 2026]
Parents Reply
  • Hi Mike,


    I was so surprised by this behavior that I accidentally entered the subject in Japanese.
    I just wanted to follow up on this issue.
    Were you able to reproduce the behavior I reported in V26.1.1?
    I understand that investigating the cause may take some time, but I would appreciate knowing whether the issue itself has been confirmed.


    Thank you again for taking a look.
    Denspa

Children

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.