Jump to content

quick create a new vi from template 0.9.4 LV7.1


1 Screenshot

About This File

Installation:

Copy the contents to LabVIEW xxxx/resource/plugins

Abstract:

Speed up creating new vi's from templates!

It's using the 'new vi'-hook to create the new vi from a custom template. A plugin architecture allows to map different templates to the keyboard.

For a quick-start, try Ctrl+N followed by 'H' (without releasing the Ctrl key).

Detailed Description:

When using

  • New -> Blank VI from the Startup Window
  • File -> New VI from the menu of any vi
  • or the Ctrl+N shortcut
the lv_new_vi.vi hook is called.
Releasing of the Ctrl key (when using the shortcut) uses the Default.vit. The next key-press k creates a new vi from the template [...]/plugins/lv_new_vis/templates/k.vit. This is case insensitve and only works with a..z and SPACE. If no template is found or if an error occures, the default action of LabVIEW (empty vi) is performed (Failsafe).
In addition to normal vi templates it supports global vi templates and control templates.
Even more customization is possible using special tags on the vi or vit. Use
[...]/plugins/lv_new_vis/tools/lv_new_vi__TagEditor to read and set them:
  • isBD_ToFront? bring the block diagram in front instead of the front panel
  • isRunMe? will instead run the vi in the template folder. Use this for wizards, more sophisticated scripting and other dialogs.

Examples (V0.9.3: seperate ogp package):

Try the following keys to see the different possibilities:

  • f: normal vi, FP at front
  • b: BD at front
  • g: global vi
  • c: control
  • w: wizard
  • h: help

You do not need to delete the demo templates, a w.vit will load even with w_example.vit present.

Compatibility: Developed in good old 7.1 and tested with 2010. I don't know if it works nicely with the project explorer and did never try to use it with projects, libraries and classes.

Planned Features:

* Error logging

* Redirections via Config file (I will link the standard templates) (Edit: It's faster to just place them in the templates folder.)

V 0.9.1

Fixed issues with the Application Instances of LV8.0 and higher.

Wizards are still launched in the diaolog App.Instance, they need to get the default App on their own.

V 0.9.2

Changes: Closing all references

Beta: Uses VI Activation Event to abort when the user switched to a different app. (See discussion for details).

V 0.9.3

Uses VI Activation Event to check Ctrl-Key when user switches from a diffrent application.

Now available as packages (ogp). Uses a seperate package for the examples.

V 0.9.4

Fixed issues with 0.9.3: After start of LV, Ctrl+N didn't work the first time

Enjoy, Felix


What's New in Version 0.9.4 LV7.1   See changelog

Released

  • Renamed submission by Admin. File remains the same.
  • Like 1

×
×
  • Create New...

Important Information

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