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
Shot Noise Contributions From DC Currents
Hello All,
I have a simple amplifier model using a voltage controlled voltage source with a parallel combination of R and C in the feedback. The noise analysis in LTSpice gives me the expected voltage noise spectral density due to the Johnson noise of the resistance. But I'm trying to add a DC bias current and see the shot noise that results, and it's not working. For example, if I put a 1 Amp DC bias at the negative node of the VCVS, I don't see the output noise change. I also tried using a behavioral model of the current using the white function, and that doesn't produce any noise at the output either. Does anyone know how to simulate shot noise such as I'm trying to do? Thanks in advance, Darren O'Connor |
gaussian noise in time
Hello,
I kindly ask for an advice to choose the correct parameter to insert in the Box-Muller formula using the "rand" function. In particular I need to have a white noise in the band of interest (called BW in the param def below), the RMS I called Vrmsn1 due to R1 in the BW. my question is: which value do I need to put to multiply "time" ? I use 2*BW is it correct? .param Vrmsn1 = sqrt(4*kB*T*R1 *BW) V = {Vrmsn1}*SQRT(-2*LN(1E-8+rand(time*2*BW)))*SIN(2*PI*rand(time*2*BW+1879)) using an fft with nfft points the average of the noise spectrum seen in the FFT should be: 10*log10( 4*kB*T*R1 *BW /(nfft/2) ) I cannot get this correspondence (maybe I miss some point!) From an old post #40603 (that refers to an older one #5598) I read: --- There are pseudo random number generator functions available in behavioral sources: white(), rand(), and random(). You would have to filter their response to make it white or pink. Their frequency domain spectral output is a specific function I do not document, not white or pink (given sufficient statistics it will increase in frequency and then roll off). --Mike --- that means the spectrum of "rand" is not really white ... any suggestion to match the AC: 10*log10( 4*kB*T*R1 *BW /(nfft/2) ) with the time domain (just a voltage source with the box-muller formula as above) is appreciated. kind regards Sergio |
Re: FFT ratios V / I = Z ? (was CSV to PWL)
Wow. If only I had a recorder that could actually reproduce that number of discrete measurements for manipulation and analysis.
toggle quoted message
Show quoted text
It looks to me like the simple answer is 'Yes', with the usual reservations. Maybe I'll approach this again when there's a lot more memory available. It's supposed to be pretty inexpensive, too. RL --- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: PWL Files and Transient Noise Analysis
Many thanks Helmut.
toggle quoted message
Show quoted text
--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: PWL Files and Transient Noise Analysis
--- In LTspice@..., "beaudoin.christopher" <beaudoin.christopher@...> wrote:
Hello Chris, LTspice dynamically changes the time step. You should simply a small maximum time step in the .TRAN command. This ensures that nothing will be lost. LTspice does a linear interpolation between your defined PWL data points. LTspice uses data compression by default when it saves the results of the simulation. If you you want the best result, you should disable data compression in this case. Please add the following SPICE-directive to your schematic. It will switch off data compression. .options plotwinsize=0 Best regards, Helmut |
Re: simulation time function
oh, thanks easier than I expected...
toggle quoted message
Show quoted text
--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: simulation time function
--- In LTspice@..., "bcapaldo" <bcapaldo@...> wrote:
Hello, There are arbitrary sources Bv and Bi. Their symbol is bv and bi. The time is "time" in the formulas. V=A/(time+small_const) +B*time You can't divide by 0 at time=0. Thus you have to add a small number. Also look at the help pages of B-sources for the possible functions like sin, exp, if, ... Best regards, Helmut |
Re: "Missing schematic(s) of the hierarchy" error
Thanks for the assistance. I found my problem. Goodbye. Best Kevin
________________________________ From: Kenneth L. Owen <tx836519@...> To: LTspice@... Sent: Wednesday, July 31, 2013 11:20 AM Subject: RE: [LTspice] Re: "Missing schematic(s) of the hierarchy" error ? Hi Kevin, I am guessing here, so bear with me. To open the attribute editor of a symbol, hold down Ctrl and Right-Click the mouse. -- ken _____ From: LTspice@... [mailto:LTspice@...] On Behalf Of Kevin Byrne Sent: Wednesday, July 31, 2013 10:20 AM To: LTspice@... Subject: Re: [LTspice] Re: "Missing schematic(s) of the hierarchy" error Helmut I have a question for you along this line if I may. I tried what you said but cannot change any thing at all in Select component dialog box. If I should start another thread just say so but my question is along the same line of this thread. How do I change that line in LTspice. I get nowhere with that dialog box. Best Kevin ________________________________ From: Helmut <helmutsennewald@... <mailto:helmutsennewald%40yahoo.com> To: LTspice@... <mailto:LTspice%40yahoogroups.com> Sent: Tuesday, July 30, 2013 2:23 PM Subject: [LTspice] Re: "Missing schematic(s) of the hierarchy" error --- In LTspice@... <mailto:LTspice%40yahoogroups.com> , "nikkotel" <nikkotel@...> wrote: (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:\Program Files\LTC\...\lib\sym to be able to access the symbol when bringing components. However, when I place that symbol in top level schematic, I get an errorof missing schematic(s) of the hierarchy. If I save the top level schematic at the same folder as the low level, i.e. at e C:\Program Files\LTC\...\lib\sym, there is no error and everything works fine. probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:\Program Files\LTC\...\lib\sym\myblock.asc", however, it didn't work. Hello, You have to save the symbol and the schematic in the folder of your top-level schematic. Now here comes what you missed. You can add a symbol from the folder of your top-level schematic. Therefore open the "Select component" dialog. Then change the folder in "Top Directory" to your schematic folder. Now you see all the components(.asy) in your top-level directory. Best regards, Helmut [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] |
Re: PWL Files and Transient Noise Analysis
(1) Make sure to disable compression of waveform data:
.option plotwinsize=0 (2) LTspice (and all SPICEs) does/do not use a fixed internal time step. The time step varies, as necessary to achieve convergence. You may also need to set a maximum timestep (the fourth parameter in the .TRAN statement). In most other SPICE programs, the first .TRAN parameter is used as the output timestep for the .PRINT statement. LTspice has no .PRINT statement, so the first parameter is ignored. That parameter didn't affect the simulation itself; it only affects the interpolation of the data that was done before printing it in the text output file. (3) On the waveform plot, as a diagnostic aid, turn on "Mark Data Points" to see every time step that LTspice uses and saves to the .raw file. If waveform compression is not disabled, then these points do not necessarily correspond to the ones used within the simulator. Andy |
Re: "Missing schematic(s) of the hierarchy" error
Thanks Helmut, will give it a go. best Kevin
________________________________ From: Helmut <helmutsennewald@...> To: LTspice@... Sent: Wednesday, July 31, 2013 11:06 AM Subject: [LTspice] Re: "Missing schematic(s) of the hierarchy" error ? Hello Kevin, Please take a look to my screenshot. Watch where the mouse pointer is placed to select the directory. Files > Temp > top_directory_section.gif Again the procedure. Press F2, then select the top directory. Best regards, Helmut --- In LTspice@..., Kevin Byrne <kbyrne10@...> wrote:
[Non-text portions of this message have been removed] |
Re: calculation
Hi All
toggle quoted message
Show quoted text
The ubiquitous current mirror given the excellent matching of trannies in an IC. Other wise, you must test / match them well out of the junk box. Al D. On 07/31/2013 02:39 AM, John Woodgate wrote:
What is wrong with the statement? Do you find practical applications --
AC2CL I do not think there is any thrill that can go through the human heart like that felt by the inventor as he sees some creation of the brain unfolding to success... Such emotions make a man forget food, sleep, friends, love, everything. - Nikola Tesla |
PWL Files and Transient Noise Analysis
I am modelling a voltage noise source by defining the noise source with a PWL file. The circuit is very basic (two resistors no L's or C's) and I have setup a transient analysis using the time step equal to the time increment in the PWL file. In doing this, what I am finding is that the transient analysis is somehow modifying the statistics(I'm guessing by integration/interpolation)of the random signal defined in the PWL file. For this reason, I'd like to gain a better understanding of what this transient analysis is doing in this very simple case. For example, are there are time constants implicit to the solver that I should be aware of such that I should not expect to achieve a steady state case until some time "Tsteadystate" even if there are no Ls or Cs in the circuit? Any understanding you can offer would be greatly appreciated.
Best Regards, Chris |
Re: "Missing schematic(s) of the hierarchy" error
Hi Kevin,
I am guessing here, so bear with me. To open the attribute editor of a symbol, hold down Ctrl and Right-Click the mouse. -- ken _____ From: LTspice@... [mailto:LTspice@...] On Behalf Of Kevin Byrne Sent: Wednesday, July 31, 2013 10:20 AM To: LTspice@... Subject: Re: [LTspice] Re: "Missing schematic(s) of the hierarchy" error Helmut I have a question for you along this line if I may. I tried what you said but cannot change any thing at all in Select component dialog box. If I should start another thread just say so but my question is along the same line of this thread. How do I change that line in LTspice. I get nowhere with that dialog box. Best Kevin ________________________________ From: Helmut <helmutsennewald@... <mailto:helmutsennewald%40yahoo.com> To: LTspice@... <mailto:LTspice%40yahoogroups.com> Sent: Tuesday, July 30, 2013 2:23 PM Subject: [LTspice] Re: "Missing schematic(s) of the hierarchy" error --- In LTspice@... <mailto:LTspice%40yahoogroups.com> , "nikkotel" <nikkotel@...> wrote: (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:\Program Files\LTC\...\lib\sym to be able to access the symbol when bringing components. However, when I place that symbol in top level schematic, I get an errorof missing schematic(s) of the hierarchy. If I save the top level schematic at the same folder as the low level, i.e. at e C:\Program Files\LTC\...\lib\sym, there is no error and everything works fine. probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:\Program Files\LTC\...\lib\sym\myblock.asc", however, it didn't work. Hello, You have to save the symbol and the schematic in the folder of your top-level schematic. Now here comes what you missed. You can add a symbol from the folder of your top-level schematic. Therefore open the "Select component" dialog. Then change the folder in "Top Directory" to your schematic folder. Now you see all the components(.asy) in your top-level directory. Best regards, Helmut |
Re: "Missing schematic(s) of the hierarchy" error
Hello Kevin,
toggle quoted message
Show quoted text
Please take a look to my screenshot. Watch where the mouse pointer is placed to select the directory. Files > Temp > top_directory_section.gif Again the procedure. Press F2, then select the top directory. Best regards, Helmut --- In LTspice@..., Kevin Byrne <kbyrne10@...> wrote:
|
Re: "Missing schematic(s) of the hierarchy" error
Helmut I have a question for you along this line if I may. I tried what you said but cannot change any thing at all in Select component dialog box. If I should start another thread just say so but my question is along the same line of this thread. How do I change that line in LTspice. I get nowhere with that dialog box.
Best Kevin ________________________________ From: Helmut <helmutsennewald@...> To: LTspice@... Sent: Tuesday, July 30, 2013 2:23 PM Subject: [LTspice] Re: "Missing schematic(s) of the hierarchy" error ? --- In LTspice@..., "nikkotel" <nikkotel@...> wrote: Hello, You have to save the symbol and the schematic in the folder of your top-level schematic. Now here comes what you missed. You can add a symbol from the folder of your top-level schematic. Therefore open the "Select component" dialog. Then change the folder in "Top Directory" to your schematic folder. Now you see all the components(.asy) in your top-level directory. Best regards, Helmut [Non-text portions of this message have been removed] |
Re: FFT ratios V / I = Z ? (was CSV to PWL)
Hello RL,
toggle quoted message
Show quoted text
Please try my example to see and understand my point. Files > Temp > z_from_FFT_with_noise.asc Run the TRAN simulation. Plot V(z2) and I(V2) FFT of V(z2) and I(V2) with 1048576 points -> plot FFT of V(z2)/FFT of I(V2) Best regards, Helmut --- In LTspice@..., legg@... wrote:
|
Re: FFT ratios V / I = Z ? (was CSV to PWL)
--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
Filter the FFT results? The source is, ideally, uniform in amplitude across the band; so ideally the FFT would be a flat (or at least a straight) line.....What does filtering an FFT output entail? I am looking at a pink noise source that has been prefiltered to include only a decade or two, so a few assumptions can be made about any FFT output registering outside this region. With both V and I being monitored synchronously, there are a hell of a lot of variables being weeded out, but the sample duration is limited and the resolution is fairly course (~8bit 2500 data points per variable). So even if the calculated Z were valid, it'd be a crude approximation at best. I'll post a few plots in temp to show what the results actually look like. The Z in this case is a loudspeaker transducer coil, so it's static characteristics are fairly easily obtainable using a simple swept tone. Given the signal processing capabilities that are falling into our laps with LTspice and even the most modest digital scopes these days, some questions go begging for an answer. I was also concerned about phase relationships and delays, hence the curiosity about the actual spot 'Z' produced by the calculation. If R is known, then the phase could be intuited. If L is independent of temperature, then a new R value could theoretically be winkled. If other things are known, then phantom R/L/C quantities, or functional shifts in the same could also be evaluated. It's probably already standard practice, somewhere, DSP101 or something FAIK. As with any 'new' tool, there are applications that don't jump out at you, or get their own chapter in the manual. Knowing the limits could save some time fiddling about - so a reference or pointer could be worth a thousand words. Doing this again, with a source that had an unpredictable frequency content......could be a very non-invasive sensing method that costs only software, which, as everyone knows, is free......(insert smiley face here). RL |
Re: "Missing schematic(s) of the hierarchy" error
Hello Helmut,
toggle quoted message
Show quoted text
Thank you very much! It works! --- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
|
Re: "Missing schematic(s) of the hierarchy" error
Hello,
toggle quoted message
Show quoted text
I think you missed my point. 1. If you have your designs under C:\Program Files\anywhere, then move it out of this system directory to e.g. C:\mycircuits\.... 2. The symbol of a hierarchical design and its belonging schematic have to be in the folder of the top-level schematic. 3. Open an existing top-level schematic. If you have just started a new schematic, you have to save it into th target folder before you proceed with the next step. 4. Press F2 to get the "Select Component Symbol" dialog window. There is a selection "Top Directoy" in the very top of this window. Here you can select the directory of your symbols between the standard sym-folder and the folder of your design. Select the folder of your design. 5. Now you see all the symbols in your design folder. Select the one you want to add to your schematic. 6. You can open the hierarchical schematic by right-clicking on the placed symbol in the schematic. You should always open it this way when you want probe in this lower level schematic. That's it. Everybody who reads this here and haven't used hierarchical schematics so far can exercise it with my example. Files > Examples > Educational > Hierarchical Schematic (preamp) Just copy all fies into a new directory on your PC. Best regards, Helmut --- In LTspice@..., "nikkotel" <nikkotel@...> wrote:
|
to navigate to use esc to dismiss