Jump to content

Developing a LabVIEW Add-in


Recommended Posts

Hi all, where is a good place to look for information on developing Add-ins for LabVIEW? What is the proper terminology for "Add-In" in LabVIEW ("Add-in" comes from Microsoft Office)? I am trying to figure out how to get a tool that I wrote in LabVIEW to add itself to the default Menu Bar so I can invoke it easily from other VI's. Any direction you can give would be appreciated.

Thanks,

Charles

Link to comment

QUOTE (Ton @ Oct 21 2008, 12:04 PM)

Thanks for the quick reply Ton, one quick question on the how-to on menu launch link you provided, where do I place the directories they mention there? Also, where do I store my LLB file?

Thanks,

Charles

Link to comment

Out of interest, is there any information in the public domain on hooks into the project window - e.g. creating new context menu items for different entries in the project heirarchy like the Endevo GOOP toolkit manages - or is this all provided only under a NDA with NI ?

Link to comment

QUOTE (Charles Chickering @ Oct 21 2008, 07:34 PM)

Thanks for the quick reply Ton, one quick question on the how-to on menu launch link you provided, where do I place the directories they mention there? Also, where do I store my LLB file?

Thanks,

Charles

The PDF from Jim Kring mention these items.

To get a tool up in the Tools menu place it in the 'project' folder of the LabVIEW directory.

An LLB can be placed in the same directory.

To prohibit automatic indexing of a file (either llb or vi) start the name with an '_'

Ton

Link to comment

QUOTE (Ton @ Oct 22 2008, 03:53 AM)

The PDF from Jim Kring mention these items.

To get a tool up in the Tools menu place it in the 'project' folder of the LabVIEW directory.

An LLB can be placed in the same directory.

To prohibit automatic indexing of a file (either llb or vi) start the name with an '_'

Ton

Thanks for the info Ton. I've got it sort of working. Is there any way to get the VI that was frontmost when the menu was called? When LabVIEW launches my "Tool" it becomes the front most vi. I have tried using the call stack vi to see what called the vi but that doesn't work. I've also tried the application node of frontmost diagram vi but that doesn't work unless I working on the diagram of the front most vi. Is there a way to get the display order of the windows?

Thanks,

Charles

Link to comment

QUOTE (Charles Chickering @ Oct 24 2008, 03:54 AM)

From the wiki page on menu launch VIs

QUOTE

Private Feature Exposed There is a private VI server method called Application:Menu Launch VI may be found exposed on the diagram of the "Web Publishing Tool" (.\project\webdoc.llb\_Web Document Tool.vi) this property returns the last VI to call a "Tools" menu VI (it doesn't work for "Help" menu), but returns it only once then returns a null string until another "Tools" menu VI is selected from the menu. Use this feature to create a tool that operates on the VI that the user launched it from, like "Check into Source Code Control", or something similar. Unfortunately this does not work for the File (.\wizard) or Help (.\help) menus.

See this post.

Ton

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