03-21-2014 02:28 AM
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?
03-21-2014 03:07 AM
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.
03-21-2014 09:11 AM
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).