03-22-2010 12:08 PM
If that was the case, why would someone want to "indicate"/"show" a value that is constant?
I cheated and visited the thread.. I don't think the person was looking for Andy's solution.. 😉
03-22-2010 01:47 PM
Ray.R wrote:If that was the case, why would someone want to "indicate"/"show" a value that is constant?
03-22-2010 05:19 PM
altenbach wrote:
Ray.R wrote:If that was the case, why would someone want to "indicate"/"show" a value that is constant?
It's like someone asking how to rebuild an automatic transmission, and the first answer simply shows a picture of a screwdriver. 😮
As carl sagan once said, "If you wish to make an apple pie from scratch, you must first invent the universe"
03-24-2010 01:55 AM
03-24-2010 10:46 AM
Ray Farmer wrote:
Yeah how do you build an automatic transmisson, is there a VI, and what's a screwdriver....
03-26-2010 06:30 AM
I think this could be a Rube or Global Variable abuse 😮
Found in my old messy code that I'm in the process of rewriting from scratch (for this reason! 😄 )
03-26-2010 07:24 AM
Good catch.
From this image, the only abuse is for not using a wire from the leftmost Local to the "Stop if True" terminal.
I recommend not using Locals or Globals because people usually abuse them. In some cases it is okay to use them.
I wouldn't call it a Rube Goldberg. It does not over complicate the code. Unless there were things in the diagram that are not shown. Or the False Case is also empty ;).
Now without seeing the rest of the code, it is possible that the loop may run only once or may never end. 😉
03-26-2010 10:17 AM - edited 03-26-2010 10:20 AM
If Local Variables are so bad, why is this idea by Altenbach kicking so much ass? (An idea that I helped spawn, BTW
) I guess if they were smaller, they'd suck less.
03-26-2010 10:37 AM
I like the idea of smaller footprints. I'll chip in my 2 cents worth and say that local variables are not always bad. I use them now and then. The problem is that locals are misused so often, especially by Labview novice users and those that are switching from text based languages to graphical languages. Its not that locals are bad, its the improper use of locals that is bad.
03-26-2010 12:17 PM
tbob wrote:The problem is that locals are misused so often, especially by Labview novice users and those that are switching from text based languages to graphical languages. Its not that locals are bad, its the improper use of locals that is bad.
And avoiding the use of Locals or Globals does not make one an expert at LabVIEW.
RayR
aka: unCertifiedForeverNovice