LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I calculate SNR of a sound signal by FFT function of LabWINDOWS?

I can calculate THD of a sound signal through some functions of LabWINDOWS,but SNR?Are there some functions that is useful to calculate SNR in LabWINDOWS?
0 Kudos
Message 1 of 2
(3,639 Views)
Hello,

To compute SNR in LabWindows/CVI, you can use it's equation. The CVI code for the equation would look like the following:

RMS (VS_Array, VS_Elements, &VSrms);
RMS (VN_Array, VN_Elements, &VNrms);
SNR = 10*log10 (VSrms/VNrms);

I hope it helps,
Rajiv
0 Kudos
Message 2 of 2
(3,639 Views)