LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
RoyA

"Create SubVI" or "New VI" DEFAULT Template

Status: New
I cannot tell you how much time I spend changing the appearance, properties, connector pane, etc, etc. every time I "create a SubVI".  I try to always use the same connector pattern, error in and error out, error case structure on BD, and even a common icon appearance within a project.  It would save hours over the course of a project if I could set up a template that would be used BY DEFAULT for "create SubVI".  Also, allow me to set that template as the default for "New VI".  Save me the step of File - New - From Template - choose it.  If I go File - New VI, I want to see my default template.  Anyone who has used AutoCAD (2D) in the past will be familiar with this.  One could create a blank drawing and save it as 'acad.dwg' in the AutoCAD program directory and AutoCAD used this as the default drawing template.
2 Comments
jgcode
Active Participant

Personally I just use a template however, this info may help (thanks Kurt) 🙂 

 

Description: When File >> New VI <CTRL+N> is selected, LabVIEW will launch this VI, if present.
Location: ./resource/plugins/lv_new_vi.vi

 

 

Certified LabVIEW Architect * LabVIEW Champion
KittF
Member

There are a couple of entries for this idea.  I hope NI is combining the votes for this idea(s).

 

I'm torn as to whether to create a new idea, but I will instead post this in the 3 Create VI Ideas that I found. 

 

I'd like to add a few more more feature to this idea.  

 

1)

When creating a subVI, it should ALWAYS have the option to add Error In and Out to the connector pane, even if the code does not have error handling implemented (e.g. math operations).  If the Error In/Out already exist, then it uses these.  If not, create them.   

 

2) 

This is harder due to all the options, therefore I have an additional suggestion. This problem has already been solved .... conceptionally.  If you have every used the DLL Wizard that writes wrappers around DLL function calls, you will see that

a) it prompts you on how to handle errors,

b) it makes its 'best guess' at how to wrap the function call, and allows you to modify the 'best guess'.

c) it always has error in/out in the bottom corners

d) it allows you to choose a icon template for the wrapper. 

 

The solution for creating a subVI should be similar and might be able to reuse the framework from the DLL Wizard.