01-28-2014 06:18 AM
Please guide me, Functional global varible is reentrant or not.
01-28-2014 06:33 AM - edited 01-28-2014 06:37 AM
A functional global should be set as NON-REENTRANT.
In other words there should be only one instance being called in different places.
Marco
01-28-2014 07:21 AM
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.