LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file path

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 

0 Kudos
Message 11 of 20
(2,417 Views)

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.

0 Kudos
Message 12 of 20
(2,402 Views)

Hello Rudi,

The List Folder.vi doesn't find the file in CVS. it's return nothing as the file name.

Tanx,

Tchaou

0 Kudos
Message 13 of 20
(2,397 Views)

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.

0 Kudos
Message 14 of 20
(2,387 Views)

Hi Sima,

How did you write the file path?

thanks,

Tchaou

0 Kudos
Message 15 of 20
(2,365 Views)

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.

0 Kudos
Message 16 of 20
(2,361 Views)

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


Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 17 of 20
(2,357 Views)
Hello Mellobuck,
 
I'm runing the VI in CVS using the custom step that i created (Generate a Report Template ). the VI is include in the custom step. i'm asking to myself now if this custom step is not illegal in real time. i'm trying now to create a custom step with Global Step Status Template to see if the result will be different. and i will give you gives feedback.
 
Best Regards
 
Tchaou
0 Kudos
Message 18 of 20
(2,353 Views)
Hello,
 
The result is the same. Sima i just want to know how did load the VI in your target? the other way i can load this VI is using "Run Labview VI", the problem with this maner is that it doesn't support array and cluster. Is your target support array and cluster?
 
Regards,
 
Tchaou
0 Kudos
Message 19 of 20
(2,347 Views)
Hi Tchaou, I just dragger the VI to the RT system under the project explorer, and so that's where it was deployed. Is that what you're asking? I'm not sure about the differences for a CVS target. Are you trying to run the VI dynamically? Are you running a project?
0 Kudos
Message 20 of 20
(2,334 Views)