From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-28-2012 06:55 AM
Hey guys,
i was looking for FFT function that has resolution input as an option to select.(200Hz)
The resolution (Hz) in an FFT result is R = Fs / N, where Fs is the sample rate (samples / sec) and N is the number of samples in the block. so i put an indicator to manually select the sampling frequency, and an indicator to manually set the number of samples, then divide them and get the resolution.
m confused i just need to select the resolution of the signal to be fed to the FFT function...
hope i made it clear.
any suggestions guys ?
08-28-2012 07:53 AM
Hi Bill,
your Fs is given by your signal acquisition routine, N is given by the blocksize of data you fed into the FFT routine. Either change your DAQ to use other Fs or collect data to change the blocksize N.
No other inputs to a FFT are required...
08-28-2012 07:55 AM
Biil David,
If you need N to be larger than the amount of data you have available, pad the data with zeros to the desired length.
Lynn
08-28-2012 08:12 AM
DAQ is not my case . m jusr reading from a serial port . the attached image shows that i am doing BUTTERWORTH filter with sampling frequency that i can adjust, as well as higher and lower cutoff frequency.
after filtering the ECG signal ,i wired my signal to a peak detect function found in the biomedical toolkit, to display peaks and graph it .
i just need to do a FFT to make peaks look clear. so i thought to determine the resolution of the signal to be fed to some function then feed it to FFT function...
hope m not misunderstanding.
regards.
08-28-2012 08:16 AM
sorry forgot to attach the image
08-28-2012 08:17 AM
08-28-2012 08:23 AM
HI GerdW
the sampling frequency of the ECG signal should be at least 500Hz, but i decided to control it manually , i can put it 1000 for some purposes... and i am not using DAQ i am reading from a serial port.
thank you .
08-28-2012 09:42 AM
You don't understand the basics. You absolutely do have a DAQ. You already said you did. The A/D is part of your micro. You set the sample rate for that and if you don't know it, find the person that wrote the micro code for you.
08-28-2012 11:19 AM
Dear Dennis_Knutson
with all my respect dear friend but i do not have time to convince you sir that i wrote the code or someone else did .
anyway here i attached you the code . you can see that i only selected the baude rate (signaling rate , speed ) to be 19200.
where is the sampling rate here ?
Regards.
08-28-2012 11:22 AM
Dear Dennis_Knutson
with all my respect dear friend but i do not have time to convince you sir that i wrote the code or someone else did .
anyway here i attached you the code . you can see that i only selected the baude rate (signaling rate , speed ) to be 19200.
where is the sampling rate here ?
Regards.