03-10-2010 12:36 PM
I mention it in my first message :
----------------
(look at "race conditions " in ben's signature !
----------------
N
03-10-2010 12:49 PM
Mega Kudos truely appreciated!
Just trying to help out since- like most of you Ive:
03-10-2010 02:25 PM
03-11-2010 11:42 AM
nitad54448 wrote:I mention it in my first message :
----------------
(look at "race conditions " in ben's signature !
----------------
N
Apologies, I seemed to skip over that when I read it the first time.
Thanks again all for the advice and words of encouragement!
03-11-2010 11:48 AM
I'm still reading Craig Larman's book on OOP but he talks about how re-writing a program is always easier the second time because you have the first version to use to define the operation and req's.
All of the programs that I have re-written were always better than the first version and always ran better.
If you have the luxury of re-writting it better, then jump on it.
Ben
03-11-2010 12:25 PM
Don't feel like you're going backwards when you rewrite old code using an appropriate architecture and good programming practices. You are actually moving forwards. It's one thing to read about architectures, modularity, best practices, etc. It is another thing to use them. That's how you really learn.
Some years ago, I had some ancient and decrepit code I had written that more-or-less worked. Unsurprisingly, it had various issues. I took the "Intermediate" LabVIEW courses, learned about the joy of appropriate architectures, and started writing code in a completely different way. Naturally, that old code reared its ugly head. Just looking at it embarrassed me.
The program manager wanted a minor change to some of the default values, then wanted an executable built. I asked if I could rewrite it, which would eliminate its performance problems. He said no. I snuck off and rewrote it anyway, using a more appropriate architecture. (If I still had a copy of that old code, I'd post it in Rube Goldberg, but I have since left the company, so I don't. Probably a good thing, I'd open myself to all manner of mockery! ) Then, after rewriting it (which took only a few hours) I compiled it.
The guys who had been using it up until that point were amazed that the compiled version didn't suffer from the same problems that the uncompiled version had!
I never 'fessed up that I'd rewritten it, under specific instructions not to. I would have gotten into trouble.
Then I proceeded to rewrite various other pieces of old code. I learned a lot just by doing that. I also wound up with several VIs that I used later in other projects.
So look at it as an opportunity to become a better programmer! And anyway, it's really kind of fun.
03-29-2010 12:41 PM
Take jpeg picture from the hardisk and do the following:
a)decompose the picture into the RGB arrays and display each color on a separate graph
b) Flip the picture horizontally and display
c) Flip the picture vertically and display
d) Put each three line on a line and display
e) Crop a 200pixels x 200pixels rectangle around the center of the image and display
03-29-2010 12:53 PM - edited 03-29-2010 12:54 PM
michel69 wrote:
Take jpeg picture from the hardisk and do the following:
a)decompose the picture into the RGB arrays and display each color on a separate graph
b) Flip the picture horizontally and display
c) Flip the picture vertically and display
d) Put each three line on a line and display
e) Crop a 200pixels x 200pixels rectangle around the center of the image and display
What exactly do you mean by this post? Do you have a specific question?
03-29-2010 04:46 PM
i have to build a code on labview that it's able to take 2 jpeg picture from the hardisk and to do the following:
a)decompose the picture into the RGB arrays and display each color on a separate graph
b) Flip the picture horizontally and display
c) Flip the picture vertically and display
d) Put each three line on a line and display
e) Crop a 200pixels x 200pixels rectangle around the center of the image and display
thanks anyway
03-29-2010 04:55 PM
michel69 wrote:i have to build a code on labview that it's able to take 2 jpeg picture from the hardisk and to do the following:
a)decompose the picture into the RGB arrays and display each color on a separate graph
b) Flip the picture horizontally and display
c) Flip the picture vertically and display
d) Put each three line on a line and display
e) Crop a 200pixels x 200pixels rectangle around the center of the image and display
thanks anyway
That much I gathered. However, what does it have to do with this thread in particular. Also, what have you done so far? If you are looking for someone to write the code for you to do this then that is not what theses forums are for. Most everyone here is a volunteer and participate to help answers questions and resolve coding issues. We are not here to provide complete solutions. The best way to get help is to ask specific questions. Also, post code (or screen shots) showing what you have done so far. Simply posting some very basic requirements will generally not get you much information.
(Note: If this is a homework problem, which it looks like it might be, then you will rarely get people here to do your work for you. Show us that you are trying to accomplish the task yourself and as mentioned, ask specific questions.)