LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File(*.VI) Rename Issue

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.

0 Kudos
Message 1 of 9
(3,093 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 9
(3,089 Views)

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.

 

 

0 Kudos
Message 3 of 9
(3,078 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 9
(3,075 Views)

@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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 9
(3,035 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 9
(3,032 Views)

Thank you both for your informations.

0 Kudos
Message 7 of 9
(3,020 Views)

The other trick is to rename it twiceSmiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(3,009 Views)

@JÞB wrote:

The other trick is to rename it twiceSmiley Wink


That's what I usually do.  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(3,005 Views)