LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

change the path of generated header file

Hi everyone,
 
Is it possible to change the path of the automatic generated header file from IUR file ?
 
Regards,
 
Jean-Noel Pomies
0 Kudos
Message 1 of 3
(3,258 Views)
As far as I know there is no way of generating the header file other that in the same directory as the UIR itself.
Of course you can manually move the file from there and as far as the directory in which you place this header is listed in the Include paths of the project you will be able to run it and compile it. Nevertheless, I discourage you from doing this since every time you save the UIR the header will be regenerated in the UIR directory, so you'll find two headers in the project with unpredictable results.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,243 Views)

Hi Jean-Noel,

When you generate code, the header file and its corresponding uir file will be in the same directory. If you're looking to save header files in different folders, then you'll have to originally save the header file in the directory you want. With a new header, you go to File >> Save As to browse to another directory. If you have an existing one, then you'll have to manually copy the header over to another directory. Then, in your project, right-click on the header file in the project tree and select replace file in project. Then browse and select the new file path, and it should now reference that path. You might have to go to the settings and add the directory to the search paths so that you can find the header when you compile.

Hope this helps!

Omar S.

NI.

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