05-14-2010 10:24 AM
05-14-2010 11:46 AM - edited 05-14-2010 11:49 AM
05-14-2010 12:14 PM
I don't have access to my first few programs, but I know it was terrible. I started with the stacked sequence structure because that is what I saw others do. Yuck.
Then I went to one loooonnngggg block diagram that you had to scroll horizonatlly for a mile. It pretty much was the same as the stacked sequence just stretched out with code in each frame being put out end to end. Yuck again.
Then I learned about state machinces, other architectures, proper use of subvi's, and WORM Globals. Yaaayyy, I've gotten on the right track.
05-14-2010 12:34 PM
I wrote this about ten years ago after discovering all of my disk space disapeared after my son was done using the PC.
It was featured as part of the first presentation by Greg McKaskle in his presentation entitled "The Good, The Bad, and The Ugly" as one of "the Bad" ones.
The zip is attached.
It is a tool analyzes the storage on your hard drive or in a sub-folder and will present the storage as a pie chart where you can click on one of the regions in the Pie-chart to drill down into that folder. At the time there was no other way possible for totaling up the storage on a folder level.
So I used this self-assigned homework to learn how to use the Picture Control.
The part of this code that had Greg McKaskle stumped was I had written my owm bubble sort since he would have just used the "cluster sort".
It was a rough experience hearing my code get ripped apart.
I'd post a screen shot but it fills two monitors and only shows half of the code.
So have fun and I hope this is helpful to someone (at the very least in laughing at how I used to code).
Ben
05-14-2010 12:47 PM
Re: the code i posted above:
THat code was done at home for my own learning only.
No customer was ever hurt in the making or running of that code.
Ben
05-14-2010 12:49 PM
Ben wrote:Re: the code i posted above:
THat code was done at home for my own learning only.
No customer was ever hurt in the making or running of that code.
Ben
LOL ben has to add a disclaimer to his code!
05-14-2010 12:50 PM - edited 05-14-2010 12:52 PM
Colorful, to say the least! I like the amplifier stuff in the upper right corner. Who knows when that will actually execute? Well, besides the compute at runtime.
jcarmody wrote:![]()
05-14-2010 01:03 PM - edited 05-14-2010 01:04 PM
for(imstuck) wrote:Colorful, to say the least! I like the amplifier stuff in the upper right corner. Who knows when that will actually execute? Well, besides the compute at runtime.
05-14-2010 02:48 PM
Does this count as old code? Originally posted here. I may have tried to blame HP, but I think this was my own handywork. Upon reflection, I was an undergrad at the time, so I believe that the 8:36 AM timestamp could only mean that I was up all night in lab.
05-17-2010 09:22 AM
jcarmody wrote:
and hasn't given me a lick of trouble (once I put circuit protection in front of my Aardvark I2C adapter).Message Edited by jcarmody on 05-14-2010 02:04 PM
Jim-
Can you expand a bit on THAT little nugget-
I've got a system that I'm integrating an aardvark I2C adapter into. Sounds like I could benefit from your experience.