Mark Balla Posted July 23, 2005 Report Share Posted July 23, 2005 In February of 2005 around Valentines Day (icon color scheme Red & Pink) I was working on a project for work that now has approximately 1100 Vis in it. As the program expanded the block diagrams also start to expand so like a good little wire worker I start condensing the diagrams by creating subvis. Now being somewhat of a perfectionist concerning good looking code, I was unable to tolerate the mess that LabView leaves me when a SubVi is created. I found myself spending too much programming time fixing subvis. I was inspired by David Boyds Tunnel wiring wizard and how much time it saved. I had also been tinkering with scripting so I started building a tool that would do all the busy work for me. Thus the SubVI FIXER was bourn. The main purpose of the SubVI FIXER is to reduce the time it takes to cleanup a SubVI that is created by LabView. There are 3 major steps to accomplish this. 1: Wire controls to desired connector pane terminals. 2: automatically arrange front panel objects 3: Clean up. The primary assumption used by the FIXER is the front panel objects relative location is representative of how they are wired to the connector pane terminals. As shown above (error in) is located in the lower left corner and therefore wired to the lower left corner of the connector pane the other controls are also wired to their relative location and are arrange in the same orientation as the desired terminal pattern The Read me document explains all the steps in greater detail. Download File:post-584-1122094477.zip In Short the FIXER works like this. If we start with this The user arranges the front panel to look like this. Adds text for place holders Selects all controls and indicators. Presses Ctrl-Shift-SpaceBar and presses 5 buttons. The FIXER Generates this. Wired, Labels conformed, Front panel arranged, relinked and saved. What use to take me more than 3 minutes now takes me only 50 seconds. Only 1200 more subvis to go and this baby will have paid for itself. I had to seperate the program into 4 parts so I could transfer it to the site. all of the zip files should be extracted into the same folder. Download File:post-584-1122091741.zip Download File:post-584-1122091787.zip Download File:post-584-1122092205.zip Download File:post-584-1122092240.zip I tried to design the program structure to be easy to modify and adaptable. Any coments or feedback would be greatly appreaciated. I realy hope this saves people time. Quote Link to comment
Louis Manfredi Posted July 25, 2005 Report Share Posted July 25, 2005 Hi Mark: Haven't had a chance to download and try the code yet, but looks like a really good solution to a problem that really needed fixing Thanks for posting it & Best Regards, Louis Quote Link to comment
Mark Balla Posted September 15, 2005 Author Report Share Posted September 15, 2005 Is anyone interested in an upgraded version of the FIXER Or does anyone have improvements that they would like included. Quote Link to comment
djolivet Posted September 15, 2005 Report Share Posted September 15, 2005 I'd like to see your improvements... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.