03-29-2007 08:42 AM
Hi Rudi,
I got the same error like you : file not found. using max i can see the file. the problem is that it seems to me that read from spreadsheet search the file path in windows instead of searching in the CVS. the when i put the file at the same location in host computer it gives me as error enable to initialize the vi. i got all those complication when i run the program in VBAI on the CVS. On the host computer every thing works nicely. i don't if there's a special way to specifie a file path in the CVS. somebody told me that there's certains functions that don't work in Real-Time. i don't if this is the case too.
Best Regards,
Tchaou
03-30-2007 12:00 PM
Tchaou:
I would recommend you to use "List Folder.vi" to enumerate all the files contained in the directory where the file is saved. This will give us an idea about whether or not the file is viewable. Make sure that you also have permissions set on the file so that applications can open it.
Regards,
Rudi N.
03-30-2007 02:27 PM
Hello Rudi,
The List Folder.vi doesn't find the file in CVS. it's return nothing as the file name.
Tanx,
Tchaou
03-30-2007 06:39 PM
Hi Tchaou, here's a link of unsupported functions on an RT system to confirm your doubts. That VI you're using should be fine.
http://zone.ni.com/reference/en-XX/help/370622D-01/lvrtconcepts/rt_unsupportedets/
I ran it on my RT (not a CVS), and it worked. I didn't get an error. It found the file.
04-02-2007 08:51 AM
Hi Sima,
How did you write the file path?
thanks,
Tchaou
04-02-2007 09:02 AM
Hi Tchaou, I ran exactly your code. So the way you have it written "C:\VBAI\notepad.txt"
I created a folder VBAI on the root of my RT system, and I ftp-ed just an empty text file called notepad.txt into there. Obviously, before I did all that, I got the file not found error.
04-02-2007 09:52 AM
tchaou,
I am sorry if I am asking the stupid question here, but where are you running the VI which has the read from spreadsheet function? If it is on your local computer, and you are trying to read from the RT, you will need to preface the path with the IP address of the RT engine, (e.g. \\192.168.1.1\c:\filename.csv) . You can build this up with the string functions and convert string to path functions if necessary. Type the above path into your web browser with an 'ftp:' in front (rather than the file transfer function in MAX) to be assured of your connection.
Regards,
Mello
04-02-2007 10:29 AM
04-02-2007 10:58 AM
04-02-2007 10:22 PM