LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does a "sublibrary" need to know which libraries its included in?

Solved!
Go to solution

A VM is pretty much a must, but not enough. The problems already arise from the fact that the PPLs need to get loaded into the Windows IDE for development of depending VIs. That totally and completely breaks the whole thing and is very difficult to untangle then. So you need at least a dummy plugin PPL compiled for loading in the IDE and then you run into problems when having both in a project at the same time. While LabVIEW can deal with VIs being loaded in multiple contexts and has some working measures to deal with shared libraries, it is not fully prepare with the fact that you have two PPLs with the same name but different architecture loaded at the same time, not even if they are in totally separate projects. It somehow sees that the names are the same, and kind of considers them the same and then gets entangled in its own spider web of cross references.

 

There is a mechanism in LabVIEW that would promise to solve it. It's called path roots and allows to have multiple different directories for vi.lib, user.lib, and similar directories that LabVIEW resolves according to the actual target architecture. It is complicated and a bit crude around the edges but would be a useful solution. Except that some of the RT targets for whatever reason have that broken. So when you setup such directories in vi.lib and friends the only way to get the resulting executable to even load under NI Linux RT for x64 is to create some crazy symlink that maps the badly resolved path back to the effectively existing path on the target. The same thing surprisingly works fine on NI Linux RT for ARM. It also seems to be problematic on desktop Linux and Mac. The whole thing looks and feels like something that someone added for a specific need in a grey past, then it was forgotten and never looked at again when new targets were added. It just almost works but not quite!

Rolf Kalbermatter
My Blog
0 Kudos
Message 31 of 31
(92 Views)