LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Threshold peak detector for digital data

Hi,
I have a graph that shows me the digital input, 0’s and 1’s, I am getting across time.
Now I want to select data and just take for example consecutives 1’s that have been detected for at least 3 seconds. I found a function that can do that: the Threshold Peak Detector VI, but this is for analog data, isn’t it? Can anyone tell me if there is a function that can do what I need and it is working for digital data?
Thanks in advance,
Carola

0 Kudos
Message 1 of 7
(2,886 Views)

Has all the data been acquired when you want to find the sequence or do you need to do this as data is acquired?  If all the data has been acquired, you could try using the Search for Digital Pattern VI to look for a rising edge (0 to 1 transition) followed by three seconds worth of 1's.  This would require converting the data to a digital waveform or digital data if it isn't already, but that's easy to do.

 

0 Kudos
Message 2 of 7
(2,871 Views)

Thanks for your answer.

I need to do this while I am acquiring the data, which is already digital.

Carola

0 Kudos
Message 3 of 7
(2,861 Views)

If you need to detect it as the data is being acquired, take a look at the attached VI for a possible technique.  You can replace the switch with your acquisition, remove the delay, and replace the LED with whatever you need to do when the event is detected.

0 Kudos
Message 4 of 7
(2,854 Views)

Thank you very much! ...but I cannot open it, I have the LabVIEW version 10.0.

0 Kudos
Message 5 of 7
(2,852 Views)

Here is the same VI saved for 2010.

0 Kudos
Message 6 of 7
(2,847 Views)

It is working! thanks a lot!

 

Carola

0 Kudos
Message 7 of 7
(2,841 Views)