LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can not generate the head file in a specific path(cvi 7.1 , windows xp)

Hello,

I want to use a specific fold to save the head file , so perform Options>>Environment>>Include Paths..., then select "Specific to myapp
Project " option , expect that when generating code , it can automatic create the head file in the path , but after generated the source code file , I find that it does not create the relative head file , please give an advise how to set up the operation ? Thanks.


David
0 Kudos
Message 1 of 2
(2,807 Views)
Hi David,

That option is for setting search paths for finding include files, not necessarily saving them. When you specify a relative file path, it uses the paths in that setting to search for the files. 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!
Jeremy L.
National Instruments
0 Kudos
Message 2 of 2
(2,798 Views)