LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change path for every 24 hours

Solved!
Go to solution
Solution
Accepted by topic author Perarasi

The VI you posted does not match the image of code you posted.

 

Does the VI indicate the file exists?  Error 7 does not mean the path is invalid, it means the file doesn't exist.

 

There is not much we can really do for you, since this appears to be specific to your system.  You didn't leave anything as default, so I don't know what you think you are doing vs what you are actually doing.

 

I tested your code with my network share and got no file error, so I know the code should work if you put a filepath in that exists.

0 Kudos
Message 21 of 25
(1,394 Views)

I'd say he's stumbled upon a bug. It seems file functions, as List Folder, doesn't work with a \\servername\share - path. Atleast it doesn't in my LV2011.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 22 of 25
(1,380 Views)

List Folder works for me in 2011 SP1 with a network folder.  Still works in 2014, too.

0 Kudos
Message 23 of 25
(1,371 Views)

Thank you so much for all your suggestions.

I have tried with all the ideas you have given to me.The read from measurement file still returns not a path.But the path exists.Here is the image of the file existence and i have attached the vi too.Untitled.png

0 Kudos
Message 24 of 25
(1,333 Views)

The filename handling part of your VI works just fine for me when I put in the fully named server and the file path structure when I try it on my networked resource.  It works also with the drive letter that I have mapped to that server resource as well.  So I have no idea why it doesn't work for you.

 

If you type the full path into the run dialog of your Windows button, what happens?

 

Put indicators on the string before the path function, and also after the Write measurement file Filepath output and see what they say.

 

Try using the Check if File or Folder Exists function in the Advance File I/O palette and see what the returns.  Try it on a path that has higher and higher levels of your hierarchy (without appending the actual filename into the path) to see if any part of the file path structure shows up as existing.

0 Kudos
Message 25 of 25
(1,303 Views)