LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what kind of variable?

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

0 Kudos
Message 1 of 2
(2,277 Views)

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

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,267 Views)