02-20-2017 01:18 PM - edited 02-20-2017 01:19 PM
Assuming you start with the correct four input bytes, another option would be a word swap. Same result. 😉
02-21-2017 11:11 AM
Sorry to bring this back to an "old" topic, but I found a nice selection of code. It was actually the shift register button was attached to. I had to split it into 2 halves because it was long.
The biggest offender is the case structure with a constant false, and the false case only passes the cluster and error wires right across. The only reason I could think of is debugging, and then forgot/didn't care to clean up.
The person who wrote this code really loves case structures and flat sequences, and they also don't trust error clusters.
02-21-2017 12:18 PM - edited 02-21-2017 12:37 PM
Instead of using a boolean to determine which case of a case structure to use, Let's use the words "start" and "stop" in strings, but check the length of the string and determine whether it is 4 or 5 characters long. Because you know that "plate" should be just as valid to start something, and "lion" would be just as valid to stop it.
Seen here http://forums.ni.com/t5/LabVIEW/Internal-error/m-p/3586987#M1004531
02-22-2017 07:49 AM - edited 02-22-2017 07:50 AM
@RavensFan wrote:
Let's use the words "start" and "stop" in strings, but check the length of the string
Personally I prefer to use "Init" and "Cease" in that sort of code!
James
02-22-2017 07:57 AM
Or:
"DoIt"
"DoNot"
02-23-2017 09:23 AM
It starts to be interesting when you add "exit" and "error" ... but with the current code you can send "f*ck" and "S4T4N". 🙂
/Y
02-24-2017 08:06 AM
@Yamaeda wrote:
It starts to be interesting when you add "exit" and "error" ... but with the current code you can send "f*ck" and "S4T4N". 🙂
/Y
So how would the documentation read for that case structure?
If it was S4t4n Or is S4t4n and is not f*ck then it is S4t4n
Ben
02-24-2017 09:08 AM
I like the syntax "If it is ABORT or was ABORT and it is not GOOD then, START."
02-27-2017 07:14 AM
@JÞB wrote:
I like the syntax "If it is ABORT or was ABORT and it is not GOOD then, START."
Every time I hear code in sentence form, this (missile guidance description) starts playing in my head.
02-27-2017 07:59 AM
@JW-JnJ wrote:
@JÞB wrote:
I like the syntax "If it is ABORT or was ABORT and it is not GOOD then, START."
Every time I hear code in sentence form, this (missile guidance description) starts playing in my head.
But don't start with Phenomenology 😄
The Dark Star bomb (most important part 11:28)