Paul Dillon wrote:
> I have seen references to "LabVIEW 2 style globals" as an alternative to
> global variables. My question is, how are these alternative globals
> constructed?
> Thanks
> Paul
A LV2 Style global is basically a VI that you construct.
They have input and ouput terminals and a while loop in the
diagram. There are other things you can add such as an
input to read or write.
The basic idea is to use a while with nothing on the conditional
terminal. This makes the loop run once for every time it is called.
The input is tied to a shift register on the left of the loop and the
output is tied to the shift on the right side of the loop.
some more advanced examples are in examples/general/globals.llb
If you look in the help under Functional Global it will
show you a simple
exampl.
Kevin Kent