LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Functional global variable question

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

0 Kudos
Message 1 of 3
(2,592 Views)

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

Message 2 of 3
(2,588 Views)

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

https://www.ni.com/docs/en-US/bundle/labview/page/reentrancy-allowing-simultaneous-calls-to-the-same...

 

As Lynn said, all new SubVIs will be non-reentrant by default.

 

Regards,

Tom L.
0 Kudos
Message 3 of 3
(2,563 Views)