LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LVOOP plugin in compiled Application (8.2.1)

Solved!
Go to solution
Is there any way to implement the type of plugin architecture outlines in the document

"LabVIEW Object-Oriented Programming: The Decisions Behind the Design"

 in a built 8.2.1 application?  I have it working fine in the development environment but apparently the method "DefaultIstance" for the lvclass does not work in an application.....

 

Do I need LV 8.6?

 

Shane.

Message Edited by Intaris on 04-29-2009 04:40 AM
0 Kudos
Message 1 of 10
(3,352 Views)

I'll take the lack of a response as a NO then.....

 

Shane.

0 Kudos
Message 2 of 10
(3,317 Views)
I think Stephen refered to this once on LAVA before 8.5 came out, but I don't remember the details.

___________________
Try to take over the world!
0 Kudos
Message 3 of 10
(3,309 Views)

Well there's a code snippet shown in the document I linked to which was released in conjunction with LabVIEW 8.20 if I remember correctly.

 

I didn't read anywhere that it only worked in the development environmant.  Maybe I'm just doing something wrong?

 

Shane.

0 Kudos
Message 4 of 10
(3,304 Views)

Hi Shane,

 

I used a LVOOP plug-in but did not use the construct illstrated but rather I used a "plug-in" class for my app that the exe knew about that had all of the public methods.

 

The Plug-ins where all children of that class and lust had to live in a floder the app knew about.

 

I'll look again at work to remind myslef how I got the plug-ins in.

 

Tomi's post on LAVA >>> LVOOP was my example.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 10
(3,301 Views)
Solution
Accepted by topic author Intaris
I think I meant this one. I didn't read it throughly, but I think it means you can't do what you want in 8.2.

___________________
Try to take over the world!
Message 6 of 10
(3,300 Views)

Oops I have it on this mahcine!

 

Get LV Class Default Value

 

 

 

Does that help?

 

Ben

Message Edited by Ben on 05-01-2009 06:16 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 10
(3,296 Views)

Thanks guys.

 

I'll try out dynamic loading of a static VI which returns the class constant.  I can couple this to my "init" procedure so that the classes are ready to use at load-time.

 

For anyone else interested, here's the post which sorted me out.

 

Tomi Maila to the rescue.

 

Shane.

 

PS Thanks Ben, but that VI isn't available in LV 8.2.1.  Only came in 8.5 IIRC.

Message Edited by Intaris on 05-01-2009 06:36 AM
0 Kudos
Message 8 of 10
(3,283 Views)

Intaris wrote:

Thanks guys.

 

I'll try out dynamic loading of a static VI which returns the class constant.  I can couple this to my "init" procedure so that the classes are ready to use at load-time.

 

For anyone else interested, here's the post which sorted me out.

 

Tomi Maila to the rescue.

 

Shane.

 

PS Thanks Ben, but that VI isn't available in LV 8.2.1.  Only came in 8.5 IIRC.

Message Edited by Intaris on 05-01-2009 06:36 AM

 

Yes thanks to Tomi who really made the diference in my app being successful.

 

For LV 8.5 and moving forward, the code I showed will serve as an example.

 

Sorry if it that is not available in 8.2.1. After fourteen versions of LV, it starts to get hard to rememeber which version had which functions.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 10
(3,276 Views)

Intaris wrote:

Thanks guys.

 

...

 

Tomi Maila to the rescue.

 

...


 

That link to Tomi's example is bad due to LAVA I crashing.

 

Here is a new link to that example on Expresion Flow.

 

Again thanks to Tomi Maila for teaching us.

 

Ben

Message Edited by Ben on 04-29-2010 10:07 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 10
(2,985 Views)