10-08-2014 10:11 AM
A couple that I saw in some code sent to me:
Why not a simple string constant 'Enable IrDA Device'?
When will the next state be 'IRDA_ENABLE_3V'?
10-08-2014 10:13 AM - edited 10-08-2014 10:14 AM
@sebster wrote:
When will the next state be 'IRDA_ENABLE_3V'?
I was going to guess it would be 3V if you close the one button dialog using the red X...but I just tested it and even then it is true. So what is the point of this output? Data flow?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-08-2014 10:20 AM
Nice catches Seb!
Regarding the last one, maybe it was a 2-button dialog earlier?
/Y
10-25-2014 12:56 PM
Your task is to take four boolean controls and build their state into a boolean array with four elements. Any of us could program that in 10 seconds, but others do it in different ways. (seen here)
10-25-2014 01:08 PM - edited 10-25-2014 01:09 PM
@altenbach wrote:
.... (seen here)
Another lead nugget from the same VI:
What is the purpose of building a scalar into an array and then taking the "array max"???? 😮
(Since I am clarivoyant, I can predict that taking the "array min" would probably give the same result! :D)
10-27-2014 07:49 AM
altenbach wrote:
(Since I am clarivoyant, I can predict that taking the "array min" would probably give the same result! :D)
This has to be a case of randomly throwing down nodes and finding ones that don't break the wires when connected. Then keep wiring stuff together until the result is what is expected, then stop because you are done.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-31-2014 06:44 AM
@Hooovahh wrote:
This has to be a case of randomly throwing down nodes and finding ones that don't break the wires when connected. Then keep wiring stuff together until the result is what is expected, then stop because you are done.
DNA/Evolution programming? Random mutations to the code until it's better adapted to the evironment/target! 😄
/Y
10-31-2014 06:50 AM
@Yamaeda wrote:
DNA/Evolution programming? Random mutations to the code until it's better adapted to the evironment/target! 😄
/Y
I've used evolutionary computation with AI / machine learning. Throwing the occasional random noise into a learning algorithm has somewhat similar intentions to preventing integral windup in a PID controller
10-31-2014 07:29 AM
@Yamaeda wrote:
DNA/Evolution programming? Random mutations to the code until it's better adapted to the evironment/target! 😄
/Y
I proposed a game of random scripting when I was first learned about scripting. Start with two inputs, something simple like two booleans. Then have a truth table of what you want. Then setup a routine that would drop random functions from the palette down which is of the correct data type, until there is a run-able routine. Then have it run the VI looking for the expected result. If the result isn't correct, add more random functions until there isn't a broken arrow and then run again.
Theoretically this could produce unexpected ways to get the same result. For more complex functions this could result in a more efficient way of programming a subroutine than the developer...of course the actual output would probably be a fun experiement in a Rube Goldberg using way more functions than it should need.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-31-2014 08:39 AM
Today's delight! 🙂
Stern Warning! When there is no error from the H/W, you should be extra careful with the way you code. 😉