LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Talk about Shared clone reentrant execution

when the top VI set Shared clone reentrant execution,  does its subVIs need set  Shared clone reentrant execution?  does its subVIs auto follow the top VI ?

0 Kudos
Message 1 of 4
(782 Views)

No, subVI retain their own reentrancy config.

 

For example, VI-A calls VI-B, if VI-A is reentrant and VI-B is non reentrant, when multiple parallel instances of VI-A try to use the same instance of VI-B, one of the instances of VI-A use the VI-B and once it is released, only then the other instance of VI-A will get to use VI-B.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(762 Views)

There is an old blog series (2012), but it is good information on this subject.  Start here: https://stravaro.com/lvjournal/2012/02/maintaining-state-1/ 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(686 Views)

I guess you can experiment for yourself.  Make a shared clone reentrant subVI, pop a non-reentrant subVI with a wait for five seconds, then place several copies in a top level VI.  Then make the subVI shared clone reentrant.  You should be able to interpret the results yourself...

 

PS I did this myself by accident and was annoyed with the results...

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 4
(653 Views)