LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter string data in an array faster.

Solved!
Go to solution

hi,

i have attached actual vi kindly go through that and suggest me for the same.

0 Kudos
Message 11 of 14
(1,081 Views)

I did some tests, a combination of "Search/Split String" as already suggested by me earlier and a case structure that calls the "remove white-space" only in case of a match is the fastest I found so far.

 

EDIT: Match Pattern and/or Match regular expression should always be slower than "Split String", as long as you are looking for the exact match at the beginning of a string.

 

Regards, Jens

 

Kudos are welcome...
0 Kudos
Message 12 of 14
(1,065 Views)

FilterStrings.png

I'm assuming that there are no StringName:string element with no preceding Option element. In this case, when you find a StringName you can jump two places foreword.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 13 of 14
(1,061 Views)

Thank you for your suggestion .. hope it may use full for me.

0 Kudos
Message 14 of 14
(1,059 Views)