LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW OO: How to run VITs from a class, keeping private method access?

I have a set fo classes for graphing objects that I need to keeep within an OO class to restrict data and method access for ggraphing to the graph UI itself.  The graph UI is a VIT that I instantiate any number of windows.  The problem is:

When labview instantiates a VIT that is in a class, the new instantiated VI such as Graph 6.vi is then no longer part of that class so cannot run any private methods!!!  What is up with that?  How cna one create a UI Object if it doesn't keep the class relationship that it is templated from?

 

Any other ways to instantiate VITs but have those UIs still retricted within a class for private method access? 

 

0 Kudos
Message 1 of 3
(2,236 Views)

Have you tried using it as a reentrant clone instead of a Template?

 

I think this template thing might be a bug, but you need to verify at NI for that.

0 Kudos
Message 2 of 3
(2,229 Views)

Sweeet, you are right.   A re-entrant cloned VI with option 0x80 when opened, keeps the clones within the class scope.  Excellent! and thank you...  Another reason I don't like VITs in LabVIEW (I didn't need one more, sheesh).

0 Kudos
Message 3 of 3
(2,211 Views)