BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...

Amen...

 

The introduction of the Event Structure was a real blessing.

0 Kudos
Message 331 of 396
(8,024 Views)

@Ray.R wrote:
No comments...
 

I just noticed, as i was reading back over these posts for fun, the case structure comments start with //. I guess this way the LV compiler will ignore them Smiley Very Happy

 

Edit: someone beat me to it

Message 332 of 396
(7,949 Views)

One positive point: At least it's colorful 🙂

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 333 of 396
(7,916 Views)

@Ray.R wrote:

From:  http://forums.ni.com/t5/LabVIEW/Convert-string-array-into-digital-arrays/m-p/2236430#M711263

 


If they had a seqeunce structure, their race condition could be avoided.Smiley Sad

 

I've seen that type of code way to many times.  SHIFT REGISTERS PEOPLE!!!



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 335 of 396
(7,814 Views)

It could have been worse...

 

He could have used globals for this. 🙂

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 336 of 396
(7,807 Views)

Thierry,

 

Don't give them ideas 😉  Next thing they'll be using Shared Variables just because they have the error clusters.

 

Someone provided a nicer solution to the Locals abuse above.  It is also a candidate for Rube Goldberg code.

 

0 Kudos
Message 337 of 396
(7,785 Views)

@ThiCop wrote:

It could have been worse...

 

He could have used globals for this. 🙂

 


Well, at least globals are about twice as fast........Smiley Surprised

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 338 of 396
(7,772 Views)

@Norbert_B wrote:

@ThiCop wrote:

It could have been worse...

 

He could have used globals for this. 🙂

 


Well, at least globals are about twice as fast........Smiley Surprised


But OTOH, you need to carry along twice as many files. 😄

Message 339 of 396
(7,742 Views)

Lets do some performance benchmarks to see which one is the worst... 🙂

 

I'll go for property nodes... 😉

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 340 of 396
(7,715 Views)