06-29-2015 11:50 AM
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
06-30-2015 08:49 AM
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
07-01-2015 03:02 AM
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.
/Jon
07-01-2015 03:17 AM
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.