08-03-2011 04:04 AM
When I use peak detection, I could find the peaks but I couldnt get valleys.
08-03-2011 07:05 AM
Hello,
Peak detector VI have few parameters, which can be modified:
- peak/valleys - you choose what you want to detect
- threshold - instructs the VI to ignore peaks under certain level of ignore valleys above certain level
- width - number of samples taken into consideration of local peak/valleys
I think that in your valley detection it is setted threshold to 0 as default - meaning all the valleys above 0 will be ignored.
I also recommend you to raise the width of both detection, because I can see at the peak detection graph there are some unwanted "peaks" - this way you will increase the range of samples in which you search for local extremes.
For more information about Peak detector VI please see LabVIEW help. There are all the information you need to fully understand this VI.
Regards,
Gregor Cerne