LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indicator vs. control varibles

Dear,

Recently, I met the case of bad using indicator.
In some cases, I can't use a indicator but control.
As you know well, the local varible of a indicator could set "change to Read(or Write)" so I can use the local variables anytime.
I think it is some strange.
I prefer to use the indicator because of not editable.
How about this?

Thanks in advance.
0 Kudos
Message 1 of 2
(2,933 Views)
Abuse local variables have brought trouble. First, for each copy of the local variable, Labview will keep a copy in the memory of its current value. It may not be a problem for a numeric but could waste a lot if the variable is an array. Second, it may bring synchronizing problem or race, if local variables being used as both read and write node. Much care has to be taken when it is changed at different places. If the variable doesn't have to be shown, why don't you just wire the datum to the next node where it is needed?

If all these being kept in mind, I think it is not too bad an idea to use indicators. Actually that are indicators built for.
Message 2 of 2
(2,933 Views)