BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...


@TiTou wrote:

there is worse than locals... take a look at the VI attached in this posSmiley Surprised


Well, they didn't use any local variables.Smiley Wink

 

That reminds me of a crusade I had many years back.  NI kept saying "locals are bad".  So what did these C programmers using LabVIEW do?  Use the value property node.  And then they complained that LabVIEW was slow and they still had their race condition issues.  What was even scarier is that people who came from other companies did the same thing.  I took a prime opportunity to show them the error of their ways.  But is was a stuggle to get it through some of their thick skulls.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 281 of 396
(8,191 Views)

@crossrulz wrote:

  But is was a stuggle to get it through some of their thick skulls.

Perhaps use an indexed tunnel.

0 Kudos
Message 282 of 396
(8,162 Views)

@Hornless.Rhino wrote:

@crossrulz wrote:

  But is was a stuggle to get it through some of their thick skulls.

Perhaps use an indexed tunnel.


I believe this is the code you are looking for

Thick Skull.png

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 283 of 396
(8,136 Views)

@JW-L3CE wrote:

@Hornless.Rhino wrote:

@crossrulz wrote:

  But is was a stuggle to get it through some of their thick skulls.

Perhaps use an indexed tunnel.


I believe this is the code you are looking for

Thick Skull.png


Except they were trying to do this

thick skull.png

Note:  The Rube Goldberg code was on purpose



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 284 of 396
(8,121 Views)

TiTou a écrit :

there is worse than locals... take a look at the VI attached in this posSmiley Surprised


One important thing you can learn from this VI (screen capture from the code) :

 

STOP.jpg doing it this way !

Message 285 of 396
(8,117 Views)

Here's another thread with the abuse of value property nodes.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 286 of 396
(8,084 Views)

I like Titou's comparison to a Belgian traffic/signal light.  LOL!

0 Kudos
Message 287 of 396
(8,047 Views)

@Ray.R wrote:

I like Titou's comparison to a Belgian traffic/signal light.  LOL!


famous french joke... Smiley Wink


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

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

@TiTou wrote:

@Ray.R wrote:

I like Titou's comparison to a Belgian traffic/signal light.  LOL!


famous french joke... Smiley Wink


For those of us that only speak Google Translate I hope someone can clairify this

"It is a Belgian flashing your system, once he walks, he suddenly does not work ..."

 

There seems to be something I am missing about Belgian flashers.


"Should be" isn't "Is" -Jay
0 Kudos
Message 289 of 396
(8,005 Views)

google's translation will never match human translation Smiley Tongue

 

Human translation would be :

"A Belgian indicator (we're talking about those little flashing lights on cars) only works half the time : works, doesn't work, works, doesn't work..."


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 290 of 396
(7,999 Views)