LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path format in vxWorks

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 4
(4,269 Views)

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

 

 

 

0 Kudos
Message 2 of 4
(4,193 Views)
Solution
Accepted by topic author kimdino

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

-Mallya

" Appreciate and motivate those who help"
Message 3 of 4
(4,188 Views)

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

0 Kudos
Message 4 of 4
(4,160 Views)