Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69015

Object Method as Plugin?

$
0
0

Is it possible to dynamically load an object's VI for override (override parent's method) after compiling code into an EXE?

 

I know it is possible to dynamically load objects with a factory, and this can add new objects to compiled code. However, the same doesn't seem to be true for a child's VI for Override. Does the compiled code include what specific implementations are known at compile time? Is there some way to get around this without defining all those VIs ahead of time?

 

To help illustrate this I have attached the image:dynamically load methods.png

 

On the far left, I load in the names of my objects via INI file values. This is useful because if I want to add new objects I can place the class in the appropriate file location and then load it with the ini file value and factory. This will allow me to load objects I did not define when I compiled the EXE. I run into trouble when I try to put the new object through the VI for Override. At that point, it calls the parent method, even if its method exists in its folder on disk. I am sure this is because LabVIEW did not know about that method at compile time. Is there anyway I can dynamically load its method after the EXE has been built? Or am I stuck recompiling my EXE each time I want to add an object with a new VI for Override?


Viewing all articles
Browse latest Browse all 69015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>