10-13-2023 02:19 AM
Thank you for your continued support. This time, it would be helpful if you could tell me how to delete unnecessary frequencies after FFT analysis. The attached graph shows two types of FFT (red line and white line), each representing three frequency regions. For example, how can I delete one of the three locations and display the graph at the end?
10-13-2023 02:41 AM - edited 10-13-2023 02:46 AM
Hi kozuka,
@kozuka32 wrote:
Thank you for your continued support. This time, it would be helpful if you could tell me how to delete unnecessary frequencies after FFT analysis. The attached graph shows two types of FFT (red line and white line), each representing three frequency regions. For example, how can I delete one of the three locations and display the graph at the end?
By using even more ExpressVIs… (Just joking!)
Seriously: try to avoid ExpressVIs when you want to learn to write good & readable code! Right now all the settings are hidden in configuration dialogs, with a lot of garbled text because you don't an English environment:
"Deleting three locations" in a plot typically is just to replace the correspondig sample data by NaN using ReplaceArraySubset on the plot data. This becomes very easy once you get rid of ExpressVIs and their DDT wires!
10-13-2023 10:15 AM - edited 10-13-2023 10:22 AM
Your data never changes, so your while loop seems unnecessary because the result will never change. Why is it there and why do you want to spin it as fast as the computer allows, burning 100% of a CPU core??
So you apparently want to remove one of the frequency components. but what graph result do you want (the waveforms missing that frequency? The FFT graph missing that peak? Both?) How does the user tell the code which component to remove?
Also be aware that just knowing the frequency and magnitude is insufficient to remove a given frequency component from a signal. You also need to know the phase, of course.
10-15-2023 10:28 PM
Dear GerdW
I'm sorry to reply late. Thank you for always giving me accurate advice. I haven't tried it yet, but if i am not sure, please email me again.
10-15-2023 10:35 PM
Please ask additional questions.
For example, how can I check the program to instruct it to set the 10Hz and 100Hz parts to 0 in the attached photo?