Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- LTspice
- Messages
Search
Re: All_Files.Htm
--- In LTspice@..., "Basier philippe" <basier.philippe@...> wrote:
Hello Philippe, You should open it with any Internet browser. IE, Firefox, Chrome, Opera, ... Normally it's automatically opened by your standard browser when you click on it. Files > Tables of Contents > all_files.htm Best regards, Helmut |
Re: All_Files.Htm
John Woodgate
In message <kker0j+82e6@...>, dated Sun, 14 Apr 2013, Basier philippe <basier.philippe@...> writes:
How to open all_files.htm ?Has it gone wrong again? It should open in any browser. I just tried it and it opens OK. But it is a very large HTML file, so it may take time to download, or be corrupted during download. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: inverting opamp simulation: rapid component variation
Hello,
toggle quoted message
Show quoted text
You can only use .STEP to change the values of components in the .AC simulation. Best regards, Helmut --- In LTspice@..., "MOHAMMAD A MAKTOOMI" <amaktoomamu@...> wrote:
|
Re: Photo Transistor
--- In LTspice@..., "mase723777" <mimmo_renato@...> wrote:
Hello Renato, Nearly all symbols in the LTspice library are intentionally made as specific symbols. This prevents that users corrupt their database. One can modify this symbol to allow to change the parameter Igain for example. I have made a new symbol PC817.asy for you. Please try my example. Files > Temp > PhotoTransWithMOSFET.zip Its best practice to copy this symbol into every folder where you have a schematic using this new symbol. Best regards, Helmut |
Re: Step a resistor over time
--- In LTspice@..., Richard Norman <rnorman3@...> wrote:
Hello Richard, You can use formulas instead of a fixed value for a resistor. Therefore replace the value of 1k on your resistor with a formula. See below. R=100*(1+time/10m) This will rise the resistance from 100Ohm to 1kOhm in 90ms. Best regards, Helmut |
Re: THD of a sine with a small dent at crossover
Hello Echidna,
toggle quoted message
Show quoted text
Crossover Distortion -------------------- I calculated the formula with Fourier series and approximation. sin(x) = x-1/3*x^3 1-x^2 = 1-2*x THD = 100%*2*pi*sqrt(1/3*(D/T)^3) ================================= Files > Temp > crossover_distortion.asc You can check the distortion calculated by .FOUR with View -> SPICE Error log Best regards, Helmut --- In LTspice@..., "Echidna" <mchambin@...> wrote:
|
Re: THD
Yes, I found 25*(D/T)^2 by trial.
toggle quoted message
Show quoted text
Running simuations that give me THD, I see it fits perfectly with D/T from 0.02 to 0. Yes, I meant "unable". Now, I understand better. The 25*(D/T)^2 is quite normal. Because I am looking for small D/T the fonction has to behave like. THD = a*( D/T) + b* (D/T)^2 The only thing that would need a mathematical proof is that there is no D/T term. I think this is because the THD fonction is and odd fonction of D/T. By odd fonction, I mean f(-x)=-f(x). May be, the proof of this is not too difficult. --- In LTspice@..., John Woodgate <jmw@...> wrote:
|
Re: THD
John Woodgate
In message <kkdr4u+gvv5@...>, dated Sun, 14 Apr 2013, Echidna <mchambin@...> writes:
Indeed, I found 25*(D/T)^2 by trial.Thanks. I just wanted to prevent others being confused. Agreed. I will try using Mathcad, but I can't do it immediately. this is why I tried a workaround. I am puzzled to see such a complex calculation while the THD = 25*( D/T )^2 result is so simple.It happens sometimes. This result fits so well with simuulation trials, I doubt it is so by chance.Maybe. I notice a small point. Your pulse starts at the zero-crossing. To simulate crossover distortion correctly it should start at time t/2 before the zero-crossing and end at time t/2 after it. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Step a resistor over time
Hi All, is it possible to step a resistor over time? Right now if I use the step command like this:
.step param R 100 1000 100 .tran 0 1ms 0 1 I end up with a bunch of parallel horizontal lines. What I want is a bunch of points (maybe even connected) over time. So in other words, over the 1ms, I want the resistance to step from 100 to 1000. Is it possible? Thanks! Richard |
Re: THD
Indeed, I found 25*(D/T)^2 by trial.
toggle quoted message
Show quoted text
Running simulations that gave me THD values for various D values. I have uploaded the .asc file of that simulaton. "enable" is a spelling mistake. I meant "unable". I did try using Fourier analysis in my manual calculations. Calculation of the Fourrier coefficient is extremly difficult, this is why I tried a workaround. I am puzzled to see such a complex calculation while the THD = 25*( D/T )^2 result is so simple. This result fits so well with simuulation trials, I doubt it is so by chance. --- In LTspice@..., John Woodgate <jmw@...> wrote:
|
Re: Photo Transistor
--- In LTspice@..., Andy <Andrew.Ingraham@...> wrote:
Dear Andy,I am new to LTspice and electricity(my dad is my teacher), I was looking onThis is likely a MS-Windows problem, but you haven't given us nearly Thx. for your reply, I indeed saved the library files under program files. When I right click on the photo coupler it gives me following message "High density mounting photo coupler This component cannot be edited". The strange thing is that all other components can be edited and they are saved in the same library. I will upload the file on the group main page to make it more clear. Many thx. for your feedback, KR, Renato |
Re: inverting opamp simulation: rapid component variation
John Woodgate
In message <kkdlr2+p199@...>, dated Sun, 14 Apr 2013, MOHAMMAD A MAKTOOMI <amaktoomamu@...> writes:
Actually, a DC input voltage is present. But, I don't know if it will be ground in AC analysis.It will be ignored, which is equivalent. If that's grounded then how could I have output (ignore offsets at this moment).I don't see a solution if R2 varies at frequencies as high as the op-amp will handle. If R2 varies more slowly (*), you could put in a sine wave signal at a higher frequency to act purely as a 'carrier' which is amplitude modulated by the variation of R2. Your output would then be the peak-detected and filtered carrier. (*) However rapidly R2 might vary in reality, you can always slow it down for simulation, e.g. using a frequency range of 0.1 Hz to 1000 Hz with a 10 kHz carrier. Obvious, you need to simulate for several tens of seconds in such a case. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: THD
John Woodgate
In message <kkckve+t28o@...>, dated Sat, 13 Apr 2013, Echidna <mchambin@...> writes:
Using LTspice simulations I find THD = 25*( D/T )^2 In this simulation I used a 1000 HZ SINE combined with a PULSE with values of D like 0.1u 0.2u 0.5u 1u 2u 5u 10u 20u 50u These simulations gave me a THD that perfectly fits with 25*( D/T )^2I think you mean you found 25*(D/T)^2 by trial. This can be misleading. I once found a power function that matches half a sine wave very accurately, but outside the range 0 to pi it doesn't. 'unable', I think. (instead of simulations ).The function you do get might match 25*(D/T)^2 over a range of D/T. Did you try using Fourier analysis in you manual calculations? -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: inverting opamp simulation: rapid component variation
Hello John,
toggle quoted message
Show quoted text
Actually, a DC input voltage is present. But, I don't know if it will be ground in AC analysis.If that's grounded then how could I have output (ignore offsets at this moment). --- In LTspice@..., John Woodgate <jmw@...> wrote:
|
Re: inverting opamp simulation: rapid component variation
John Woodgate
In message <kkdb2u+pa7l@...>, dated Sun, 14 Apr 2013, MOHAMMAD A MAKTOOMI <amaktoomamu@...> writes:
Here, I don't have any such thing (as I wish to vary the frequency of R2, NOT that of any source), so how do I proceed?Varying the value of R2, with no other input signal, doesn't produce any output, unless it's from DC offset voltage or current, or noise. You can add offset and/or noise voltage and current generators at the input and run, but only by using .TRAN. Time does not exist in an .AC or AC sweep analysis. -- OOO - Own Opinions Only. See www.jmwa.demon.co.uk They took me to a specialist burns unit - and made me learn 'To a haggis'. John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: inverting opamp simulation: rapid component variation
Thank you, Andy for your hints.
toggle quoted message
Show quoted text
But, in '.AC' we need to have an AC voltage or current source. Here, I don't have any such thing (as I wish to vary the frequency of R2, NOT that of any source), so how do I proceed? --- In LTspice@..., Andy <Andrew.Ingraham@...> wrote:
|
Re: inverting opamp simulation: rapid component variation
MOHAMMAD A MAKTOOMI <amaktoomamu@...> wrote:
...Note: In your circuit, you may need to decrease the maximum timestep down to about 10ns. (.tran 0 0.1m 0 10n) The output waveform is highly distorted at the highest frequency and LTspice was missing the narrow peak before doing that, making the amplitude look a lot less. It probably also means the result is unrealistic at that frequency, but that's another matter. Andy |
to navigate to use esc to dismiss