Quote:
"From what I can tell, your variables in labview are either
controls/indicators, or global variables.If you  want to write to a
control, or read from an indicator, then you are forced to use a local
variable"

Not quite..
If you right-click an indicator or control, you can select "Create"
then "Local Variable".

It is this type of local variable that they are referring to.  It is a
double box with the name of the control or indicator inside.

I find local variable useful.  In a large vi (oh-oh.. I said large!!),
I use the local variable to pass the value to a spot further inside,
while keeping the lines clean.  The local variable can obtain or
provide a value.  Right-click and select "change to read/write".

So if you are using controls and indicators, do not worry about local
or global variables.

For instance, I seldom use Global Variables, the other guy where I
work uses them all the time.  It boild down to a matter of taste,
espceially if you also use TestStand.

So, in short, if you simply use controls and indicators, you are
probalbly doing okay.  I cannot comment on the performance issu,
because there are so many implementation schemes that may affect
performance that the local variables are probably the least of your
worries..

Have fun with LV!!

Enjoy,

JLV

Reply via email to