I'm looking for some ideas on the best way to modify (or create a routine around it) the attached THD.vi. What I want to do is start with a frequency that's entered by the user, measure THD, save the plotted value so that it can be graphed, increase the frequency a small amount, take the measurement again until the THD hits a threshold set by the user. (Say 2%)
Once it hits this upper range, it goes back to the starting frequency that the user entered and does the same routine until it hits 2% THD on the low end.
Any help on this would be greatly appreciated!