¿ªÔÆÌåÓý

Date

Re: Shot Noise Contributions From DC Currents

 

--- In LTspice@..., "odarren" <odarren@...> wrote:

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

Hello Darren,

We had this discussion a very few month ago. The outcome has
been examples from "bordodynov" and "reinhold_pieper".

Files > Tut > noisegen_with_subcircuits > resistor with 1_f noise



The discussion started with message 66276.
"Modell for a real Thick Film Resistor (with 1/f noise)"
It's about extra noise of thick film resistors.
Please read this discussion.

Best regards,
Helmut


Re: Shot Noise Contributions From DC Currents

 

On Thu, 01 Aug 2013 21:53:23 -0000, you wrote:

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?
You will see shot noise where there is no long range
correlation of charges, where the charges act independently,
such as across a PN junction. You will not see it in wires or
simple resistors.

Jon


Re: Shot Noise Contributions From DC Currents

 

In a conductor(resistor) the electron wavefunctions
overlap, so that charge/current is not quantized.
There is no shot noise from a resistor.
?
--Mike


________________________________
From: odarren <odarren@...>
To: LTspice@...
Sent: Thursday, August 1, 2013 2:53 PM
Subject: [LTspice] 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




[Non-text portions of this message have been removed]


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.

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:

Hello RL,

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:





--- In LTspice@..., "Helmut" <helmutsennewald@> wrote:



--- In LTspice@..., legg@ wrote:

Given a plot of a pink or white noise voltage, and a synchronized plot of the current induced in a partially reactive load -

Will the 'normalized' ratio of the FFT plots be an indication of Z?

I'm looking at the low frequency end of the FFT, to avoid sampling issues. By normalized, I mean that 1 volt would produce 1 amp with both plots resolving to 0dB at the minimum sampled frequency (the load being partially inductive in this example).

It seems much too simple......

RL
Hello RL,

It will only work when you filter the FFT-output, but the
the FFT-results can't be filtered in LTspice. Thus you have
to export the FFT-data and process them in an external program.
This method only work with a linear system and it's precision
may be somewhat limited due to group delay variation.

Best regards,
Helmut
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: PWL Files and Transient Noise Analysis

 

Many thanks Helmut.

--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:



--- In LTspice@..., "beaudoin.christopher" <beaudoin.christopher@> wrote:

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

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: PWL Files and Transient Noise Analysis

 

--- In LTspice@..., "beaudoin.christopher" <beaudoin.christopher@...> wrote:

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

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...

--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:



--- In LTspice@..., "bcapaldo" <bcapaldo@> wrote:



Maybe this question was already asked but I cannot find an
example, but is it possible to generate a signal like
A/t + t/B where A and B are two generic constant and t
is the simulation time?
thanks
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: simulation time function

 

--- In LTspice@..., "bcapaldo" <bcapaldo@...> wrote:



Maybe this question was already asked but I cannot find an
example, but is it possible to generate a signal like
A/t + t/B where A and B are two generic constant and t
is the simulation time?
thanks
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:

I'm trying to work hierarchically, so I created a low level schematic
(myblock.asc), created a symbol (myblock.asy) for that schematic, and saved
both of them at C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym to be able to access the
symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error
of 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:&#92;Program
Files&#92;LTC&#92;...&#92;lib&#92;sym, there is no error and everything works fine.

However, I'd like to save my top level schematic at another folder, so I
probably need to point LTSPICE to low level schematic location... I tried to
place a SPICE directive ".include C:&#92;Program
Files&#92;LTC&#92;...&#92;lib&#92;sym&#92;myblock.asc", however, it didn't work.

Please advise
Thanks a lot
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]


simulation time function

 

Maybe this question was already asked but I cannot find an example, but is it possible to generate a signal like A/t + t/B where A and B are two generic constant and t is the simulation time?
thanks


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:

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:

I'm trying to work hierarchically, so I created a low level schematic (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym to be able to access the symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error of 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:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym, there is no error and everything works fine.

However, I'd like to save my top level schematic at another folder, so I probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym&#92;myblock.asc", however, it didn't work.

Please advise
Thanks a lot
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: calculation

 

Hi All

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
where a fixed DC voltage is applied, in the conducting direction,
between base and emitter of a bipolar transistor?
--


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:

I'm trying to work hierarchically, so I created a low level schematic
(myblock.asc), created a symbol (myblock.asy) for that schematic, and saved
both of them at C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym to be able to access the
symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error
of 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:&#92;Program
Files&#92;LTC&#92;...&#92;lib&#92;sym, there is no error and everything works fine.

However, I'd like to save my top level schematic at another folder, so I
probably need to point LTSPICE to low level schematic location... I tried to
place a SPICE directive ".include C:&#92;Program
Files&#92;LTC&#92;...&#92;lib&#92;sym&#92;myblock.asc", however, it didn't work.

Please advise
Thanks a lot
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,

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:

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:

I'm trying to work hierarchically, so I created a low level schematic (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym to be able to access the symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error of 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:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym, there is no error and everything works fine.

However, I'd like to save my top level schematic at another folder, so I probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym&#92;myblock.asc", however, it didn't work.

Please advise
Thanks a lot
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

 

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:

I'm trying to work hierarchically, so I created a low level schematic (myblock.asc), created a symbol (myblock.asy) for that schematic, and saved both of them at C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym to be able to access the symbol when bringing components.
However, when I place that symbol in top level schematic, I get an error of 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:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym, there is no error and everything works fine.

However, I'd like to save my top level schematic at another folder, so I probably need to point LTSPICE to low level schematic location... I tried to place a SPICE directive ".include C:&#92;Program Files&#92;LTC&#92;...&#92;lib&#92;sym&#92;myblock.asc", however, it didn't work.

Please advise
Thanks a lot
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,

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:





--- In LTspice@..., "Helmut" <helmutsennewald@> wrote:



--- In LTspice@..., legg@ wrote:

Given a plot of a pink or white noise voltage, and a synchronized plot of the current induced in a partially reactive load -

Will the 'normalized' ratio of the FFT plots be an indication of Z?

I'm looking at the low frequency end of the FFT, to avoid sampling issues. By normalized, I mean that 1 volt would produce 1 amp with both plots resolving to 0dB at the minimum sampled frequency (the load being partially inductive in this example).

It seems much too simple......

RL
Hello RL,

It will only work when you filter the FFT-output, but the
the FFT-results can't be filtered in LTspice. Thus you have
to export the FFT-data and process them in an external program.
This method only work with a linear system and it's precision
may be somewhat limited due to group delay variation.

Best regards,
Helmut
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