Post Go back to editing

Trouble following the Help syntax — please advise what I’m doing wrong

Thread Summary

The user encountered errors using the .step and .dc commands with the 'file=' syntax in LTspice. The solution is to remove the equal sign and use a space instead, e.g., '.step param R1 file RTable.txt' and '.dc V1 file DCTable.txt'. The .ac command, which already works with 'file=', will be updated to support both syntaxes in the next version.
AI Generated Content
Category: Software
Software Version: V24.1.10

Hello ADI Support,

I’m trying to use the syntax shown in the Help but I’m getting errors and would appreciate guidance on what I’m doing wrong.

In ".STEP — Parameter Sweeps", the Help shows a form like:

.step <item> file=<filename>

I attempted the following, but LTspice reports an error:

.step param R1 file=RTable.txt
; or
.step R1 file=RTable.txt

Similarly, in ".DC — Perform a DC Source Sweep Analysis", the Help shows:

<srcnam> file=<Filename>

I tried:

.dc V1 file=DCTable.txt

but this also produces an error.

For reference, the ".ac file=<Filename>" form "does" work correctly in my tests:

.ac file=ACTable.txt

Could you please point out what I’m missing in the syntax for ".step" and ".dc" when using the `file=` form (e.g., any required keywords, argument order, or file formatting)?

Thank you for your assistance.

251108_StepFile.zip