LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to structure the main LabWindows/CVI routine to break into logical files

When developing a LabWindows/CVI application with lots of options on the UIR, I get really long main routine files.  But if I try to break up the main file into additional files, maybe with their associated subroutine calls, I get errors linking the CVICALLBACK panel handle.

 

What's the trick to breaking up the main file as I've described?  Or are there better ways to group routines for clarity and maintenance ease?

 

Thanks!

0 Kudos
Message 1 of 2
(3,198 Views)

There is normally no problem in splitting functions into several fies in CVI, provided all source files are ancluded in the project and the appropriate include files are added to all of them.

 

One practical approach is to generate a small project (a panel with one or two buttons) and see which files are automatically included by the IDE: those are the core files that are to be added to all source files in the project.

 

While adding new functions to the code, the IDE will prompt you to add the nencessary include files when needed (at least for functions in built-in CVI libraries).



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 2
(3,174 Views)