Thanks, it worked just fine.
I know exactly what you mean.
Using LabVIEW as IDE makes programming easy like playing a game.
But design in LabVIEW is as important as description in conventional programming languages.
A good way to clean programming is a design concept.
You have to define your programming design and use it in all your programms.
(Believe me, after some time it goes easier and easier)
Here are some concept ideas I use normaly. They are easy and fast to implement
after some training:
1. Do never create wires behind structures, you might search errors for hours!!! (Move wires above or below the structure.)
2. Use one connector pattern in all of your VIs (except of special VIs), with error in and error out connected to opposite connectors at the same place every time. (This will help you creating a "VI line" and using the "flow" concept of LabVIEW. (Even change the pattern of automatically created Sub-VIs.)
3. Do not move wires around like snakes. (I know it's hard at the beginning, so right clicking the wire and selecting "cleanup wire" helps )
4. Programming VIs, larger than your desktop should only expand in one direction (horizontal, vertical).
5. Use labels on your block diagram for documentation. (I normaly use a special color for documentation labels)
6. If any function might be usefull somwhere else, create a sub-VI. (VI icons should at least have text within)
7. Are you using parallel loops, larger than your desktop? Create seperate VIs for each of them.
8. Move inputs on the left side, outputs on the right side of your block diagram.
9. move labels of inputs on the left border, labels of outputs on the right border. (Implemented as option in LabVIEW 2010)
10. Do never lecture your concept ideas... aaah...
I know these concepts does not work always, but it's much easier to maintain your VIs, if you have a clean concept.
The "Right Click Framework" is also a good way to clean VIs (Thanks to all).
There are two snippets attached as sample for the concept. (First is original, second is changed)
Wow, my hands are burning... I'll need something to cool my head.
Cheers, LogMAN