Jump to content

Default vi


Recommended Posts

I would like to be able to set up a default VI that would be AUTOMATICALLY used as a template for all new VIs, ESPECIALLY when I "Create SubVI" on the BD. The way AutoCAD used to do this comes to mind. I could create a drawing with all of my usual default choices and save it as "acad.dwg" in a specific location. Any new drawing would then be created from that template. Currently, as far as I know, you have to open a new drawing from a saved template to do this and there is NO way to control the choices when you "Create SubVI", you have to manually change them every time.

Roy

Link to comment

For "create subVI" this seems pointless, as the subVI is created based on the code you select, so there's no way to know in advance.

For the new VI, you should be able to override this by placing a VI called lv_new_vi.vi in the <LabVIEW>\resource\plugins folder. Here are some details.

I'm not sure, but you might have to write some code there (e.g. to have the called VI spawn a new copy of a VIT). See here for an example of using this method.

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.