It's actually called a SPICE directive, LTspice is software that provides an interface for SPICE.
Directives are just text, and they start with a period.
Here is an example directive called "step", with parameters after it: .step X 1 10 100
The default hotkey for creating a directive is s
You can also click the .op
button as shown below:
When you first create a directive, a window opens up for you to type in.
After you've inserted it, you'll see it as text (default color is black) on the schematic.
To re-edit the directive, right click on it. Note that some directives have their own special edit windows. If that's the case, right clicking on the directive will open a window with extra settings.
Directives can be disabled by turning them into a text comment. This is done by selecting comment
in the edit window:
Again, some directives have their own special edit windows. To turn those into a comment, you have to click cancel
in the first window that pops up, and then you'll see the standard edit window with the comment option.
Comments appear as blue text by default. The following image shows a comment (blue) and a directive below it (black):
As for DC sweep,
Go to the toolbar Simulate
> Edit Simulation Cmd
and then click the DC Sweep
tab. You can fill in your parameters there.
Once you're finished editing the sweep parameters, the directive is created as text and you can place it anywhere on your schematic.
Best Answer
Right click with the mouse on the text
.trans 1m
and change it in the dialog box as shown below.The LTspice directive becomes
.tran 0 1m .9m
Explanation of the preceeding zero:
The syntax is:
.TRAN <Tstep> <Tstop> [Tstart [dTmax]] [modifiers]
If Tstart or dTmax is specified, Tstep must has to be specified as well. Tstep is the plotting increment for the waveforms but is also used as an initial step-size guess. LTspice uses waveform compression, so this parameter is of little value and can be omitted or set to zero.