06-22-2014 03:50 AM
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
All inputs to solve this problem are welcome!
Regards
Alain
06-22-2014 07:55 AM
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?
06-22-2014 09:51 AM
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
06-22-2014 12:24 PM
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