08-30-2012 11:17 AM
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
08-30-2012 08:44 PM
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.
08-31-2012 08:52 AM
Thanks for your answer.
I need to do this while I am acquiring the data, which is already digital.
Carola
08-31-2012 09:33 AM
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.
08-31-2012 09:44 AM
Thank you very much! ...but I cannot open it, I have the LabVIEW version 10.0.
08-31-2012 10:06 AM
Here is the same VI saved for 2010.
08-31-2012 12:07 PM
It is working! thanks a lot!
Carola