From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rename a data file

Looking for a way to rename a large data file I found this

http://digital.ni.com/public.nsf/allkb/576434CD1B659EE386256F04006909AA

 

Since I need to rename large files I try get method 3 to work.

Attached the vi I use I'm using in LV 2012 on Win 8.1 Pro system

It's basically the one from the ZIP file in mentioned link changed a bit for my inputs.

 

Unfortunately the "Success?" LED never lights up and in the explorer the file isn't renamed eigther Smiley Sad

 

All inputs to solve this problem are welcome!

 

Regards

Alain

0 Kudos
Message 1 of 4
(2,286 Views)

I created a text file on my desktop and this VI ran just fine with me.  Windows 7, LabVIEW 2012

 

Do you see the same results if you create a text file and try to rename it?

 

Is your file locked by another application because it is in use?

Lewis Gear CLA
LabVIEW UAV

Message 2 of 4
(2,262 Views)

 

Hey Lewis,

Thanks for your reaction.

I tried it again after closing LV and now it’s working here too ?!!?

For sure no other application than LV could lock this file since it’s a datalog file that I only read using LV.

Strange but ok, problem (if there was any in first place) is solved, case closed!

 

Regards

Alain

 

0 Kudos
Message 3 of 4
(2,247 Views)

I'm glad its working.  Are you closing the reference to the file?

 

It may have been that the reference was still open when you tried to rename it.  When performing file IO you should always:

 

1. open reference

2.write/read

3.close reference

 

 

 

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 4 of 4
(2,239 Views)