11-03-2014 03:22 AM
If I recall the ARINC init code correctly that comes with the cards correctly, it creates a warning when run to say that it passed ok (error code = 1, boolean = F) but actually errors with a different value if the code failure. This seems to be fairly common practice for programmers in some industries and can be very annoying if you are merging errors because the first "warning" on the error cluster in a mergre may not be the reason for the VI not behaving as intended. I would guess that the code is definitely written to perform as you see on purpose!
James
11-24-2014 08:39 AM
Just found this golden nugget:
I'll just replace it with a simple Increment. 🙂
/Y
11-24-2014 09:30 AM
@Yamaeda wrote:
I'll just replace it with a simple Increment. 🙂
Which is exactly what the compiler would do. Of course that does nothing for the readability.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-24-2014 10:21 AM - edited 11-24-2014 10:24 AM
@Yamaeda wrote:
Just found this golden nugget:
I'll just replace it with a simple Increment. 🙂
/Y
nevermind
11-25-2014 08:33 AM
11-26-2014 08:05 AM
I just hope that wasn't me! that looks just like the sort of thing I would have written just to be sure!
11-28-2014 07:22 PM - edited 11-29-2014 11:47 AM
Granted, the problem description was a bit vague but here are two different solutions offered by the community.
One is arguably simpler that the other. 😄
Solution A:
19k of code, 60k of block diagram objects, four loops, three case structures, clusters, building arrays, bundling, unbundling, concatenating tunnels, a rainbow of datatypes (orange, green, blue, pink, ...). etc... 😮
Solution B:
5.7k of code, 16k of block diagram objects, two loops, one case structure, 100% I32. 😄
So... who can simplify it even more? 😉
12-09-2014 11:08 AM - edited 12-09-2014 11:09 AM
12-09-2014 11:30 AM
@altenbach wrote:
Comparing if two 2x2 2D arrays are equal. (seen here).
Should this be set to "compare aggregates"? There should be an indicator on the equal prim if it is ... sounds like an idea for the exchange.
12-09-2014 11:41 AM
Compare elements would have a 2d wire coming out instead of a scalar.