From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Development Best Practices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Transition from using code in a development library to packaged code

Hello all,

I wonder if anyone here has attempted to do this.  I have large projects that often share a considerable amount of reusable code.  I would like to transition away from pointing directly to these libraries in the development folders to a codebase that is packaged and released using VI Package Manager.  Does anyone have any suggestions on how to successfully replace the code in a project stored in one place with that of code stored in another place?

Cheers, Matt

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

vi.lib and user.lib are part of LabVIEW's search paths. If the files can't be found in the project (or any sub-folder) then these paths will be searched in and re-linked to.

If you create a VI package with the development content and install it then you could:

  • Close the project
  • Remove the original local development content on disk
  • Open the project. LabVIEW will re-link to the same content in the vi.lib / user.lib folder (depending on where you chose to install it).

I have done this several times when transitioning much the same as you.

0 Kudos
Message 2 of 3
(2,958 Views)

Ugh...this is what I thought.  And unfortunately, the development code is under version control, so changing the location on disk might not be so straightforward...sigh.  Thanks.

0 Kudos
Message 3 of 3
(2,958 Views)