05-26-2010 07:57 AM
Hi
I have a vi contains some subvis.One of my subvi take data and process that. Based on the result of processing some variable outside that subvi must be set by user and after that the subvi will continue more processing on data. Now how can i define that variable in a manner that when i change its value exactly my subvi take new value. it must be mentioned that i have no idea about that variable's value.(how can i define a variable for subvi in order to be updated when i change its value out of that subvi?)
Thanks
05-26-2010 08:06 AM
farashi wrote:Hi
I have a vi contains some subvis.One of my subvi take data and process that. Based on the result of processing some variable outside that subvi must be set by user and after that the subvi will continue more processing on data. Now how can i define that variable in a manner that when i change its value exactly my subvi take new value. it must be mentioned that i have no idea about that variable's value.(how can i define a variable for subvi in order to be updated when i change its value out of that subvi?)
Thanks
Thank you for asking!
This Nugget on Action Engines talks about how to share data between multiple threads while avoiding possible race conditions.
They are a very power code construct that are used by many of the most advanced LV developers while alos being useful for the less experienced. Please review that nugget to find out how they are implemented and the advantages of their use.
Just trying to help,
Ben