LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a file exists on RT target

Solved!
Go to solution

Hi,

 

    I wonder is there a way to check if a file on RT target exists? Thanks!

 

   Tom

0 Kudos
Message 1 of 3
(2,397 Views)
Solution
Accepted by topic author tom_z

You mean from the host? You could use the FTP functions. "FTP Get Path Info.vi" will return error code 550 if a file does not exist but a success code if it finds it. You can also check the "path info" output. The type will tell you unknown if it doesn't exist but file if it is there.

 

Message 2 of 3
(2,395 Views)

Hi,

 

     It works! Thanks!

 

    Tom

0 Kudos
Message 3 of 3
(2,389 Views)