03-09-2017 11:51 AM
Hello,
I am trying to detect the threshold of a real time signal (png file of signal attached).
But, the problem what I am facing is no "count" output.
I am not able to figure out what may be going wrong.
I am attaching both the signal png and the VI.
Thanks.
Anupam
Solved! Go to Solution.
03-09-2017 12:17 PM
Well, its actually rather simple. Replace the Threshold Detector.vi with a pt-by-pt Threshold detector! Signal operation>>pt-by-pt>> Signal operation pt-by-pt> Threshold Detector pt-by-pt.vi
Then get rid of the from DDT that confused the heck out of you (it is outputting an array of one scalar value ! That makes it REALLY hard to find a instance of 40 consecutive points above threshold in the one element array) The pt-by-pt version "Remembers" each point and operates on the whole history.
03-09-2017 12:17 PM
Hi anupam,
I am not able to figure out what may be going wrong.
The problem is the "FromDDT" function you use without any sense…
You use it to convert a single sample into an 1D array of samples (why not use BuildArray instead)?
And why do you create an array this way? Which kind of counts do you expect when you feed the ThresholdDetector with an array containing just one single sample???
Solution: Collect your samples in an array using a shift register with a BuildArray function…
03-09-2017 08:52 PM
Thanks a ton.
It worked !