BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...


Ray.R wrote:

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


Great minds think alike, As shown in the myth I posted here a few days ago.

 

Local Variables are like alcohol. Too much is obviously bad. Occasional, careful use has been shown to provide benefits. Beginners are warned to avoid it altogether.

Message Edited by Broken Arrow on 03-26-2010 01:49 PM
Richard






Message 181 of 396
(8,112 Views)

LOL!! @ Broken Arrow..

 

When young and innexperienced with alcohol, too much will make you sick.

As you drink more, over the years, you know what the tolerance level is...

 

One or two Locals, used occasionally is like the occasional red wine.  😉

 

One or 2 bottles a day may make you see twice as many Locals..  Which is bad!  Race conditions everywhere...

 

LOL!!

Message 182 of 396
(8,099 Views)
So is block diagram cleanup the NI version of the beer goggle effect?
0 Kudos
Message 183 of 396
(8,056 Views)

Hornless.Rhino wrote:
So is block diagram cleanup the NI version of the beer goggle effect?

Well no, because beer goggles make things look better.     

 

That's right I said it.

Richard






Message 184 of 396
(8,050 Views)

Broken Arrow wrote:

Hornless.Rhino wrote:
So is block diagram cleanup the NI version of the beer goggle effect?

Well no, because beer goggles make things look better.     

 

That's right I said it.


Ahh but with simple block diagrams it might. The more complicated ones have some kind of anti-clean-up force field that makes things appear as they really are. In my case it would be a birds nest, or at least it would be if we could have multi layer block diagrams.

0 Kudos
Message 185 of 396
(8,045 Views)

Hornless.Rhino wrote:

... In my case it would be a birds nest, or at least it would be if we could have multi layer block diagrams.


I started to experiment with 3d digrams a long time ago. Here are some preliminary screen shots.

 

 

 

NI already has a patent in place to cover 3d diagrams. See LAVA thread.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 186 of 396
(8,022 Views)

Ben wrote: 

NI already has a patent in place to cover 3d diagrams. See LAVA thread.


 

It does not even really need to be real 3D, but if the UI would take advantage of modern 3D hardware capabilities, we would immediately get unlimited, perfectly anti-aliased zoom, for example.
 
LabVIEW aero? Imagine the hierarchy window in 3D for example. The current 2D layout is getting difficult for larger projects.
 
How about LabVIEW bumptop? We could stick the control terminals on the left wall, indicators on the right wall and the code on the desktop with 3D wires dangling between these areas. 😮 The front panel would show on the rear wall. Clicking on a subVI icon would fly into it, landing in the new diagram, etc. 😄
 
0 Kudos
Message 187 of 396
(8,001 Views)

No you can not directly look at laser code for fear of being blinded.

 

RayF

Regards
Ray Farmer
Message 188 of 396
(7,987 Views)

Ben wrote:

 

NI already has a patent in place to cover 3d diagrams. See LAVA thread.

 

Ben


 

That'd make parallel programming streams nicer to look at. Just rotate it a bit and see both, yet from the side it looks like only one.

0 Kudos
Message 189 of 396
(7,957 Views)

RACE condition: seen here

 

 

 

 

Message Edited by Ray.R on 04-22-2010 08:43 AM
Message 190 of 396
(7,806 Views)