LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid to rewrite the head file(cvi 6)

Hello,

When refresh the uir file , I find that the head file is always refreshed , and often cause some defined data lost , is there any way to avoid this ? Thanks.

David
0 Kudos
Message 1 of 3
(2,621 Views)
It's not so clear what you intend with "refreshing the UIR" and refreshing the head file.

It's true that each time you save the UIR file in the UIR editor the header file (.H file) is saved too, but this should not have any effect on data since the UIR can be edited only when the program is not running.

Can you add some more details about your question?


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
(2,621 Views)
The UIR editor automatically creates a .h file (with the same name, different extension, as the UIR file). The file includes the following warning:
/* WARNING: Do not add to, delete from, or otherwise modify the contents */
/* of this include file. */
You need to heed this warning.
The required CVI project design is to let the UIR have its own .h file. Create a new .h file (with a name different from the UIR file) for any user defined functions and constants, etc., and include it in your .c files.
0 Kudos
Message 3 of 3
(2,620 Views)