04-16-2009 03:49 PM
Hi folks,
I am developing code for a cRio-9014. I understand that this uses vxWorks as its OS and, because of this, uses the unix path convention. Being a'nix-head myself I thought I would be happy with this. I also understand that the system needs the filename to be absolute with the full path from the root directory.
I wish to access a file on the built-in flash drive called 'initialisation.cfg' that is in a directory called 'SetupData' directly under the root directory. Thus I would understand the required filename to be '/SetupData/initialisation.cfg'.
The system is unable to find the file though. I have tried many variations on the above path & filename with no success. Could somebody give me the correct path/filename to use and tell me where I am going wrong?
Cheers, kimdino
Solved! Go to Solution.
04-27-2009 08:19 AM
Hi again,
Have I put this on the correct forum? If not, then where should it go?
Since the original posting I have tried a few more things. A common theme I see involves a mystery directory called 'c' (e.g. /c/FirstSubdirectory/File.conf) as if this was hung under the root. Is this for MS-Windows users who might expect a C partition, though I can't see what function it serves in a vxWorks cRio. Anyway, I tried it prefixing my path with '/c' but this did not make it work. Has anyone any other ideas, please.
Cheers, kimdino
04-27-2009 09:06 AM
Hello,
If you are creating your folder say, setupdata at root ie c: on the cRIO target then the file path convention would be c:\setupdata\filename or if under ni-rt then c:\ni-rt\setupdata\filename , LabVIEW will handle the file path convention on its own.
Try and let me know if this was useful
04-29-2009 10:07 AM
Hi mallyaprs,
That did the trick. Using an MS-Windows style path structure on a 'nix-based system, I would never have thought of that. I could only think UFS - hmmm.. Anyway, it works and that's what matters.
Many thanks,
kimdino