2 Signals THD format - diyAudio
Go Back   Home > Forums > Amplifiers > Solid State
Home Forums Rules Articles diyAudio Store Gallery Wiki Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Solid State Talk all about solid state amplification.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Thread Tools Search this Thread
Old 25th August 2011, 03:38 AM   #1
hashizo is offline hashizo  Japan
diyAudio Member
Join Date: Aug 2011
Default 2 Signals THD format


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.
  Reply With Quote
Old 25th August 2011, 04:46 AM   #2
diyAudio Member
Join Date: Feb 2008
Location: Denver, CO
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.
Audio Perfection
  Reply With Quote
Old 25th August 2011, 05:24 AM   #3
jcx is offline jcx  United States
diyAudio Member
Join Date: Feb 2003
Location: ..
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 Spice simulation

Last edited by jcx; 25th August 2011 at 05:29 AM.
  Reply With Quote
Old 25th August 2011, 07:11 AM   #4
hashizo is offline hashizo  Japan
diyAudio Member
Join Date: Aug 2011
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.
Attached Images
File Type: png outp-outnTHD.png (88.6 KB, 63 views)
  Reply With Quote
Old 25th August 2011, 01:19 PM   #5
jcx is offline jcx  United States
diyAudio Member
Join Date: Feb 2003
Location: ..
the 2 nodes that you are differencing have to be inside one V(), separated by a comma


.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
  Reply With Quote
Old 26th August 2011, 12:41 AM   #6
hashizo is offline hashizo  Japan
diyAudio Member
Join Date: Aug 2011
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.
  Reply With Quote


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Make Test Signals in WAV format d1camero Digital Source 15 23rd August 2010 04:44 PM
OT: how can I measure THD of my amplifier if my sound card is 0,02% THD ? ygg-it Solid State 1 13th June 2010 07:54 AM
hi LTspice about!!! nicholas1113 Software Tools 0 15th November 2009 07:51 AM
Mixed signals??? genmin Car Audio 4 12th February 2009 06:58 PM
Degaussing signals fmak Parts 2 29th April 2006 03:47 PM

New To Site? Need Help?

All times are GMT. The time now is 02:05 AM.

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

Content Relevant URLs by vBSEO 3.3.2