05-28-2018 09:50 AM
I am still trying to figure out the logic and the input requirements where we:
And yes, they read the same local in all cases of the case structure and also right before it. Once is probably enough unless we expect different results.
05-28-2018 09:56 AM
@altenbach wrote:
- Do a logical AND on the byte array with the DBL (even the compiler is puzzled and just puts coercion dots on all inputs!)
What the compile does is the only thing that makes sense to me: the AND doesn't accept floats, so it converts the dbl to I32. Then the [U8] is converted to [I32] to fit it. Output is [I32].
Good one. Totally unclear.
05-28-2018 10:18 AM
Does this qualify? No code posted, but from the description it's Rube Goldberg Code.
06-08-2018 04:55 PM
There are many ways to create a column matrix, some are just easier than others:
06-09-2018 04:45 PM - edited 06-09-2018 04:47 PM
This might be a new record in insanity! (seen here)
Apparently we need a huge 2D arrangement of almost 1000 scalar colorboxes, convert each to the red U8 component, build them into a 1D array using a aztec pyramid of deeply stacked sequence structures, just to reshape it later into the original geometric arrangement.
(I spare you from looking at the entire diagram, this is just the tip of the iceberg that set's the overall tone. You can guess how the rest looks like 🐵
Using an array of colorboxes as the input, here is functionally identical code (still meaningless, but functionally equivalent :D)
06-13-2018 05:24 PM
While this isn't exactly OVERLY complicated, it's something I shamefully admit to doing when I first started teaching myself LV. I didn't know about Case structures, and needed something to execute or not based on a boolean, so here's my janky boolean solution:
06-13-2018 11:51 PM
+1 for the VI naming! 😄
Actually it does work this way for sure! You just need to be careful, and use shift registers for all wires going through the FOR loop, for the False case. We could call this structure as a "single case Case"...
06-14-2018 04:15 AM
@BertMcMahan wrote:
While this isn't exactly OVERLY complicated, it's something I shamefully admit to doing when I first started teaching myself LV. I didn't know about Case structures, and needed something to execute or not based on a boolean, so here's my janky boolean solution:
Not bad, not bad at all. It saves a click to see what's in the other case, to make sure or to find out it's empty!
06-14-2018 07:36 AM
All I see is a coercion dot.
06-14-2018 09:15 AM
wiebe@CARYAwiebe@CARAYA wrote:
Not bad, not bad at all. It saves a click to see what's in the other case, to make sure or to find out it's empty!
Just hope you don't lose errors down stream by not handling the case of a for loop executing 0 times.