Jump to content

Feature Guide: Managing Package Dependencies (and working with VIPC files)


Jim Kring
 Share

Recommended Posts

Dragon uses a VI Package Configuration (*.vipc) file to store your projects package dependency declarations.  A VIPC file defines which exact versions of packages your project depends upon (and it should be kept in source code control).

When you open your project, Dragon checks to ensure all the packages in your VIPC are installed and will prompt you to install them, if they are not already installed.

You can easily add packages to your project's VI Package Configuration (*.vipc) file and manage the VIPC file, as shown in the sectiosn below.  

Adding Packages to the VIPC

Dragon does not automatically add packages to your VIPC file, when you install them into your project -- you must explicitly add them, by right-clicking on the package and choosing "Add Package to VIPC".

image.png

2021-02-09_15-31-23.gif

Dragon Prompts to Install Packages (When you Open Your Project)

When you open your project, Dragon will prompt you to install the required packages (those in your VIPC file) before you start working on the project.

image.png


Editing your VIPC File in VIPM

You can open your VIPC file in VIPM by right-clicking on the Resources tab/button or node in the tree and choosing "Open VIPC File".

image.png

This will open the VIPC file in VIPM's Package Configuration Editor.

image.png

Scanning your Project for Package Dependencies (automatically adding packages to the VIPC)

You can scan your project to automatically detect which packages are being called by your project source code.  This will automatically add package dependencies to the VIPC and remove packages that are not dependencies from the VIPC.

To do this, simply right-click on the Resources tab/button, Resource tree node, or Virtual Environment and choose "Scan Project for Package Dependencies".

image.png

 

Specifying which VIPC file to use for your Dragon Project

On the Configuration page, you can specify which VIPC file to use for storing your project's package dependencies. When you open a new project, Dragon will find and automatically choose the first VIPC file it finds next to your LabVIEW project. And, if it doesn't find one, it will create one automatically. However, if you need to change this, you can do so from the configuration page, as shown below.

image.png

More about VIPC Files

You can find more information and tips for working with VIPC files here.

Link to comment
Share on other sites

  • Jim Kring changed the title to Feature Guide: Managing Package Dependencies (and working with VIPC files)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.