View Single Post
  #13   Spotlight this post!  
Unread 09-03-2011, 16:42
Kyoshirin's Avatar
Kyoshirin Kyoshirin is offline
Renaissance Man
AKA: David
FRC #1188
Team Role: Alumni
 
Join Date: Sep 2010
Rookie Year: 2007
Location: Royal Oak
Posts: 54
Kyoshirin is an unknown quantity at this point
Re: Programming goofs!

This isn't so much a programming goof as a Labview goof.

This year, we made a new program every time we wanted to edit our program, and our programmer saved all the variations into a single folder. Near the end of build we were testing the compressor separate from everything else, so we made another program for that. We stop partway through working, save and leave.
The next day our programmer couldn't come, so I took over that part. I opened the non-compressor .vi and it only has compressor stuff. Being utterly confused, I try opening older .vi's and find that they are all the same. We had no clue what happened. Me and another guy on the team began working on a new program to attempt to get all functions back, without ever seeing the actual working program before.
After two days of making new code, we discovered the problem. By saving all the .vi's in one folder, they all had the same dependencies. Begin, teleop, and all the others were used by every new program we made, writing over the old code.
That day we learned to make a new folder for each program.
__________________
Prototypes ARE the final product.