# BreakPoint

cancel
Showing results for
Did you mean:

Highlighted

## Re: Rube Goldberg Code

Now That's the hard way to reformat the display of a Time-Date String  (seen in the wild)

Message 2071 of 2,125
(725 Views)

## Re: Rube Goldberg Code

Another "hard vs. easy" comparison. ALso, that glaring orange hurts my eyes! (Seen here)

LabVIEW Champion. It all comes together in GCentral
Message 2072 of 2,125
(696 Views)

## Re: Rube Goldberg Code

To get 15 different elements of the first row of a 2D array, some people think that we need to index out the first row 17x in parallel (!!!) to get 17 instances of the same identical row, followed by further indexing.

Of course all we really need is a single "index array" resized to 15 outputs (notice that elements #3 and #8 are indexed out twice!) to replace the current 34 instances of index array.

Hopefully, the compiler will eliminate all the common subexpressions, but that still won't make the LabVIEW code any prettier to look at. 😄

LabVIEW Champion. It all comes together in GCentral
Message 2073 of 2,125
(612 Views)

## Re: Rube Goldberg Code

(Well, this is more an anti-Rube-Goldberg, because it is oversimplified beyond usefulness.)

"Hey, Just look at the attached image! You can clearly see that the result is wrong, so how to I fix it????" 😮

(Google translate of entire post: hello that such a good day I have a problem when executing a mathematical operation since when I do the subtraction of 10-8.5 the result sometimes gives me correct but sometimes throws me 1 or another number happens to me in some labels would have some suggestion that I can help me)

LabVIEW Champion. It all comes together in GCentral
Message 2074 of 2,125
(503 Views)

## Re: Rube Goldberg Code

A simple (very simple!) vending machine simulation for seven items apparently needs up to 45 value property nodes per indicator.

This image shows only a small fraction of the code. I wonder how this "architecture" (generous term!) scales for a vending machine containing 100 items 😮

LabVIEW Champion. It all comes together in GCentral
Message 2075 of 2,125
(446 Views)

## Re: Rube Goldberg Code

@altenbach wrote:

A simple (very simple!) vending machine simulation for seven items apparently needs up to 45 value property nodes per indicator.

This image shows only a small fraction of the code. I wonder how this "architecture" (generous term!) scales for a vending machine containing 100 items 😮

That is about as close as we can get to a transliteration of a program written in a text based language.

Ben

Message 2076 of 2,125
(425 Views)

## Re: Rube Goldberg Code

@altenbach wrote:

A simple (very simple!) vending machine simulation for seven items apparently needs up to 45 value property nodes per indicator.

This image shows only a small fraction of the code. I wonder how this "architecture" (generous term!) scales for a vending machine containing 100 items 😮

Re: "Architecture" as a generous term

Message 2077 of 2,125
(416 Views)

## Re: Rube Goldberg Code

@Ben wrote:

That is about as close as we can get to a transliteration of a program written in a text based language.

Ben

Interesting as I have also noticed people coming from a text based programming background tend to over use locals, globals and property nodes from the start.

When I was first starting in LabVIEW one of my colleagues programmed like that. He actually once said "I hate the whole wires running everywhere thing".

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
Message 2078 of 2,125
(405 Views)

## Re: Rube Goldberg Code

This discussion about how to generate a filename:

vs. (better!):

Reminded me of this discussion about how to initialize a "special" array.

LabVIEW Champion. It all comes together in GCentral
Message 2079 of 2,125
(366 Views)

## Re: Rube Goldberg Code

@RTSLVU wrote:

@Ben wrote:

Interesting as I have also noticed people coming from a text based programming background tend to over use locals, globals and property nodes from the start.

When I was first starting in LabVIEW one of my colleagues programmed like that. He actually once said "I hate the whole wires running everywhere thing".

Hence the expression of beginner sickness: Localitis and Sequentitis. 🙂

/Y