Crtomir
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Crtomir
-
-
Hello,
I have created code to filter a signal and calculate its peaks. The code is doing perfectly good until..... the signal frequency gets lower (about 10 Hz).
The problem is as shown in Peak detector VI. My code needs to execute under 100 ms. Because Peak detector VI takes to much time at low frequency, my program fails.
My thinking: Peak detector does a quadratic fit on the points (maybe here hides the time problem ?). I already did FIR filtering, so quadratic fit is not needed?
I have added the code for you all to test and use it if you want (try changing frequency at the top of graph and look at how calculation takes more time).
Please comment on what i created and if there are some FASTER peak calculation alternatives... for us all to use.
PS: you are looking at a test. This is not my program arhitecture (queued state machine)
Thank you
Peak detector VI Analization with code
in LabVIEW General
Posted
I added continuous decimation and already at decimating factor = 2 the speed is 3x faster ! So execution problem is solved
Thank you, your answer is excellent.
Still i'm curious to know. Would you as an expert, do the same peak detection and filtering as i did?
forum question peak finder with decimate.vi