10-27-2013 12:56 PM
Hello,
I fully understand how a functional global variable (FGV) works and its purpose but I have one last question.
How do I guarantee (or how is it guaranteed) that my sub-VI (the FGV one) is not re-entrant, in other words, how am I sure that when an instance of the FGV is running it does not loose the processor to others? Is this an option that I can choose in a sub-VI or is it related to the while loop or case strucure that compose a FGV?
Joao
10-27-2013 02:53 PM
Joao,
This question would be more suitable for the the LabVIEW Board rather than this one.
Re-entrancy is set (or not) in the Exceution page of the VI Properties dialog. It applies to the entire subVI. Non-reentrant is the default for new VIs, so your VI should not be reentrant unless you set it that way or copied it from a reentrant VI.
Lynn
10-28-2013
01:18 PM
- last edited on
04-29-2025
08:27 AM
by
Content Cleaner
Hi Joao,
For a little more background on configuring reentrancy and the options you have available if you do want to make a subVI reentrant:
LabVIEW Help: Reentrancy: Allowing Simultaneous Calls to the Same SubVI
As Lynn said, all new SubVIs will be non-reentrant by default.
Regards,