Using the LTS .step Parameter

Thread Starter

SamR

Joined Mar 19, 2019
4,122
Apparently I am not using it correctly... Thought I made an error in the .step but it is apparently having a problem with tl071?

1643287261496.png
 

ericgibbs

Joined Jan 29, 2010
15,342
hi Sam.
Please post your asc file, will look for any problems.
E

Update: the error is reporting a problem with the TL071, do you need an include.??
 

Papabravo

Joined Feb 24, 2006
18,086
The TL071 should tell LTspice where to find the subcircuit file.
The main choices are in the folder where the schematic is located, OR
in the library folder, probably located in your documents folder under ...\Documents\LTspiceXVII\lib

You can gains some insight about what your schematic is trying to do by going to the menu bar, and clicking on View | Spice Netlist

1643289437733.png

From the top line that begins "XU1..." you can see the symbol name is "TL071/TI" and down at the bottom you can see it is looking for a file called "TL071.mod" located in one of the folders in the library search path. It is most likely there is a reason why the subcircuit it is looking for cannot be found.

EDIT: Took too long to put the evidence together.
 

eetech00

Joined Jun 8, 2013
3,090

Thread Starter

SamR

Joined Mar 19, 2019
4,122
Nope, no problem with the model. This is all on me as I forgot to include the .lib directive.
 

Thread Starter

SamR

Joined Mar 19, 2019
4,122
In fact...
1643296657462.png
I did not cherry pick the 10k resistor or measure the 22uF cap and...
1643296789148.png
Good enuff for experimental results.
 

Thread Starter

SamR

Joined Mar 19, 2019
4,122
But this does not calculate out to 10+Vpp...
1643298309209.png
1643298639419.png
LTS and the built circuit agree, but not the calculations.
 

Papabravo

Joined Feb 24, 2006
18,086
Your value for 2π is off by a bit. It should be 6.28319....
It looks like you slipped 2 decimal places on the capacitor.
\( 22\mu\text{F}\;=\;22\times10^{-6} \)
and
\( X_C\;=\;(2\pi(100)22\times10^{-6})^{-1}\;=\;72.34 \)
 

Thread Starter

SamR

Joined Mar 19, 2019
4,122
Thx PB. That gets me to -8.17Vpp. Close enough but still more than 10% variance for experimental reliability. I can live with it though.
 
Last edited:
Top