Post Go back to editing

Cursor Step Information broken from 24.1

Category: Software

I noticed another unannounced change in LTspice has crept in. Since V24.1: the "Cursor Step Information" is broken.

Using:

.OP
.step param VP 0 250 250
.step param VG +12 -4 2

In LTspice 24.0, the "Cursor Step Information" is presented as: Cursor 1: Vg=12V (Step 1/9)

Correct in all steps.

In LTspice 24.1, you get: 

Cursor 1: Param VG +12 -4 2=0 (Step 1/10)
Cursor 1: Param VG +12 -4 2=-4 (Step 2/10)
Cursor 1: Param VG +12 -4 2=-2 (Step 3/10)
Cursor 1: Param VG +12 -4 2=0 (Step 4/10)
Cursor 1: Param VG +12 -4 2=2 (Step 5/10)
Cursor 1: Param VG +12 -4 2=4 (Step 6/10)
Cursor 1: Param VG +12 -4 2=6 (Step 7/10)
Cursor 1: Param VG +12 -4 2=8 (Step 8/10)
Cursor 1: Param VG +12 -4 2=10 (Step 9/10)

There are three things wrong with this:

  1. The step direction has been reversed.
  2. The parameter step value is wrong.
  3. There are only 9 steps, not 10. It is impossible to put the cursor on step 10 because it doesn't exist.

These bugs have been perpetuated through to 26.1.1.

--
Regards,
Tony

  • I've discovered that this bug only manifests when the step sign is "inconsistent":

    ..
    .step param VG +12 -4 2  → cursor bug

    ..
    .step param VG +12 -4 -2  → no cursor bug

    LTspice 24.0 accepts either -2 or 2 as the step increment without error, and the direction of sweep is determined only by the start value and stop value, regardless of the sign of the increment. This seems bulletproof.

    LTspice versions from 24.1 onwards re-arrange the start and stop values to always have a positive step direction for all depths (dimensions) of .step, but the Help continues to say that this only applies to the first dimension.

    --
    Regards,
    Tony

  • Hi Tony ( ),

    Will look at this one. 

    LTspice 24.0 accepts either -2 or 2 as the step increment without error, and the direction of sweep is determined only by the start value and stop value, regardless of the sign of the increment. This seems bulletproof.

    That does feel robust.

    mike

Before You Switch


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