Error 1430 or Error 6 When Using String to Path on VxWorks Controller

Updated Dec 22, 2023

Reported In


  • LabVIEW Full

Issue Details

When I try to perform file I/O on my VxWorks OS controller, I get

Error 1430: The path is empty or relative. You must use an absolute path. or Error 6: LabVIEW: Generic I/O file error.


This error appears when a path has been incorrectly specified, which is most often caused by improper formatting of the path.

The preferred method of specifying file paths is to use a file path constant of c:\ and then use the Build to add your string constant to the path. Further details about this implementation can be found in Tutorial: Working With File Paths on Real-Time Targets .

If for some reason you have to cast a string to path and cannot use the path control or constant, this error can occur if the string that you build into a path uses c:\ as the root directory. This might happen if you need to communicate a path over a string-only protocol like TCP. If you are building the file path from a string, you should use /c/ as a base path. Designate any subfolders using forward slashes instead of the backslashes used in a Windows path. Make sure to build the whole string before casting to a path. The VxWorks OS uses Unix-style file paths which follow this convention. The following snippet demonstrates the syntax for a file on a cRIO controller.
The path controls, indicators and VIs convert Windows style paths to the Unix format automatically. If you use a path constant or control and are not casting a string into a path, do not use the Unix style path. Entering a path in the Unix format will cause Error 1430 to occur.

Additional Information

The cRIO-901x, cRIO-902x and cRIO-907x series use the VxWorks operating system as is outlined in Real-Time Controllers and Real-Time Operating System Compatibility .