LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Functional Global Varibale is reentrant or not

Please guide me, Functional global varible is reentrant or not.

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

A functional global should be set as NON-REENTRANT.

In other words there should be only one instance being called in different places.

 

Marco

 

 

 

Message 2 of 3
(2,303 Views)

Just to muddy up the conversation...It depends!

 

There are situations where you want to have a FGV be reentrant (preallocate clones).  Look at the Mean Pt-By-Pt VI.  It is a FGV that is set to reentrant.  This is done so that you can have multiple loops/signals performing means with the same VI and they keep their own data.

 

But for the most part, FGVs should be set to nonreentrant for the sake of sharing data amonst you different loops and protecting the data.


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
Message 3 of 3
(2,287 Views)