diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Solid State (http://www.diyaudio.com/forums/solid-state/)
-   -   2 Signals THD format (http://www.diyaudio.com/forums/solid-state/195284-2-signals-thd-format.html)

hashizo 25th August 2011 04:38 AM

2 Signals THD format
 
Hello

Do you know the format when THD of the v(outp)-v(outn) signal is done in LT Spice Simulation?
ex. .four 5k 3 3 [v(outp)-V(outn)] <= A left format was not computable.

My best regards.

Eugene Dvoskin 25th August 2011 05:46 AM

I'm not sure that you can use use difference in the form v(outp)-V(outn).
You can use v(outp) or V(outn) as a single node, where you want to measure distortions. Try to use just single node and if it will work, you may use dependent voltage source to compute the difference and measure >FOUR at it's output. Also, .FOUR works only in transient analysis.

jcx 25th August 2011 06:24 AM

you can just clik & hold, the red cursor selects the node as usual, then turns black as you hold and drag and you can place it on the 2nd node, then release the L clik to get the difference

gives V(a,b) syntax, can be used as arg in .four - if you really must but the THD # isn't that helpful - looking at fft is much better, can do IMD for even more informative fft picture

or try my fundamental null circuit to get the distortion residual waveform http://www.diyaudio.com/forums/softw...ml#post1333137

hashizo 25th August 2011 08:11 AM

1 Attachment(s)
Thank you for the report.

The image is appended for the explanation.

There are two amplifiers.
Each output is OUTP(Green) and OUTN(Blue).
This is connected with the plus and the minus of the speaker.

Individual THD can be confirmed.

.option plotwinsize=0
.tran 1m
.four 5k 5 5 v(out) v(outn)

However, THD when making it to OUTP-OUTN(Red) cannot be confirmed.
Cannot this calculation be done with LT-Spice?

When my idea is wrong, I'm sorry.

jcx 25th August 2011 02:19 PM

the 2 nodes that you are differencing have to be inside one V(), separated by a comma

try:

.four 5k 5 5 v(outp,outn)

you will proably get poor results in fft noise floor if you don't specify a Tmaxstep small enough to give > 10e4 points per cycle, ~ 20n

hashizo 26th August 2011 01:41 AM

Thanks jcx for your kind help.
My doubt was solved.
And, we wish to express our gratitude for cooperation of everybody.
Thank you again for the end.:)


All times are GMT. The time now is 07:09 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio


Content Relevant URLs by vBSEO 3.3.2