LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
SteveChandler

Access Class Data with Property Node - Easier Way!

Status: New

You can access the data in your class using property nodes.

 

Property Node.png

 

 

Currently all you have to do is select "Make available through Property Nodes" when creating your accessor. I think it would be cleaner if there were simply an Access Scope setting on the control like so:

 

Access Scope.png

 

 

The idea here is that there is no VI behind the scenes. If you later decide that you want to keep the data private, all you have to do is change the setting. You don't have to remember to delete the VI.

 

I am guessing that the majority of class VIs are simple accessors. This idea will reduce the number of files to create and lug around increasing edit time performance and would make your class libraries load faster.

 

Many people (myself included) do not prefer property node access because they can be big and clunky. A possible enhancement to this idea is to put a "Universal Accessor" in the Cluster, Class & Variant palette that looks and acts like a polymorphic VI.

 

Universal Accessor.png

 

[Edit: the polymorphic selectors in the above image should just say 'Numeric' instead of 'Read Numeric' and 'Write Numeric' as that is implied]

 

=====================
LabVIEW 2012


13 Comments
SteveChandler
Trusted Enthusiast
Excellent suggestion fabric! I think I like having a separate cluster for each scope better. Post that idea and I will kudos it.
=====================
LabVIEW 2012


Brandyn
Member

I think this is a cool idea. I also think this lends itself to how easy it is to access Class data in other languages like Java.

Certified LabVIEW Architect
Certified Professional Instructor
Brandyn
Member

Im curious how this will be on RT.  Ive experienced some weirness with Polymorphic VIs containing classes on an RT system. 

Certified LabVIEW Architect
Certified Professional Instructor