04-22-2010 01:00 PM - edited 04-22-2010 01:01 PM
Hey all,
I made a tremendous amount of progress in revising and editing the VIs I was tasked to overhaul. They are now more powerful and leaner than previous versions. However, there are still a few 'bugs" and issues that remain. The most pressing issue is one I will describe below and I will post PNG picture files to help you help me. Due to confidentiality reasons, I am not able to post the entire VI at this time. However, I can describe as clearly as possible the issues we are having.
Now, the three pics I posted below will have some overlap between them in terms of which individual sample load is shown in each pic. The overlap is necessary to clearly illustrate my points. What is shown is a sample run of 6 sample loads (that was all that was needed to show this issue we are having). In each waveform graph, there are two plots shown: the Green plot is the raw signal, the Red plot is the 100Hz Lowpassed filtered data. The cursors are tracking the peaks in the Red 100Hz filtered plot. Specifically, please pay attention to the Yellow horizontal cursor and the second peak (not counting the inrush spike). For some reason, the vertical bar for each cursor isn't showing up, but that is another minor bug. The indicators on the right of the graphs show those respective peaks' magnitudes and their X-axis time (milliseconds) locations from the 100Hz Red Plot.
![]()
It seems like the VI has more trouble with smooth/nearly constant resistance to sample loading scenarios versus near jam, semi jammed scenarios..... Why would that possibly be? The windowing in terms of X axis offsets is obviously the same for each curve and it can't possibly change during runtime... Why would all of the second peaks be detected normally for normal load curves (Graph 1), but then not be correct in curves that look like Graphs 3 and 4????? What could possibly be causing the displayed time of max returns for those abnormal load curves to be exactly the same????
Anyway, anyone who may have any suggestions or ideas for what I should check/change, please reply. I would certainly appreciate it as our resources here cannot seem to figure it out.
Thanks!
04-22-2010 03:11 PM
I am not familiar with the Waveform Statistics Express.vi. I have a Statistics Express.vi in my palette, but it does not have any peak detection funcationality in it - in any event, I have not used this express vi and can't offer any input on buggy-ness.
I have used the peak detector.vi and threshold detector.vi's (Signal Processing...Signal Operation palette) with good luck on a variety of signals where I need to find local maxima and minima, or edges. You may want to try one of these vi's and tune them to your data to see if you get more accurate peak detection. There are inputs on the vi's that will allow you to tune the behavior of the algorithm to your data. If you would like to upload a waveform file with some troublesome data, I could take a look at it and see if I can detect the peaks you are looking for.
-cb