LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find and replace a class controls and indicators

Solved!
Go to solution

Hi All

 

Is there a way to find and replace the class (.lvclass) control/indicator of a member VI?

 

My situation is that I have a new class which is similar (but different) to another old class. And rather than code up new VI's (methods) in the new class, I've taken a copy of them from the old class and place them under the new class.

However, each copied VI still uses the old class on its terminals. I could go through each VI and replace the class control/indicator with the new class type, but I thought I would try using the Find and Replace.

 

Find and Replace seems to find the old class controls/indicators of the selected VI's, but I can't seem to select the new class type (.lvclass) to replace them.

Is this a failure on my part, or an inadequacy of the Find and Replace feature?

 

Thanks

Message 1 of 3
(1,069 Views)

The help for the find dialog says:

 

  • Note  A strikeout icon appears next to an entry in the Search Results list if LabVIEW cannot replace that instance

 

You'll note that you see those on class controls and indicators, so even if you could select it, it wouldn't help you.

 

You could write your own scripting tool to do this or try to find something that already does this. I believe OpenGDS has this feature and there might also be tools for this online.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(1,000 Views)
Solution
Accepted by skol45uk

In G# there's a clone methods tool. It'll replace class refs while cloning. Internal classes in the method isn't affected though so there's some cleanup needed.

Honestly i haven't tried on a standard class, but it should work.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(992 Views)