From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find + Replace text (string constant) doesn't work for Statechart module VIs

Solved!
Go to solution

Hello,

 

I was trying to do a mass find+replace of a string in my code. Using Ctrl+F, LabVIEW 2012 correctly locates all the places where this string exists, including inside Statechart Guards which have paths in this form:

 

XYZ.lvsc:Diagram.vi/Transition:Guard - Diagram, Transition, Data/Part

 

However, when I specified a replacement string and click "Replace All", only the instances in "normal" VIs got replaced -- the instances in my Statecharts were unchanged.

 

What's happening? Is there something else I must do?

 

 

Thanks in advance.

Certified LabVIEW Developer
0 Kudos
Message 1 of 3
(2,359 Views)
Solution
Accepted by topic author JKSH

It sounds like the way find and replace is implemented in LabVIEW doesn't include those. You could try to replace on just the statechart and see if that makes a difference, but it may just not work.

TimC
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,325 Views)

Hi Tim,

 

I was afraid that might be the case. Thanks for confirming, nonetheless.

Certified LabVIEW Developer
0 Kudos
Message 3 of 3
(2,297 Views)