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.
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.
05-03-2016 07:17 AM
Hi,
I have added a prefix to names of all the VIs and controls in my project.
After renaming when I try to open the main VI, it couldn't find the sub VIs hence I am browsing the VIs manually.
I have more than 200 VIs . so , Is there a way to problematically handle this?
Solved! Go to Solution.
05-03-2016 07:21 AM
Not that I know of.
It was a mistake to rename the subVI's while the main VI was not open. Are you using a project? I would make sure everything is in a project, then rename the subVI's from within that.
05-03-2016 09:44 AM
@Rajesh_10 wrote:Hi,
I have added a prefix to names of all the VIs and controls in my project.
After renaming when I try to open the main VI, it couldn't find the sub VIs hence I am browsing the VIs manually.
I have more than 200 VIs . so , Is there a way to problematically handle this?
Hi,
Is the prefix you have added to the Vi's are common or different. If its common you can handle this error
05-03-2016 10:50 AM
SanthoshJoel, how do I handle it if prefix is the same?
Except rename all files back, rename each file in labview? 😃
05-03-2016 11:43 AM
I can think of two options, neither one of which is pretty:
1. Rename all of your VIs back to what they were and then rename them inside of LabVIEW. Note that you could possibly use some scripting to do this for you.
2. Go through all of the search dialogs when you open your main VI to locate all of the renamed VIs.
05-03-2016 12:23 PM
This VIP (OpenG Rename Folder of VIs - see attached) may help; if not, look at the source code once installed and modify to suit your needs.
05-03-2016 12:27 PM
One way to prevent this from happening again is to always code within the context of a LabVIEW Project. When your 200+ VIs are in a Project, you will have a Project Explorer (which can look very much like Windows Explorer). Now, in the Project Explorer (but not in the Windows Explorer), if you rename a sub-VI, it will be renamed everywhere in the Project, and all of the links will remain intact.
Bob Schor
05-04-2016 12:04 AM
@Alexander_Sobolev wrote:SanthoshJoel, how do I handle it if prefix is the same?
Except rename all files back, rename each file in labview? 😃
Hi Alexander,
See to the Below snippet, just pass the folder in which the Vi to be renamed is present. The VI will create a seperate folder and move all your vi to the particular folder with Prefix/Suffix Removed.
Kudos Welcome 🙂
05-04-2016 12:29 AM
HI ,
I would like to add few more details to my query.
1. All these VIs are inside a project as a auto populated folders.
2. I have added a common prefix to all these VIs.
3. I have closed the project and renamed the VIs in programmatic way as in the attachment.
05-04-2016 03:19 AM
Is your problem now solved?
If not, then have you followed our advice? The advice is to NOT put the prefixes in your subVI's. Rename them back to what they are when you originally created the program. Load your project to make sure nothing is broken. Then rename the VI's from within the project environment. (Do just a few to start with to make sure it is all working.)
If you insist on renaming VI's outside of the project, then I'm afraid you are just going to have to resolve each of the missing subVI's telling LabVIEW what the new names are when you load your project.