LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find bold, italic and underline character in a string

Solved!
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?

 

Jean-Marc

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
(3,705 Views)

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
(3,672 Views)
Solution
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
(3,651 Views)

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

 

Jean-Marc

0 Kudos
Message 4 of 5
(3,630 Views)

For those who might be interested (LV86).

 

Jean-Marc

Message Edited by J-M on 03-06-2010 09:55 AM
Download All
0 Kudos
Message 5 of 5
(3,605 Views)