Jump to content

SubVi Fixer tool


Recommended Posts

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.

post-584-1122092564.png?width=400

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

post-584-1122092968.png?width=400

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.

post-584-1122093198.png?width=400

The FIXER Generates this. Wired, Labels conformed, Front panel arranged, relinked and saved.

post-584-1122093259.png?width=400

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. :D

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.

Link to comment
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.