LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Target File for Multiple UIRs

I would like to have the ability to "Set Target File" differently for each UIR file in a project so that my application can use different UIR files for different panels.  I've written several applications that have dozens of different panels of which some are easily separable.  However, when I have to use the same target file for all of them, the C file for UIR callbacks gets huge, slow to compile and hard for navigate without careful manual re-organization for functions.
 
It would help clean up the C files and make compiling quicker if I could put the un-connected panels in a separate UIR file and set their target file to a different C file.  As is (in CVI 😎 I don't seem to be able to do this.  I can have multiple UIR files, but can only have one target file for everything in the project. 
0 Kudos
Message 1 of 5
(3,807 Views)
This is not exactly true, gvan: in a project you can have multiple source files, and as far as the correct include files are present in each one and one main { } only is present in the whole project you can compile and execute it without problems. What it's not possible is to permanently associate a specific source file to one UIR file so that all callbacks related to controls in that UIR files are created in that C file: you will have to manually set the appropriate target source file when creating the callbacks from the UIR editor. The target file can be set as many times you want during project development: it has no effect other than determining where the source code will be created from a function panel or from the UIR editor.

Message Edited by Roberto Bozzolo on 08-01-2007 06:38 AM



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 5
(3,801 Views)
Maybe I should have started with "I'm not new to CVI" or ANSI C.  You've over simplified my requested feature.
 
I know very well that I can have multiple C files, what I'm requesting is to have multiple "target files" for the code generater and UIR navigation. 
 
It seems like a very basic thing to add to the next version of CVI and would make large applications much easier to navigate. 
I would like to know why it is not possible if for any other reason other than it wasn't thought of and/or thought to be useful?  I think it was short sighted to NOT include this feature and seems more intuitive to have each UIR linked to it's own (or a shared) source file. 
 
I don't like that every time I modify one panel in my UIR I have to recompile all the code for all of the panels. (unchanged source files do not have to recompile on each build)  It is also bothersome to have the change the target file every time I make a change to a panel.   Forget to change it once and now I've got a function in some other c file and all UIR Constants in the other header file... messy.
 
If any CVI developers are listening, I would very much like this feature.  It doesn't even have to check for unique constant names across UIR header files, It's easy enough to resolve those on errors at compile time.
 
Gvan
 
 
 
 
 
 
0 Kudos
Message 3 of 5
(3,775 Views)
Hey Gvan,

Any time you have a suggestion for CVI, I would recommend creating a Product Suggestion.  These suggestions are sent directly to R&D where they are evaluated, and they are taken into account when evaluating new features.  You can post product suggestions here.
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,754 Views)
Thanks Patrick, I will make the suggestion.
Greg
0 Kudos
Message 5 of 5
(3,741 Views)