Task 13: Using the Parameter Sweep

  1. Continuing from the previous task, set the selection filter in the Status Bar to Main Object and select the resistor R1 on the schematic canvas.
  2. With R1 selected, open the Properties panel and type "{RVAL}" for the SPICE Parameter 1 property. This assigns the variable value RVAL to the schematic, and allows the value to change for the parameter sweep.

Graphical user interface, table Description automatically generated

  1. Select R2 from the canvas, and type "{RVAL*2+10k}" for the same property SPICE Parameter 1. This assigns the equation, and uses the variable resistance value of R1 to calculate the resistance of R2.

Graphical user interface, table Description automatically generated

 

Note
When defining variables in the SPICE parameter fields of the properties, they must be within curly { } brackets to be recognized by the LTspice application.

 

  1. In the Analysis tab, SPICE Controller group, select Netlist Out.

  1. When prompted, click Yes to save the schematic design. This is required as you have changed a SPICE parameter, and must therefore update the netlist that is supplied for SPICE Controller.

Graphical user interface, text, application Description automatically generated

  1. Confirm that the Netlist Out dialog looks like the image, and then click Execute. A new netlist is created.

Graphical user interface, text, application Description automatically generated

  1. Click OK in the information dialog.
  2. The SPICE Controller Manager dialog launches automatically after confirmation of the netlist output.

Graphical user interface, application Description automatically generated

 

Note
If SPICE Controller Manager is not launched automatically, then launch it by selecting Manager on the Analysis tab, SPICE Controller group.

 

  1. In SPICE Controller Manager, click Analysis Settings A picture containing text, screenshot Description automatically generated and select the existing Transient Analysis setting.

Graphical user interface, text, application, email Description automatically generated

  1. Select Copy to create a new row, and rename it to "R1 Parameter Sweep".
  2. Ensure that the radio button for this is selected, and click OK to return to SPICE Controller Manager.

Graphical user interface, text, application, email Description automatically generated

  1. On the SPICE Controller Manager ribbon, click Insert Analysis Condition Icon Description automatically generated. The Analysis Condition dialog is displayed.
  2. In the Analysis Conditions dialog, select Parameter Sweep and click OK.

 

Note
The Transient option is also selected as part of the analysis settings that are saved in earlier tasks.
Graphical user interface, application Description automatically generated

 

  1. In SPICE Controller Manager, double-click Parameter Sweep 1. The Parameter Sweep Analysis Condition dialog is displayed.

  1. In the dialog, specify the following settings.
  • Sweep Object: Global Parameter
  • Parameter Name: RVAL
  • Type: Step
  • Start: 1K
  • Stop: 10K
  • Step: 1K

Graphical user interface Description automatically generated

  1. Click OK to apply the settings and close the dialog.
  2. On the SPICE Controller Manager ribbon, click Save Icon Description automatically generated  to save the current data.
  3. On the ribbon, click Net Output, Simulation Icon Description automatically generated. This outputs an updated SPICE netlist and launches LTspice. A simulation is performed using the data from eCADSTAR SPICE Controller.

 

Note
The LTspice application may open with no items selected or displayed.
Graphical user interface Description automatically generated with medium confidence

 

  1. In the LTspice application, click Plot Settings on the ribbon, and select Visible Traces.
  2. In the Visible Traces dialog, select the signals V(out) and V(vin), and click OK.

Graphical user interface, text, application Description automatically generated

  1. After clicking OK, the signal is shown on the graph.

A screenshot of a computer Description automatically generated

  1. In the LTspice application, click Plot Settings on the ribbon and click Select Steps. This allows you to display each step individually on the canvas, when analyzing the results.

Table Description automatically generated with low confidence

  1. Select the row Step: 6 and RVAL: 6000, and click OK. The displayed graph is updated to show only a single V(out) waveform.

A screenshot of a computer Description automatically generated

  1. Close the LTspice application and SPICE Controller Manager.
  2. In eCADSTAR Schematic Editor, select File > Close Design to close the schematic design.

 

Next Topic: Simulation Frame