LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plugin architecture using reference based object orientation

Hi,

 

I'm about to build a new application and the key focus is modularity and flexibility.
I want to use reference based object-orientation like GOOP or G#. My idea is to use a base class in the source code of the framwork (the exe) and then use Packed libraries containing sub-classes as plug-ins. I have seen this work using Packed librarys and native classes but never with referense based classes (like GOOP or G#). Have anyone experience of using reference based object orientation and sub-classes in Packed libraries as plug-ins?

 

 

 

My LabVIEW version: 2014

 

 

Best regards

Jon

JonS
0 Kudos
Message 1 of 4
(3,349 Views)

Hi, 

 

Have you checked out the example on reference classes that is available in LabVIEW?You can find the project in C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Object-Oriented Programming\Reference Object\Reference Object.lvproj by default. 

I am not sure that I understand what exactly your question is, but this might be a start. 

 

/Anton

0 Kudos
Message 2 of 4
(3,276 Views)

Thanks Anton,

 

But what I really want know is if someone has experience building a plugin architecture using Packed Libraries combined with reference based object orientation (like GOOP or G#). In this case also the Base class is a packed library.

 

 Plug-in architecture.png

/Jon

JonS
0 Kudos
Message 3 of 4
(3,252 Views)

I think your base class needs to be built into its own packed project library and be prepared for lots of headaches trying to get data into/out of the PPLs (especially related to type defs etc.) but it can be done.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 4
(3,247 Views)