LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert a CVI project to relatvie file references?

in the project file there are flags rel path = TRUE in one of my projects and FALSE in another. How do I convert my project to use relative paths?
0 Kudos
Message 1 of 3
(3,093 Views)
This occurs when a file is not initially associated with the project path. This might occur if you are including source files from other directories on your system. The best way to identify your file path as a relative path is to "Save As..." and save the file to a path which has the default project path as a root path. This should alter the state in your project file.

Ron
0 Kudos
Message 2 of 3
(3,093 Views)
The project file will store a relative path when the file's location is relative to either of these three special directories:
1. the project directory
2. the CVI directory
3. the VxiPnP directory

You cannot force the project file to store relative paths if the file in question is located in a directory outside of the 3 dirs mentioned above.
If you want your project to use relative paths, then store your files at the project directory level or under one of its subdirectory.

For example, the following project (with 4 files in it) will use relative paths:

c:\temp\myproject\project1.prj
c:\temp\myproject\project1.c
c:\temp\myproject\project1.h
c:\temp\myproject\project1.uir
c:\temp\myproject\otherfiles\main.c

Hope this helps clarify the relative vs.
absolute path "mistery".

Regards,
Azucena
0 Kudos
Message 3 of 3
(3,093 Views)