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

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

Children
No Data

Before You Switch


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