05-13-2008 09:09 AM
Ben wrote:...
I play a game while developing where I win if I don't use any locals.
...Ben
05-13-2008 09:16 AM
Globals are equally evil
@MikeS81 wrote:
@Ben wrote:...
I play a game while developing where I win if I don't use any locals.
...Ben
Hi Ben,i play the same game, and i always win.Mike
05-13-2008 09:19 AM - edited 05-13-2008 09:19 AM
05-13-2008 09:36 AM
mathan wrote:
Championsssssssss
I have 2 indicators. If any one of the indicator got a value other than zero, the vi should stop running. I tried to achieve but in vain.
please give me a sample structure.
Mathan
05-13-2008 09:43 AM
I aggree that this example code, is an example to be avoided, about using local variables.
But i dissagree, that they are evil. They are many, even in the Labview examples.
It is not always possible to have a wire. You just have to be carefull, how you use them.
If you don't use local variables at all, you will be forced to use a few more sub-vis, or a notifier, or something.. That makes the program bigger, and a little slower.
I use the fewer i can, and with caution.. but i use them and i like them..
05-13-2008 09:56 AM
05-13-2008 10:20 AM
JoeLabView wrote:
I would have given Gerd 20 stars if I could. Listyen to his advice, it is good.
Why are you using Local Variables? Don't tell me that they are the same as the indicators coming out of the two sub-vi's!!
😞 What about me? I said it first 😞
<sniff> <sniff>
05-13-2008 10:24 AM
@Pnt wrote:
[...]
But i dissagree, that they are evil.[...]
05-13-2008 10:25 AM
JLV views his threads in reverse order (newset to oldest) so I suspect he was already fired up and posting before he got down to (or up to) your post.
Here have some well earned stars for "fighting the war on Locals".
Ben
05-13-2008 10:28 AM