LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we create relative include path?

Hello all,

 

Actually we are using the same project on different computers, and the project will be on different path for each computer.

As we have to install the project on another computer, we just copy-paste the whole source code files, and re-link the lost files. Mainly for includes which were correct for the last source computer.

 

Instead of re-create the absolute include files path for each computer, is it possible to put these path in relative, as for compilation files ?

0 Kudos
Message 1 of 3
(3,457 Views)

Hello, do you know this link?

 

https://digital.ni.com/public.nsf/allkb/EC8988337B183AEB86256C940064A322?OpenDocument 

 

Regards

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 2 of 3
(3,440 Views)

Hello Samuel,

 

Thank you for your repply.

Yes I followed the explaination of this topic.

So I edited the .prj file with note.exe, and it works.. For a while.. Until you save your project again, and the path return to relative = false.

 

for example, I got this in the .prj file : 

 

Include Path 1 Is Rel = False
Include Path 1 = "/c/Users/Applications_Banc/sources/include"

 

I will replace by this :

 

Include Path 1 Is Rel = True

Include Path 1 Rel To = "Project"
Include Path 1 Rel Path = "../include"

Include Path 1 = "/c/Users/Applications_Banc/sources/include"

 

This works perfectly : when I launch CVI, it loads the files and I can compile correctly.

But anytime I save the project, it will return to the first lines.

 

The idea is : how to retain the relative path, as I will have to make/save changes in the project (I mean : "read only" is not a solution)?

 

0 Kudos
Message 3 of 3
(3,415 Views)