I tried to implement a VI which is part of a class and should access the private data after an asynchronous call. This is not possible, because, when I wire an object to a VI it is call by value and not call by reference. What I would like to have is something like this:
See the little key for referencing the private data. Just like a global one. I'm totally aware that this may cause side effects, but by this I could easily create a actor model OOP based. This would mean better encapsulation than other approaches.
In my example I wanted to create a control system for an oscilloscope. All settings should be stored in the object. For each oscilloscope there should be an object. Unfortunately, there is the need of running a while loop in the background. This needs an asynchronous call. But as the background loop is running, changes in the setting should immediately impact the behaviour. If I wire the object to the asynchronous call, a copy is made and changes in the object wont affect the behaviour. Therefore, I would need life access to the private data.
I hope it is clear, what I want and why I want it.