I try to compare signal that I acquire in real-time with NI USB 6008 to the threshold. I would that the programm detect all points that are high than the threshold (independing on the sample frequency) and stock in array the value of this points and their time of detection. After, I would add counter to count the times where the signal was high than the threshold.
I tried to use threshlod.vi but it doesn't work correctly. This is my programm for acquisition signal and for peak detector. But for comparator and counter i don't know how to do.