LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract number from array?

I'd like to extract some number from an array.For instance,there is an array {5,0,21,3,1,2,3,71,36},labview is expected to check if there is consecutive number in it.If is,the number before the first of the consecutive number and the one just after the last of the consecutive number are extracted,then they are put into another array. If not,nothing is done.In this array,1,2,3 are consecutive,then the number 3 and 71 will be put into another array.
I thought about it for a long time but nothing came out.I am really at a loss now.Any help will be appreciated.An uploaded vi would be better.Thanks so much!!
0 Kudos
Message 1 of 4
(3,480 Views)
this may jus help you to get started... pls debug for error possible. You can have better solution.

(and you got to figure out yourself of how it works 😛 as I was jus simply wire them up unitl it works 😛 )

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 2 of 4
(3,480 Views)
thank you so much!
0 Kudos
Message 3 of 4
(3,480 Views)
don't mention 🙂
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 4
(3,480 Views)