05-08-2019 07:56 AM
Hi
I would like to know what is the most efficient way (in terms of execution speed) to extract the red highlighted numeric values from this string output:
1536x1103 0.83X 32-bit RGB image 85,85,85 (748,668)->(844,859) [213.77,296.68°].
I have attached a sample vi. Is this an efficient way to code it (in terms of execution speed)?
- Sable
Solved! Go to Solution.
05-08-2019 07:56 AM
Hi
I would like to know what is the most efficient way (in terms of execution speed) to extract the red highlighted numeric values from this string output:
1536x1103 0.83X 32-bit RGB image 85,85,85 (748,668)->(844,859) [213.77,296.68°].
I have attached a sample vi. Is this an efficient way to code it (in terms of execution speed)?
- Sable
05-08-2019 08:17 AM
I think the Search/Split String is supposed to be a little more efficient than Match Pattern as it uses a much simpler search algorithm (byte search instead of regular expression). Otherwise, you have exactly what I would do.
05-08-2019 01:13 PM
You only actually need one space in your format string. This will detect 0 or more white spaces (spaces, tab, linefeed or form feed).