09-19-2023 09:09 PM
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 ?
09-19-2023 09:36 PM
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.
09-20-2023 08:09 AM
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/
09-20-2023 11:10 AM
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...