LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the default icon for the new VI

Solved!
Go to solution

Another option to override the Ctrl+N shortcut would be to place an item in the menu and assign the Ctrl+N shortcut to that.

 

You should be able to add a VI to the File menu by placing it in the <LabVIEW>\Wizard folder (I believe it needs to be set to auto-run) and after a LabVIEW restart I believe you should be able to configure the menu shortcuts to run that VI using Ctrl+N.

 

With either this VI or with lv_new_vi.vi, you should be able to simply open a reference to your template and then open its FP/BD, so you don't need to write all of the code for generating the template.


___________________
Try to take over the world!
0 Kudos
Message 11 of 12
(518 Views)
Solution
Accepted by topic author CreosoteFish

It worked!

1. Create a VI with a custom icon and error input/output and save it as ".vit" in the "LabVIEW\templates" folder.
2. Create "lv_new_vi.vi" in the "LabVIEW\resource\plugins" folder and place the functions(see image).
In this way, a VI with a custom icon and error input/output can now be opened as a new VI with Ctrl+N.

 

I was not sure how to open the "NewVI.vit" saved in the template folder from lv_new_vi.vi, so I referred to this post.
https://forums.ni.com/t5/LabVIEW/How-to-create-a-default-icon-and-replace-current-one/m-p/2566355#M7...

 

Thank you all very much for your kind help.LV_NEW_VI.PNG

0 Kudos
Message 12 of 12
(499 Views)