Hi,
Please check out the following document for more information on SFDR.
http://digital.ni.com/public.nsf/websearch/7C77898F35A951E086256BF100686FED?OpenDocument
Also, I am attaching a vi where I generate a sine wave, add noise to it to get a noisy signal, take the power spectrum and find the maximum amplitude, apply a bandstop filter to remove the principal frequency component from the original noisy signal, again compute the power spectrum and find the maximum amplitude. SFDR is the difference between the two amplitudes.
Though this vi is a good starting point, you might want to build on it to improve the functionality. For example, you can take average of several power spectrums and then calculate the SFDR.
Regards,
Ankita A.
Applications
Engineer
National Instruments