Showing results for 
Search instead for 
Did you mean: 

Find bold, italic and underline character in a string

Go to solution
I have a VI for finding bold, italic and underline sequence of character in a string but it is very slow.  I want to speed up this VI, any idea?



Message Edited by J-M on 03-05-2010 08:09 AM
Message Edited by J-M on 03-05-2010 08:12 AM
Download All
0 Kudos
Message 1 of 5

If you only want to search for whole words, you can separate the strings (using the /s as the delimiter).  This makes the process faster.  The attached vi is an example.




"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 5
Accepted by topic author J-M

You are experiencing the joy of Property Nodes, each time you access one, LV feels the urge to update the control that it references.  You can speed things up considerably (factor of 4 on my machine) by Defering Panel Updates on the VI while running the subVI.  I could probably tweak another factor of two with the code, but this simple fix goes a long ways.



Message 3 of 5

Thanks VT92 and DarinK, a combination of your solutions  has resolved my problem.



0 Kudos
Message 4 of 5

For those who might be interested (LV86).



Message Edited by J-M on 03-06-2010 09:55 AM
Download All
0 Kudos
Message 5 of 5