ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

object oriented

I am learning object oriented in labview, and I have serveral questions.  

 

1. If my class data has 10 data members, do I create one accessor VI for each data members or do I create only one accessor VI and create a cluster for the data members?

2. One advantage of using a class is to eliminate cluster.  If that's the case, does that mean method vi in a class should not have a cluster as an input or ouput (except for the error cluster)?

3. Sometimes, a class vi would have additional inputs besides an object.  If that's the case, should these additional input become data members of the object's class?  This way, a method VI will always have 2 inputs, object and error cluster.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 2
(2,732 Views)
0 Kudos
Message 2 of 2
(2,718 Views)