Maker Pro
Maker Pro

LTspice FFT Phase

G

George

Jan 1, 1970
0
I admit I'm not a seasoned LTspice user, but after looking at FFT,
available in the plot window, I have concluded that it only provides
magnitude data, not phase data. At least I couldn't find phase data.
Can anyone confirm this? If this is true, is there anyway to get both
magnituide and phase in LTspice? I'm using wav data as input in
transient analysis, so ac analysis won't be helpful. Matlab allows input
of stereo wav data and can calculate mag and phase with FFT. Just
wondering if I could get LTspice to do the same <smile>.

Thanks,

George
 
H

Helmut Sennewald

Jan 1, 1970
0
George said:
I admit I'm not a seasoned LTspice user, but after looking at FFT,
available in the plot window, I have concluded that it only provides
magnitude data, not phase data. At least I couldn't find phase data.
Can anyone confirm this? If this is true, is there anyway to get both
magnituide and phase in LTspice? I'm using wav data as input in
transient analysis, so ac analysis won't be helpful. Matlab allows input
of stereo wav data and can calculate mag and phase with FFT. Just
wondering if I could get LTspice to do the same <smile>.

Hello George,
indeed I was surprised too, that I couldn't see the phase in my FFT-plot,
but then I found the way to make it visible.

I assume your FFT-window is the active window.
Move the cursor onto the right side of the graph where you probably
don't see a scale. Normally this is the phase axis in a .AC simulation.
Now your cursor will look like a ruler.
Then press the left mouse button. You will get the box to show the phase.
Just press OK. That's it.

Best Regards,
Helmut
 
L

ldg

Jan 1, 1970
0
I admit I'm not a seasoned LTspice user, but after looking at FFT,
available in the plot window, I have concluded that it only provides
magnitude data, not phase data. At least I couldn't find phase data.
Can anyone confirm this? If this is true, is there anyway to get both
magnituide and phase in LTspice? I'm using wav data as input in
transient analysis, so ac analysis won't be helpful. Matlab allows input
of stereo wav data and can calculate mag and phase with FFT. Just
wondering if I could get LTspice to do the same <smile>.

Thanks,

George

Phase data can be seen in the Ltspice fft when you do a measurement.
Both magnitude and phase are shown in the little box. So it's there.

Perhaps others can tell you if phase can actually be plotted with the
software.

Regards,
Larry
 
G

George

Jan 1, 1970
0
Thanks for the help, here in this group and in private e-mails. Yes the
phase info is there and can be plotted too. It appears to be wrapped but I
think suitable waveform manipulation can unwrap it. Click on right side of
FFT plot to access it as others have said.

I'm wondering now if the FFT data can be saved and manipulated. For example
it would be nice to take ratio FFT(output) / FFT(input) to find transfer
function from stereo wav data. But that may be too much to ask <grin>.

George
 
A

analog

Jan 1, 1970
0
George said:
Thanks for the help, here in this group and in private e-mails.
Yes the phase info is there and can be plotted too. It appears to
be wrapped but I think suitable waveform manipulation can unwrap it.
Click on right side of FFT plot to access it as others have said.

I'm wondering now if the FFT data can be saved and manipulated.
For example it would be nice to take ratio FFT(output) / FFT(input)
to find transfer function from stereo wav data. But that may be
too much to ask <grin>.

When the FFT window is open and active, use the Export option from
the File drop down menu to save the entire data set in ascii tabular
format. Then use Excel or some other suitable program to calculate
and plot the ratio.

If both input and output data sets are available in LTspice, don't
bother with the above and just use LTspice's built in waveform math
to do the calculations all from within LTspice. -- analog
 
Top