11-13-2017 12:00 AM
Hi,
What I want to achieve was to change a VI's every SubVI's name programmactically.
For example, I have a VI called Main_tst1.vi. It called two VIs: tst1_init.vi, and tst1_close.vi.
To change their name to tst2_init.vi and tst2_close.vi, I first copied tst1_*.vi to tst2_*.vi using "Copy" vi under Adv File Functions. Then I ran the code in the caption below:
I expected the next time I open Main_tst1.vi, its subVIs would become tst2_*.vi. However, they remained tst1_*.vi.
Can anyone tell me where I did it wrong and how to fix it?
The VI in the capture and a folder containing the VIs to rename are attached as a zip file.
Thanks in advance!
Solved! Go to Solution.
11-13-2017 03:10 AM
I assume you need to save the modified VI also?
/Y
11-13-2017 12:16 PM
Hi Yamaeda,
Yep. You are right. That's the issue. Oops, I should have noticed it.
Thanks a lot!
/L