10-29-2017 11:31 PM
Dear all ,
kindly go through the attached file and let me know is there any alternate solution other than attached one to filter data as faster as possible. because i have 20000 lines to filter so its taking more time,please do suggest.
Thanks in advance
Solved! Go to Solution.
10-30-2017 02:49 AM
Hi muniraj,
it really would help to answer your question if you would provide some meaningful example data and explain the kind of filtering you want to apply…
How long does it take with your VI to actually do the filtering of your 20k lines of text?
10-30-2017 03:08 AM
Two changes you can do:
- use Match Regular Expression instead of Match Pattern: prepending a ^ to Expected Type, you will only get a match when Expected Type is at the beginning of the input string (you spare the comparison with a+bb).
- only drop the colon when needed: enclose this code in a Case Structure
There may be other suggestions but, as GerdW pointed out, we need to know what's the logic behind the code: it looks odd that you need to process every pair of subsequent strings (0,1),(1,2),(2,3)... instead of (0,1),(2,3),(4,5)... which is at a first glance more natural.
10-30-2017 03:11 AM
Maybe you can reorder the Data array so that data of the same type can be found in consecutive indexes and you can stop the search operation suddenly if the type is "higher" than the Expected Type
10-30-2017 03:28 AM
I assume that you that you want to check if the beginning of each string matches the "Expected Type" string. Then try this one:
Your usage of "Index Array" suggests that only every second element of "Data" has to be tested. Is that correct?
Regards, Jens
10-30-2017 03:38 AM - edited 10-30-2017 03:47 AM
10-30-2017 03:47 AM
Dear all kindly refer the following attached file which I'm expecting.
Thanks in advance
10-30-2017 03:50 AM
Hi
Please find attached for my expectations.
10-30-2017 04:04 AM
Please attach the actual VI containing these as default values. Do you really expect us to read and type characters from a picture???
10-30-2017 04:13 AM