LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse detect using Advanced Analysis Library

I'm having trouble with the Pulse Detect.  For an essentially flat-line input, it is returning peaks with extraordinarily high numbers (ie, exponents to -317).  Yet, with test data generated just before the call, it works fine and detects peaks / valleys.
 
Does someone have example code for this?
0 Kudos
Message 1 of 4
(3,334 Views)
If the exponent is really minus 317, that is a very small number (317 decimal places past the 1s).  Are you really getting -317?
0 Kudos
Message 2 of 4
(3,329 Views)
Yes, that is a small number ( I know what it means ). 

What I was asking was for some example code for using this library function, preferably with code that shows addressing the array.
0 Kudos
Message 3 of 4
(3,326 Views)
Hello PC Programmer,

I would suggest taking a look at the following Application Note: Peak Detection Using LabVIEW and Measurement Studio since the same applies to CVI.  In particular, you might find the Features of the Peak Detector Functions useful.  If you are looking for an example program that uses the PeakDetector() function, please take a look at \samples\analysis\phasedif.prj.  Hope that helps.

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 4
(3,286 Views)