LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file path

Hello,
 
I'd like to know if there is a specific maner to refer a file by his path in the RT OS. i know that in windows i should write C:\...  i tried to use this model in TR but the system couldn't find the file. Does someone know why?
 
Best Regards,
 
Tchaou
0 Kudos
Message 1 of 20
(5,898 Views)
You should be able to use the same file path description on an RT system. What kind is it anyway? On my desktop ETS, I can just use a format such as c:\ni-rt\.... and so on. Have you tried opening an FTP session to make sure that the file truely exists on the RT system? Is that how you're transferring it over? I'm assuming that in your VI you're trying to locate a file that is located on the RT system itself.
0 Kudos
Message 2 of 20
(5,863 Views)

Hi Sima,

through ftp i can locate the file on the RT target (CVS) and i gave the same path to the read from spreadsheet file input. but still that windows tells me that labview can't locate the file. i wonder if really this function is supported by a RT target like CVS.

Regards

Tchaou 

0 Kudos
Message 3 of 20
(5,855 Views)
Hi Tchaou, I don't have experience with CVS targets, but why don't you post your code? I do believe that the file operation is similar.

Message Edited by Sima on 03-23-2007 04:01 PM

0 Kudos
Message 4 of 20
(5,839 Views)
tchaou:
 
You could also use "File/Directory Info.vi" located under Programming >> File I/O >> Advanced File Functions. The function will return a list of all the files located in a specified directory. You can use that information to see if LabVIEW is able to recognize the file. Also, feel free to post the part of your code that pertains to File I/O.
 
Regards,
Rudi N.
0 Kudos
Message 5 of 20
(5,803 Views)
Hi,
 
Here is the vi that i made. it's very simple as you can see, but the problem is this function read from spreadsheet what seems to me not functioning in real-time.
 
 Best Regards
 
Tchaou
0 Kudos
Message 6 of 20
(5,779 Views)

I was not able to run what you posted because of a missing subVI. Please post it when you get a chance so that I can further troubleshoot it.

Thanks,

Rudi N.

0 Kudos
Message 7 of 20
(5,764 Views)

Hi, Rudi

Here it is.

Regards

Tchaou

0 Kudos
Message 8 of 20
(5,754 Views)
Smiley Sad Haven't installed 8.2 yet... Can try to help if you save it down to 8...
0 Kudos
Message 9 of 20
(5,702 Views)
I ran the VI and got an error because the file was not found. Since you are sure that the file is there, do you get an error when you run the VI? If so, what is the error code?. I have attached the same VI saved for 8.0.
 
Thanks,
Rudi N.
0 Kudos
Message 10 of 20
(5,661 Views)