05-31-2011 01:07 PM - edited 05-31-2011 01:09 PM
After looking at the code posted by Darin.K here, I thought it would be fun to do forensic archaeology on code like that. The example finder and vi.lib still has pleny of pre-LabVIEW 5 code fragments here and there.
How much can we really tell by looking at old code (or front panels?)
Some telltales:
Is there a good summary table listing the major advancements for each version? (there are the upgrade and release notes of course, but it is a bit scattered).
Anyone remember for example...
05-31-2011 01:56 PM
When I see this, I tend to think old-school.
As to the questions, the only one I can think of off the top of my head is that attributes nodes probably went away with the advent of the VI server in LV5.
In LV2 is what not uncommon to have controls on the right side of a subVI to accept values from the sequence locals. Plus in the good old single threaded days, if there was a problem with execution order of your VI you could just nudge a subVI a little to the right or left to get it just right.
01-08-2016 06:04 PM - edited 01-08-2016 06:59 PM
OK, having some friday afternoon fun, I posted this solution, then I was wondering how unflatten 24bit pixmap actually does it.
Wow, this code is old!!! Again, index array was not resizable, so we needed three instances of it and calculate the incremented positions for the second and third index. Then we convert the three U8s to U32s, shift some of them (some are shifted by 0, a NOOP!) and add them all up at the end.
I get the same result by simplifying the code significantly (bottom). 😄
I would guess it is faster and more efficient. Maybe I should do some benchmarking. 😄
EDIT: nah, my version is only about 15% faster. Not really worth it. 😉
PS: I made also a loop-free version (decimate...join...reshape) which seems even faster by a few percentages. There is probably some slack left. ;)).