LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Friends Relationship between two distinct .lvlibp

Hi everyone,

 

I have some troubles implementing friends Relationship for two seperate packed library.

 

I have 2 seperate library : "X.lvlib" and "Y.lvlib"

Each of them containing respectively 1 class : "X.lvclass" and "Y.lvclass"

Each of them belongs to 2 seperate projects : "X.lvproj" and "Y.lvproj"

I want to use "Y1.vi" part of "Y.lvclass" into "X1.vi" part of "X.lvclass" so :

  1. I define "Y1.vi" as community scope access
  2. I define "X1.vi" as public scope access
  3. I define into "Y.lvclass" the class "X.lvclass" as a friend

In the source code, I'm able to call "Y1.vi" into "X1.vi".

I'm able to compile the packed libraries "X.lvlibp" and "Y.lvlibp"

When it comes to use the "X1.lvlib", I get an error like the "Y1.vi" is not executable.

 

I am able to have things running when I put both classes in the same library, I mean "X.lvclass" and "Y.lvclass" in a unique Library "Z.lvlib".

 

My problem is, I need the classes to be in 2 seperate library for the code organization, however I want to control the classes or VIs, like for instance "X.lvclass", that have ability to call the "Y.class" VIs, defining friends relationship.

 

Thanks in advance for your support

 

0 Kudos
Message 1 of 2
(2,489 Views)

Hello Gardy_BIVARD,

 

I would try defining into the library "Y.lvlib" the class "X.lvclass" as a friend.

 

All the best,

Message 2 of 2
(2,452 Views)