06-11-2014 04:32 AM
If you want to see some bad LabVIEW drivers, take a look at Excalibur's 1553 drivers. They are pretty much DLL wrappers, but they are still so horribly written. I ended up redoing a bunch of them. The main offender for those were the fact that every VI had the same icon. So you had no clue which VI was being called.
06-11-2014 08:34 AM
You submitted feedback to the IDN Right? They do respond to your concerns when you hit that button.![]()
06-11-2014 11:22 AM - edited 06-11-2014 11:24 AM
@thoult wrote:
That's beyond Rube Goldberg code!! That's just wrong!! ....... okay... yeah... it is RG code... Those SSS can be nasty and this is a fine example of it.
06-11-2014 11:35 AM
@Ray.R wrote:
@thoult wrote:
That's beyond Rube Goldberg code!! That's just wrong!! ....... okay... yeah... it is RG code... Those SSS can be nasty and this is a fine example of it.
How many times do we need to disable all those controls in a greedy loop? That CORE is smoking hot! Can the mouse even move to click Stop?
06-11-2014 12:15 PM
I know...
My original reply was that of a "Grumpy Old Man"... So I changed it to something... well.. boring politically correct..Just how many times do you need to disable a control? Once every millisecond? And then do it again if you start a cycle (run the code, etc). And what's up with those Local Variables (Axis)? Nice straight wires would do the trick.. No visible race condition, but it would reduce congestion in the Case Statement.
Of course, I have not seen the rest of the code.
06-11-2014 03:57 PM
@Ray.R wrote:
Of course, I have not seen the rest of the code.
Lucky you - there are some things you just can't unsee ![]()
07-04-2014 02:55 PM - edited 07-06-2014 06:26 PM
Another public message from the "Complex is Simpler" department. (Seen here)
It is a good programming exercise to display an analog clock using an xy graph. try it!
(Yes, using a gauge with three hands would be simpler, but let's keep the front panel the same).
However, why would it need
(top image)
If all that's really needed is a small while loop and a little bit of code (bottom image). 😄

07-08-2014 10:07 AM
@altenbach wrote:
Another public message from the "Complex is Simpler" department. (Seen here)
It is a good programming exercise to display an analog clock using an xy graph. try it!
The are are no limits for simplification
![]()
07-08-2014 10:28 AM
@Andrey_Dmitriev wrote:
@altenbach wrote:
Another public message from the "Complex is Simpler" department. (Seen here)
It is a good programming exercise to display an analog clock using an xy graph. try it!
The are are no limits for simplification
Well, 3014kb >> 20kb. Arguably, 20kb of code is "simpler".:D
In fact, your "simplicity" is only achieved after the fact, because you needed my full code to generate the diagram constant in the first place. Your code would require significant and complicated effort to be generated starting with a blank VI. 😮
OTOH, I use lookup tables very often in my own code. They are often great! 😉
07-08-2014 10:34 AM
altenbach wrote:
Well, 3014kb >> 20kb. Arguably, 20kb of code is "simpler".:D
The code was only 3.5 KB, but the data - you're right. Yeah, simplification is sometimes compromise... ![]()