LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the same shared variable from several running vi clones?

My problem is that I want to change the same shared variable through several clone vi's ( reentrant option ) which running simultaneous.

I want to change this specific shared variable from any of clone vi's which running together with all others clones.

It seems that it is immposible.

 

Any suggestions?

 

 

 

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

Yes but you will probaly not like the results if you did.

 

Other options include

 

1) Action Engines - Solid corners-stone of LV development going bacfk to LV 2 and are simple to design implement and trouble shoot. May be lacking if you clones have to point a different AE.s

 

2) Use semaphorse to protect the SV but this will only work within a single process context.

 

3) Sinlge element queus - fast and flexible but take more work to understand.

 

4) DVR _ Data Value refereince creates shared memory buffer accesable only via inplace operations.

 

Have fun!

 

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
(1,891 Views)