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: Help! How do I do find maximum signal easily!
I useI'm sure you can have LTspice print a table from the plot window. In the old days of SPICE, that was how you got your data: in tabular form, without the plots. LTspice relies on the visual presentation and did away with the default tabular data. I would check the SPICE Error Log anyway, just in case it still puts the AC data there. (The old SPICE command to get AC data was: .PRINT AC VM(n004) VP(n004) IM(r6) IP(r6) VR(out) VI(out) etc.) is there a way to say, ask forThe good news is, unlike a TRANsient analysis, an AC analysis actually does a pre-determined set of frequencies. Transient analysis depends on being able to vary the step size dynamically, so you never get uniform time steps. Not so with AC analysis. The frequency steps are deterministic and you know in advance exactly what frequencies you will get. Unfortunately, you have limited capability to ask for specific frequencies. As far as I know you can only specify a frequency range; not a table of frequencies. (Perhaps that could be suggested to Mike as a future enhancement to LTspice.) You get what you get, and you need to interpolate if you want data in between. (MS-Excel or a math program comes in handy here.) On the other hand, it would be tedious, but I suppose you could set your start and stop frequencies to two of the frequencies you actually need, such as .AC lin 0 20.5956780 33.4585746 and repeat as necessary. I get the feeling you have a huge number of odd frequencies, that don't fall on a nice linear or logarithmic sweep. With a bit of programming there is probably a way to automate the process ... generate multiple netlists, simulate, grab the data, store it and assemble into one file. Regards, Andy |
Re: Help! How do I do find maximum signal easily!
oops, sent this before thought of this:
is there a way to supply a table of frequencies and have the ac analysis specifically done at those points, yet plot the results too? At least an output table would help. like f(1)=20.5956780Hz f(2)=33.4585746Hz . . . and that would generate a table of V(out) at f(1) V(out) at f(2) . . . and so on. of course need access to the table. Is there a way to use .ac dec 500 10 100k and a .meas command to yield a table of values? that at least would get me by for awhile. --- macy@... wrote: From: Macy <macy@...> To: <LTspice@...> Subject: Re: [LTspice] Help! How do I do find maximum signal easily! Date: Fri, 12 Jul 2013 02:47:06 -0700 Andy, thanks for responding. I forgot to add after asking if this was a stupid question, whether I had worded it badly. How about this: I use .ac dec 201 10 100k then how do I make an output table of V(out) at specific frequencies? I can change the command line to .ac dec 500 10 100k which is only 2000 points, and not slow down the analysis much is there a way to say, ask for V(out) at freq=20.5956780Hz? V(out) at freq=33.4585746Hz . . . and so on to make a table of these values that I could then use elsewhere? --- Andrew.Ingraham@... wrote: From: Andy <Andrew.Ingraham@...> To: LTspice@... Subject: Re: [LTspice] Help! How do I do find maximum signal easily! Date: Thu, 11 Jul 2013 23:26:31 -0400 Maybe not. But a complicated one. I, for one, have trouble understanding what exactly you are asking. Sorry. Andy |
Re: Help! How do I do find maximum signal easily!
Andy, thanks for responding. I forgot to add after asking if this was a stupid question, whether I had worded it badly.
How about this: I use .ac dec 201 10 100k then how do I make an output table of V(out) at specific frequencies? I can change the command line to .ac dec 500 10 100k which is only 2000 points, and not slow down the analysis much is there a way to say, ask for V(out) at freq=20.5956780Hz? V(out) at freq=33.4585746Hz . . . and so on to make a table of these values that I could then use elsewhere? --- Andrew.Ingraham@... wrote: From: Andy <Andrew.Ingraham@...> To: LTspice@... Subject: Re: [LTspice] Help! How do I do find maximum signal easily! Date: Thu, 11 Jul 2013 23:26:31 -0400 Maybe not. But a complicated one. I, for one, have trouble understanding what exactly you are asking. Sorry. Andy |
Spice Modelle von Infineon laufen nicht in LTSPICE
Ich bin noch relativ neu in LTSPICE unterwegs und brauche Hilfe. Ich soll die neuesten IGBTs von Infineon mit LTSpice testen.
Wie mir meine Kollegen mitgeteilt haben, ist das Problem mit den Infineon Libs bekannt, aber keiner hat eine L?sung parat... Es handelt sich um folgende LIB: IXX_N60H3_L2.lib Ich habe den Typ "IKW50N60H3_L2" eingesetzt und die Simulatin hat nach wenigen Mikrosekunden abgebrochen... Gibt es bekannte Ursachen der kann es an der Schaltung liegen? Ich kann ja noch das *asc File posten... Ich w?re an einer schnellen L?sung interessiert. Danke Gru? Kalle |
Re: arbitrary solar cell model
Hello Hamed,
I had a chance to look at this a bit more closely, and I do think LTspice is having a problem with this circuit that it should not have. I have created a simpler version of your circuit, in schematic form, and placed it in the Temp directory. The file is "BadExp.asc." If you run it as-is the simulator fails to find a reasonable solution, voltages and currents that should be in the single-digits are in the 100ks or Megs, not where they should be. However if you change the simulation command to start the DC sweep at 0V instead of -1V it works fine. This is what I saw with your circuit too, I think having two cells in series might have caused the simulator, at some point in its search, to have a negative voltage on one of the cells, and everything blew up. It seems that LTspice tries to use the results of each iteration to start the next iteration, so once it's gone off the rails it stays there. But it really shouldn't be having any problem calculating the solution with negative input voltages. Another way to 'fix' the problem is to force the B-source for Voc to a constant value of 0.564V. This is odd since even when the sim fails that B-source has that correct value on it, while the Bidiode source blows up. I have sent this circuit and observation to Mike @ LT, I'll report back here when I hear from him. --- In LTspice@..., "hamed" <l0st_l0rd@...> wrote: the reason that I use arbitrary model not a standard diode is that I cannot control temperature change for each solar cell in diode model.But as you've been told this is not true. You -can- control the temperature independently for each instance. What's more, the standard model will have the correct temperature dependence while you already know that your equations do not calculate Voc correctly over temperature. --- In LTspice@..., "hamed" <l0st_l0rd@...> wrote: Furthermore, the reason that grounds are different is that two cells are in series.Yes, I understand why you want your model to float so you can connect them without reference to ground, but as I said you did not implement this correctly. Your formulas for Voc and Isc are referenced to the 'ref' node but then when you use those values in the subsequent calculations you are using their value relative to ground. This is wrong. Actually I should say that I am not so good in schematics environment and I am used to netlists while I can control the nodes easier.You should give it a try, with very little practice I think you will find that it's actually much easier to keep track of what nodes are connected where by looking at the schematic than it is by reading a large netlist. I suggest again that you might not have made the errors with the signal references if you had used a schematic instead of a netlist. Best, Fred --- In LTspice@..., "qrx3" <fredh@> wrote: |
Re: LTSpice & Eagle
It might be worth checking sparkfun.com for information on this link. I
have read that they use eagle for production, and make available most (if not all) of there schematics and symbols. Also, since they use eagle for production, they may have an inside track to getting support, as they can influence a large user base. Tim On Sun, Jul 7, 2013 at 9:49 AM, bdd4@... <bdd4@...> wrote: ** [Non-text portions of this message have been removed] |
Re: Help! How do I do find maximum signal easily!
I can't believe no one has responded! Was this a stupid question?
--- macy@... wrote: From: Macy <macy@...> To: <LTspice@...> Subject: [LTspice] Help! How do I do find maximum signal easily! Date: Wed, 10 Jul 2013 17:43:31 -0700 I'm trying to find an easy way to see if my signal saturates any OpAmp output, or violates some level to the next stage. Right now, I'm using input values predetermined from matching to the existing breadboard circuit I know the levels are ok, but now I want to redesign using simulation. Problem is...I have a VERY complex time input signal yet has fairly 'flat' harmonic content, so historically I have been able to use AC analysis and get very accurate simulation. for example, a representative data point using most recent LTspice I predict 35 ppm noise at 1kHz [that is, noise to signal levels] and MEASURE 36 ppm. So am very happy with the simulation and models. [the noise pretty much matches within 10% over the rest of the spectrum] Here is the problem. I want to redesign the circuit, but not build it to verify operating levels. So how do I bounce between this frequency domain and the time domain WITHOUT taking days for each run? What I mean is, I can represent the input waveform in a .wav form or PWL model, but we're talking 4400 UNIQUE data points that repeat and repeat. then, do .tran analysis, but that takes iteration after iteration to get a stable repeatable output signal. Or, I could 'post-process' an AC analysis by just 'assuming' everything is copacetic, run the AC analysis, and find the harmonic values/phase angles and use octave to plot the signal. And, octave will tell me if I've violated maximum signal level. How do I make the AC simulation put out specific frequency/phase values, maybe not the ones it used during the AC analysis? And how accurate will they be? The signal may be complex enough that a few degrees could cause a catastrophe, but I guess I could cross that bridge later, getting close right now would be a big help. Is there a way to make a file of table of results? I give frequency points [not in the AC anlayis] and LTspice gives me amplitude/phase in a file, so I can run that through octave. Is there a way to 'force' the frequency data points of LTspice - there's a lot fo them? Or, is there a way to stay in the time domain easily quickly generate the waveform as I change a component value someplace? Help! |
Re: low noise amplifier
Hi,
I don't know what your specific requirements are, but have you taken a look at the "AT-42086", made by Agilent (HP), it may meet your requirements. I have over 18,000 (18K) of these things on tape reels. (Don't ask!) If you (or anyone else for that matter) will sent me a SASE, I will send you 1 oz worth. I guess about 20 to 40. I only ask that you or anyone keep us posted on any circuits that you have success with. On another thought have you looked at the Norton-Rohde Feedback Amplifier? See Also, the datasheet shows the typical scattering parameters for an output impedance of 50 ohms from 100 MHz to 6.0 GHz. I would be eternally grateful for anyone who can develop a LTSpice model for 100 MHz and 2.5 GHz. Glynn .. K4RKI AMA30686 PS; Google my ham radio call sign and you will find my address in the FCC database. Or K4RKI@... |
Re: Changing an opamp type in one circuit changes output in another isolated circuit
carlvanwormer
--- In LTspice@..., Andy <Andrew.Ingraham@...> wrote:
That's great detective work and analysis! You've shown me a new tool to use in future troubleshooting attempts. Yes, I know the circuit is strange . . . I inherited it from a customer and was running some simulations in order to understand the functions and problems. The reason for the strangeness is that it runs a the end of a long twisted pair, and the power line is also the signal line. I added the -5V negative rail in an attempt to get the simulation running, since the opamp I selected drew 5 times the current of the part they were using, unbalancing the design. I may try to give them an alternate power+signal 2-wire design that is inherently stable. Thanks, Carl |
Re: How do I import the LMH6629 spice file into LTSpice IV?
Hi Helmut,
toggle quoted message
Show quoted text
Thanks again. I'll take another look at it and see if this time the penny drops :-) Greetings, Jesper --- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: comparator ADCMP566 MODEL
Hello Ross,
toggle quoted message
Show quoted text
unfortunately neither by Analog Devices nor in the internet is a .subckt ADCMP566 to find. :-( Leo --- In LTspice@..., "Ross" <rssatkinson@...> wrote:
|
Re: low noise amplifier
Hi Ferdian Cahyodwiputro.
toggle quoted message
Show quoted text
You gave yourself the problem from scratch. Using the command ". Inc" or ". Lib" you have to enter into it full name. In my electronic circuit: .inc 2SC5006.txt. If you like the LIB file extension, then copy my file 2SC5006.txt to a file 2SC5006.lib. Bordodynov. 11.07.2013, 11:42, "Ferdian Cahyodwiputro" <ferdiancahyodwiputro@...>: Hi Mr.§¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¢§à§â§Õ§à§Õ§í§ß§à§Ó |
Re: low noise amplifier
Ferdian Cahyodwiputro
Hi Mr.§¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¢§à§â§Õ§à§Õ§í§ß§à§Ó
i was download your file but cannot open in LTspice because format not .lib. can you upload again with format .lib for component transistor 2SC5006? ________________________________ From: §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¢§à§â§Õ§à§Õ§í§ß§à§Ó <BordodunovAlex@...> To: "LTspice@..." <ltspice@...> Sent: Wednesday, July 10, 2013 7:53 PM Subject: Re: [LTspice] low noise amplifier ? Hi Ferdian Cahyodwiputro. I created a small electronic circuit to test the model. Using this scheme, I found that the description of the transistor pins are in non-standard order. I will put circuit in the TEMP folder. Bordodynov. 10.07.2013, 15:33, "Ferdian Cahyodwiputro" <ferdiancahyodwiputro@...>: Hi Mr. §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¢§à§â§Õ§à§Õ§í§ß§à§Ó [Non-text portions of this message have been removed] |
Re: Changing an opamp type in one circuit changes output in another isolated circuit
I think what's happening here is that your circuit has two possible stable
states, due to the fact that it has no real V+ supply voltage. If the op-amp happens to start up yanking on the output pin, it will pull the positive supply pin voltage down with it so that it goes low, and then it settles on that second stable operating point, with the output pin negative. In that state, the op-amp is open-loop and essentially broken. If that doesn't happen, it lets the output pin (and the positive supply voltage) go high, and the negative feedback works normally. With it being a roll-of-the-dice which stable state comes up, a change to one part of the circuit can cause a change elsewhere. To prove that there are (at least) two stable states I did the following. I added a .NODESET V(n010)=10V to the circuit where U1 was replaced by the UniversalOpamp2, and this makes U2 come up "normally" again. I tried adding a .NODESET V(n010)=-2.5V to the un-modified circuit. This seems to cause LTspice to go into spasms where it can't find a clean operating point to start the transient simulation with, but it runs anyway and the transient simulation waveforms indicate that it doesn't ever recover to the "normal" situation where there is a good positive supply voltage. In other words, it finds the second stable operating point where U2 is open-loop, and its output remains low. This is a very poorly behaved negative feedback circuit. Highly questionable design. Regards, Andy |
Help! How do I do find maximum signal easily!
I'm trying to find an easy way to see if my signal saturates any OpAmp output, or violates some level to the next stage.
Right now, I'm using input values predetermined from matching to the existing breadboard circuit I know the levels are ok, but now I want to redesign using simulation. Problem is...I have a VERY complex time input signal yet has fairly 'flat' harmonic content, so historically I have been able to use AC analysis and get very accurate simulation. for example, a representative data point using most recent LTspice I predict 35 ppm noise at 1kHz [that is, noise to signal levels] and MEASURE 36 ppm. So am very happy with the simulation and models. [the noise pretty much matches within 10% over the rest of the spectrum] Here is the problem. I want to redesign the circuit, but not build it to verify operating levels. So how do I bounce between this frequency domain and the time domain WITHOUT taking days for each run? What I mean is, I can represent the input waveform in a .wav form or PWL model, but we're talking 4400 UNIQUE data points that repeat and repeat. then, do .tran analysis, but that takes iteration after iteration to get a stable repeatable output signal. Or, I could 'post-process' an AC analysis by just 'assuming' everything is copacetic, run the AC analysis, and find the harmonic values/phase angles and use octave to plot the signal. And, octave will tell me if I've violated maximum signal level. How do I make the AC simulation put out specific frequency/phase values, maybe not the ones it used during the AC analysis? And how accurate will they be? The signal may be complex enough that a few degrees could cause a catastrophe, but I guess I could cross that bridge later, getting close right now would be a big help. Is there a way to make a file of table of results? I give frequency points [not in the AC anlayis] and LTspice gives me amplitude/phase in a file, so I can run that through octave. Is there a way to 'force' the frequency data points of LTspice - there's a lot fo them? Or, is there a way to stay in the time domain easily quickly generate the waveform as I change a component value someplace? Help! |
to navigate to use esc to dismiss