LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading plugins as PPLs gives dependency issues

I'm trying to learn using PPLs to speed up my deployment process, but I've ran into some problems. I'm following this excellent guide, yet I still I'm still not able to get it working without problems.

 

The example program seems very simply. It uses a PluginInterface.lvlibp containing a parent class. Plugin 1.lvlibp contains a child class of PluginInterface.lvclass. In the Plugin1 project, I've loaded PluginInterface.lvlib and Plugin 1 inherits from the class inside the PPL.

 

Testapp.vi tries to load Plugin 1.lvlibp from disk as follows: 

Load PPL.png

The path is loaded correctly, and "Get Exported File Path.vi" correctly gets the class path within the PPL. The problem is that loading the plugin PPL gives the following dependency conflict:

Basjong53_0-1649672818512.png

Clicking add loads Plugin 1.lvlibp into to the project with the mentioned conflicts. If I then remove Plugin 1.lvlibp again from the project while testapp.vi is still running, it remains in the "Items in memory" folder. How can I make sure I don't get the confict warning? Because when I make the vi into an .exe the program works without warnings.

 

I guess it has something to with location of each of the PPL on disk and there are conflicts when they are not able to load from the expected path. So how can I avoid these issues? What are the best practices for this case?

 

0 Kudos
Message 1 of 5
(997 Views)

Hi Basjong53

LabVIEW scans the VI hierarchy when you open the block diagram of a VI and add a new subVI. The subVI does not load if any members of its hierarchy have the same qualified name but different paths as an item already in the project. The Add to Project and Update Dependencies dialog box appears. You can add the hierarchy or cancel the load and choose another subVI.

 

For more information follow this link.

 

Regards)

________

Best way to thank is giving Kudos / Marking as a solution. 

0 Kudos
Message 2 of 5
(846 Views)

You are probably running into issues with the fact that your PPLs are getting moved around.  They have to retain relative paths to each other through the entire process.  So I would get rid of the PluginInterface.lvlibp from the PluginInterface directory and use the copy that is already in the build directory (have it build into the builds directory instead).  In the build specifications for the plugins, go to the Additional Exclusions tab and check the "Exclude dependent packed libraries".  They can then rely on the interface PPL being in the build directory already.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(824 Views)

l.hovs, you're frequently posting links to questions that are related but not very helpful. For instance, in this case, the linked concept guide mentions nothing about managing PPL build dependencies. Try looking for more context to issues in the future or replicating some things yourself and trying the solutions before you link them. Then watch the kudos and solution marks start rolling in.

~ The wizard formerly known as DerrickB ~
Gradatim Ferociter
0 Kudos
Message 4 of 5
(790 Views)

It's been a while since I've posted this question. I have been using PPLs a lot more now and don't have this problem anymore.

 I don't remember exactly what the issue was, but probably the child class was wrongly linked to the parent class in the PPL or something.

0 Kudos
Message 5 of 5
(775 Views)