11-22-2011 06:42 PM - edited 11-22-2011 06:49 PM
Hi,
I am trying to develop a vi that will read some text files and will do specific functions using sbRIO-9631. When the Vi is being run as a standalone vi withough the FPGA parts in it then it runs fine. But when I deploy the vi under the chassis of the sbRIO9631 and try to read the text files then it throws error-7 at me. PFA the vi as well as the screenshot of the error. If the same files are on disk and when I run the vi on disk, then it performs well and the files are read without any problems but on the chassis it never finds the files. Please advise me what to do under these conditions.
Regards,
Robot77
11-22-2011 09:49 PM
Does the cRIO chassis have a file system? If it does, does it have the same directory structure as your PC? In your case, you are reading from files in C:\Users\sureshm\Desktop\LUT_data\ so I doubt your cRIO has a file system with that same path structure.
11-22-2011 09:57 PM
11-22-2011 10:02 PM
Write a simple VI that has the File/Directory Info function from the File I/O palette. Use the path c:\ and deploy it to the sbRIO. See what it returns and whether it causes and error.
11-22-2011 10:15 PM
I am not havin the hardware with me now but if this is what you mean, I , earlier in the day just tried to see the vi's path using a function in File I/O and it returned c:\ni-rt\startup\filename.vi. So do you think I must use a build path function with the base path as c:\ni-rt\startup and then append the filename.txt as the string and use that file name? If so I will test this tomorrow morning and will let you know how it goes. Thanks for the idea!
11-22-2011 10:45 PM
I don't have any RIO devices, but that path sounds just like the ones I have on my compact Fieldpoint devices.
So what you'll need to do is place your files on the RIO with a path like that and have your file path constants point to your files there.
11-23-2011 09:13 AM
I placed the files on the RIO chassis by adding files under chasis in the project window and then pointed my path constants to c:\ni-rt\startup\filename.txt but it is still giving me error 7 open file+.vi error and I found one ni-rt folder on my desktop and I added files under that folder under startup folder but still of no use. Please do let me know where am I going wrong
11-23-2011 11:40 AM
I don't know whether putting the files under the chassis in the project windows is actually the same as deploying those files to the chassis.
I would try doing and FTP into the chassis to see if they are there, and copying them to there by FTP if they are not.
11-23-2011 12:40 PM
Actually FTP works like magic....the files are placed only when they areFTPed. Now it is working fine. Thanks a lot for all your time and suggestions!!