12-18-2015 03:58 PM
This one I love
Follow the bottom wire into the "Build Array" tnear the right of the snip back to its origin Seen Here
12-20-2015 11:42 AM - edited 12-20-2015 11:43 AM
12-20-2015 07:54 PM
@altenbach wrote:
local variable overload. Clearly a text programmer!
I just recently started to notice this but I appreciate the names given to the images you attach.
01-31-2016 12:11 PM - edited 01-31-2016 12:12 PM
"Index array" is such a complicated function and it is difficult to use to get the second element of an array with two elements.
Wouldn't it be much easier to convert the array to dynamic data instead and treat it as scalar form then on??? 😮
02-03-2016 08:57 AM
How to Heath Robinson int to Hex string
02-04-2016 11:05 AM
@yenknip wrote:How to Heath Robinson int to Hex string
Where did you find that? Are there REALLY 255 cases in the 😮 inner nested stacked sequence:O
02-04-2016 11:28 AM
It's vendor driver and example code - and yes among the local variable abuse, nested while loops, stacked sequences, zero error handling, laggy stop button, and ignored VISA buffers, there are 255 cases to the if block.
Even better; the in-to-hex function is in several places and based on the code not being the same, they must have written it from scratch each time:
Still, at least they're not committing the sin of copy/pasting code!
02-04-2016 11:36 AM
There should be at least 256 cases. But considering that Number is a U32. I wonder what their default case is or perhaps extra warnings are thrown for that. (BTW, in that picture, if the value is 255, they will increment it to 256. Wonder what character value they will write to the serial port there)
"I won't be wronged. I won't be insulted. I won't be laid a-hand on. I don't do these things to other people, and I require the same from them." John Bernard Books
02-19-2016 05:07 PM
My favorite:
This is supposed to find all ASCII DLE characters in the stream and place another DLE after so a binary sequence that looks like a msg begin (0x10 0x01) or end (0x10 0x02) will not occur in the data. Honestly, I would've done something similar; my colleague came up with this gem:
Actually, this undoes the action, too. More for less.
03-04-2016 12:47 PM - edited 03-04-2016 12:56 PM
I'm still not sure why this solved his problem because he didn't share the code itself... but this is an interesting way for the code to wait a few iterations before accepting a True boolean. My guess is there's something else in the code that needs a few iterations to fully initialize.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'