08-21-2019 09:17 AM
Now That's the hard way to reformat the display of a Time-Date String (seen in the wild)
08-21-2019 12:00 PM
08-29-2019 10:44 AM - edited 08-29-2019 12:05 PM
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. 😄
09-17-2019 03:54 PM
(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)
09-19-2019 03:36 PM
( Seen here )
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 😮
09-20-2019 07:56 AM
@altenbach wrote:
( Seen here )
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
09-20-2019 08:34 AM
@altenbach wrote:
( Seen here )
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
09-20-2019 09:16 AM - edited 09-20-2019 09:18 AM
@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".
09-20-2019 05:33 PM
This discussion about how to generate a filename:
vs. (better!):
Reminded me of this discussion about how to initialize a "special" array.
09-23-2019 07:13 AM
@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