LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Project creation question

May be obvious but here goes:

When I create a project shouldn't all of the sub VI's be retained within the project.?

To put it another way shouldn't the entirety of the LabVIEW program be contained in the project file(lvproj)?

 

0 Kudos
Message 1 of 3
(1,128 Views)

Hi LED47,

 

This may also be obvious, but your VIs are not contained "physically" in the project file, as the .lvproj is basically just an XML that lists what libraries and VIs belong to the project, plus the configurations for targets, build specifications, … which gives the project tree you see in the project explorer.

 

It is generally a good practice to have your project file in the same folder as the source code of your application.

 

It is also a good practice to have your main VI and every subVI added to your project, so that you can more easily navigate through your code and find the callers of your VIs. There are exceptions of course, for example when a single project would be too complex to maintain, and you split it in several "lower-lever / driver" projects, while keeping a main project that depends on those drivers. So if you call VIs from another project without explicitly adding them to the project tree, they will be automatically added to the dependencies section anyway.

 

Regards,

Raphaël.

Message 2 of 3
(1,108 Views)

Question asked, question answered thank you!

Chris

0 Kudos
Message 3 of 3
(1,103 Views)