08-11-2011 03:13 AM
08-11-2011 03:20 AM
What exactly do you mean?
You can create references as seen in the picture...
08-11-2011 04:39 AM
Sorry i didn't have a proper question. I have a LV class - Thread. Which has a VI that runs ascyn. LV is baased on data flow, thus most things are pass by values. However i wanted to hold values for the Object created in the VI therefore it has to be pass by reference.
Whats the generic lass for LV object?
08-11-2011 05:11 AM
You can use a global variable in that case. Check out the link below.
http://zone.ni.com/reference/en-XX/help/371361G-01/glang/global_variable/
Satish
08-11-2011 05:14 AM
08-11-2011 05:45 AM
You can still create references from objects. I was able to do it, in the usual way ( Right click object -> Create -> Reference).
Once you drop the class in block diagram, did you select right - click and 'Change to control' ?
Satish
08-11-2011 07:55 AM
Search this site for "Singlton".
There are a couple of ways of achieving a Singlton in LV. Early versions used a single element queue to hold the data so that only the thread that has the lock on the queue can access it.
An updated version uses a DVR (Data Value Refence) to hold the instance of the class.
If you are developing an Active Object there is supposedly ( I have not read it yet) an Actor pattern recently included in LV.
I hope that helps,
Ben