05-06-2014 12:05 AM
I am facing issue with respect to renaming a file under project explorer.
Steps:
1. Open a Project
2. Add a VI with file name as "DeInitialize"
3. Right Click and select Rename
4. File Dialog opens to enter new name
5. Enter "Deinitialize" (Only change is from DeInitialize to Deinitialize)
6. LabVIEW Popup message (File Already Exist) asking for replace it.
7. At the end file name remains same as “DeInitialize”.
I am finding it weird. I have to rename the file to something else and then back to make it work.
Is it a OS issue or LabVIEW environment issue.
I am working with LabVIEW 2013 SP1 under Windows 7.
05-06-2014 12:15 AM - edited 05-06-2014 12:17 AM
@Vijay_J wrote:
I am facing issue with respect to renaming a file under project explorer.
Steps:
1. Open a Project
2. Add a VI with file name as "DeInitialize"
3. Right Click and select Rename
4. File Dialog opens to enter new name
5. Enter "Deinitialize" (Only change is from DeInitialize to Deinitialize)
6. LabVIEW Popup message (File Already Exist) asking for replace it.
7. At the end file name remains same as “DeInitialize”.
I am finding it weird. I have to rename the file to something else and then back to make it work.
Is it a OS issue or LabVIEW environment issue.
I am working with LabVIEW 2013 SP1 under Windows 7.
I think it's a LV thing. I believe that a LV "rename" does more than rename the VI. I think it actually creates a new VI with the new name and updates everything to point to the new file, then deletes the old one. Since you cannot name a new file with an existing name, it's just not allowed. Notice that LV opens up a file dialog box instead of just letting you edit the name directly? And that "rename" is in the "save as" dialog? Also note that the date changes on the file when you rename it.
05-06-2014 12:20 AM
I have a created a windows office file with the same name (Deinitialize.xlsx) and tried the same procedure.
It looks like you will have to refresh the windows to refelect the renaming otherwise winodws also shows the same.
05-06-2014 12:21 AM
@Vijay_J wrote:
I have a created a windows office file with the same name (Deinitialize.xlsx) and tried the same procedure.
It looks like you will have to refresh the windows to refelect the renaming otherwise winodws also shows the same.
That's not the same issue.
05-06-2014 10:03 AM
@Vijay_J wrote:(Only change is from DeInitialize to Deinitialize)
To the OS, those are the same! Windows may keep capitalization in the file name, but when actually accessing it, it is case insensitive. Close down LabVIEW, find the file in Windows Explorer, and manually rename the file. Nothing in LabVIEW will care since you really didn't change the file name (at least not to any programs).
05-06-2014 10:08 AM
@crossrulz wrote:
@Vijay_J wrote:(Only change is from DeInitialize to Deinitialize)To the OS, those are the same! Windows may keep capitalization in the file name, but when actually accessing it, it is case insensitive. Close down LabVIEW, find the file in Windows Explorer, and manually rename the file. Nothing in LabVIEW will care since you really didn't change the file name (at least not to any programs).
Haha - somtimes the answers are so simple. I've become so dependent on the project manager that I failed to recognize the easy solution. I guess when all you have (or are inclined to use) is a hammer, all problems look like nails.
05-06-2014 10:53 AM
Thank you both for your informations.
05-06-2014 12:54 PM
The other trick is to rename it twice
05-06-2014 12:58 PM
@JÞB wrote:
The other trick is to rename it twice
That's what I usually do. 😄