LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New to LVOOP - need help

Solved!
Go to solution

@Yamaeda wrote:


Thanks Ben.

I will be displaying, logging to file and graphing.  This will be done in a paralell loop. typically I would send data through a queue but it is my understanding in LVOOP this would violate encapsulation.  Im thinking I need to create a reference, since objects are by-val but I'm unsure of the actual implemnentation of this.


I see you've already got an answer, but i had to comment on this.

Having functions to Get or Set data is in no way a violation of encapsulation. Direct access and manipulation of the data from another place is. If you e.g. have an AE with the data instead you have no protection of the data and although you might implement it so that noone touches it, it's not encapsulated.

 

As to LVOOP and by-value, G# and GOOP uses references to the objects. G# also inherits from a core G# object (inspired from C#) so you can send a G# object ref as event data and work with any object in the consumer.

/Y


Thank you for your response. 

0 Kudos
Message 41 of 41
(488 Views)