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

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]
  • 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

  • Hi Mike,

    I found one more data point that may help narrow this down.
    The behavior is already somewhat different in V26.0.2, although it is not as severe as in V26.1.1.
    In V26.0.2, I get:

    ```text
    out1_mean: AVG(V(out))=4.32692331059e-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))=1.29807699318e-05 FROM 0.02 TO 0.03
    out2_acrms: RMS((V(out) - out2_mean))=0.702762992636 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
    ```

    The first measurement should not produce a valid value at all, so this result already appears incorrect in V26.0.2.
    This may indicate that the behavior started changing before V26.1.1.
    I hope this additional information is useful for your investigation.
    Denspa

  • Hi  ,

    Sorry, not yet. I'll check the new tests, too.

    mike

  • Hi  ,

    These inconsistencies between versions appear to be the result of two changes of behavior, one from XVII to 24.1, and the second implemented in 26.1:

    1. In LTspice 24.1 and forward, out-of-bounds FROM and TO values (i.e. outside the saved data) are now acceptable in certain situations: If there is data within the FROM and TO values, the calculation will be made on the available data. If there is no data in the resulting range, then the .meas will fail. This is an undocumented change that makes .meas a little more forgiving; hopefully saving time for users. We are looking into how to convey the difference one might see between the stated .meas FROM and TO and the actual range used in calculation.
    2. A change in LTspice 26.1 made .meas FROM and TO values reference absolute simulator time, as opposed to waveform viewer time as in earlier versions. We are treating this as a bug.

    Thanks again.

    mike

  • Hi Mike,

    Thank you very much for the detailed explanation.

    I understand now that the behavior seen in V26.0.2 is due to the change introduced in 24.1, while the change in V26.1 regarding the time reference for .meas FROM/TO is being treated as a bug.

    That clears up the difference between the versions very well.
    Thanks again for looking into this.

    Denspa

Before You Switch


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