BaffleChallenged

Members
  • Content count

    5
  • Joined

  • Last visited

  • Days Won

    2

BaffleChallenged last won the day on September 15

BaffleChallenged had the most liked content!

About BaffleChallenged

  • Rank
    Newbie
  1. Using script with Spectrum on AD2

    There were errors in the files I posted in an earlier post, mostly got confused and used THD+N everywhere. The math is probably ok, if anyone spot a fault, please let me know. Also take note that you need to setup your Waveform environment correctly, look at Attila post above to get a visual clue of what you need to enable. Otherwise there are going to be errors while running the script. I did not have time to have a shot at measuring IMD, still more to come. In hope that it is useful, here are some corrected files. THD_vs_Freq_%.dwf3script DummyLoad_2.pdf instructions.txt DummyLoad.dch Amplificateur_mesure.ods THD_vs_Power.dwf3script
  2. Using script with Spectrum on AD2

    Hi tomtektest, I do follow your YouTube channel, I personnaly did not do any video. I do posses a digital photo camera and a tripod, but no editing software. (also note that English is not my primary language) My interest in audio measurement is sparked from my experiment in amplifier design and build. This script is just one piece of the puzzle. I still miss THD vs power, but that will be trivial to build from the THD vs Freq above, just a few changes i presume. I do follow a certain sequence, mostly due to setup constraints, and collect information in a spread sheet. This is still messy at present, it is a work in progress. If I come with something manageable, perhaps I could make the content puplicly available (spreadsheet, scripts, instructions on setting up and performing measurements). If you review this content and think it makes senses, perhaps you could do a video on it. Regards,
  3. Using script with Spectrum on AD2

    here is another version of the script i am working on, it does both channel it does scale the frequencies logarithmically it does the averaging if trace 1 type allows count to be enabled. it saves to a desktor CSV file for data manipulation in a speadsheet. I made some modifications to the spreadsheet I use in hope it will be more generic and useful to others. I also wrote some short instructions on how to proceed, but I am afraid it won't be clear for beginners. I also made a drawing of dummy load and possible attenuator for interconnection with the Analog Discovery. I thd1watt.bmp there were errors in the files, new files will be posted in an other post.
  4. Using script with Spectrum on AD2

    Hi, i modified attila script slightly so that the thd values are in % and the range is in the usual audio band. Hope it could be useful for others. function doTHD(){ var rgTHD = [] var rgFreq = [] for(var idx = 20; idx <= 20000; idx+=19980/30){ Wavegen1.Channel1.Simple.Frequency.value = idx Wavegen1.run() // start AWG wait(0.01) // settle time for the external circuit, expressed in seconds Spectrum1.Frequency.Stop.value = 20*Wavegen1.Channel1.Simple.Frequency.value // adjust analyzer stopfrequency Spectrum1.single() // start acquisition if(!Spectrum1.wait()){ // wait to finish return; } rgFreq.push(Spectrum1.Trace1.measureFreq("FF")) rgTHD.push(100*Math.pow(10,Spectrum1.Trace1.measure("THD")/20)) } Wavegen1.stop() print(rgFreq, rgTHD) // print data for copy paste // draw in plot1, View / Add plot plot1.X.Units.text = "Hz" plot1.Y1.Units.text = "%" plot1.X.data = rgFreq plot1.Y1.data = rgTHD } doTHD();
  5. Using script with Spectrum on AD2

    My question is for attila, I tried your script, and it appears to work, but... I chose linear db average with a count of 10 for the spectrum traces, but your script behaves like in sample mode, it takes the first reading only. Is there a way to modify the wait sequence so that the spectrum does the 10 measurement and averaging?