Probably everyone but me knows how to do this but how do you step the frequency of an AC source while doing a transient analysis, for example perform a transient analysis at 1MHz steps from 1 to 10MHz. Thanks Rob
----- Original Message ----- From: "viking" Newsgroups: sci.electronics.design Sent: Sunday, September 16, 2007 1:19 PM Subject: Help with LTspice
Hello Rob,
What means "steps"? What's the type of the signal? (sine?)
Three chances with .TRAN
------------------------ One simulation run: continuous frequency sweep One simulation run: stepped frequency 1Mhz, 2MHz, .. Multiple simulation runs: .step command
If you simply want the frequency response of a linear system, the .AC comamnd should be used.
Which case fits your requirement? Can you tell more what you try to simulate? It will help to give the right answer.
Hello Helmut, Sorry not giving full details. I have .tran 0.01 and an Sine source AC 1 I want to run multiple simulations (plotted on the same graph) for either a given list of frequencies or continous sweep. I've tried every combination of syntax using the .STEP comand without success (usually get syntax error). For eqample the simple set-up below:-
Version 4 SHEET 1 880 680 WIRE 128 160 128 112 WIRE 128 272 128 240 FLAG 128 272 0 FLAG 128 112 OUT SYMBOL voltage 128 144 R0 WINDOW 3 73 57 Left 0 WINDOW 123 24 132 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName V1 SYMATTR Value SINE(0 0.01 1000000) SYMATTR Value2 AC 1 TEXT -2 506 Left 0 !.tran 0.01
So this gives the result for 1MHz, but how to have it repeat the run for 2MHz..etc, plotted on the same graph.
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
America: Land of the Free, Because of the Brave
Hello Helmut Thanks for that. The first example is the sort of thing I'm after. But the example you give crashes the application when run! I modified it at got the following to work:-
Version 4 SHEET 1 880 680 WIRE 128 112 128 64 WIRE 416 112 128 112 WIRE 544 112 496 112 WIRE 608 112 544 112 WIRE 544 144 544 112 WIRE 128 160 128 112 WIRE 128 272 128 240 WIRE 544 272 544 208 FLAG 128 272 0 FLAG 128 64 OUT FLAG 544 272 0 FLAG 608 112 filt IOPIN 608 112 Out SYMBOL voltage 128 144 R0 WINDOW 3 73 57 Left 0 WINDOW 123 24 132 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value SINE(0 0.01 {freq1} 0 0 0 100) SYMATTR Value2 AC 1 SYMATTR InstName V1 SYMBOL res 400 128 R270 WINDOW 0 32 56 VTop 0 WINDOW 3 0 56 VBottom 0 SYMATTR InstName R1 SYMATTR Value 100k SYMBOL cap 528 144 R0 SYMATTR InstName C1 SYMATTR Value 10n TEXT 224 16 Left 0 !.tran 0.01 TEXT 216 -16 Left 0 !.step param freq1 list 1000 2000 3000
But you only have to change some parameters slightly for it to fall over, for example .trans 0.1 or add some more fequencies or use 1e6 instead of 1000000.
"viking" schrieb im Newsbeitrag news: snipped-for-privacy@n39g2000hsh.googlegroups.com...
Hello Rob,
I had reported a similar problem with another circuit already to Mike this afternoon. I am sure there will be a fix latest until tomorrow. Sorry for this problem with the version 2.21m. I will reply as soon as a new version is available. If you need a previous version (e.g. 2.21f) of scad3.exe without this bug, you can download it from the Yahoo group or you send me your email address and I will mail it to you. It's 2MB in a zip-file.
Hello Helmut, Thanks for taking the time to help. I will wait for the fix to come out. I will not be able to get back to the project I was using it on untill next week. Thanks again. Rob
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.