From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Shortcut Menu Plug-Ins

cancel
Showing results for 
Search instead for 
Did you mean: 

Bundle Swap.llb (works on unbundle also)

Author: Wiebe@CARYA

 

Here's a RCF plug in that swaps a (Named)Bundler to (Named)Unbundler and vice versa.

 

As suggested in this idea: Add "Change all to Read\Write" to bundle\unbundle 

 

It's a first attempt. The (re) wiring is a pain, and could probably be improved.

 

Before:

Before.PNG

 

 

After:

After.PNG

 

Attachment is saved in LabVIEW 2018 (and zipped for LV15. For install instructions, go here

Download All
Comments
parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Hi Wiebe,

 

Is this an "Edit-Time" or "Run-Time" plug-in? please clarify.

 

- Partha ( CLD until Oct 2024 🙂 )
parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Hi Wiebe,

 

This feature is working as expected. Thank you! 🤝

 

 

Bundle Swap - RCF Plugin Working as Expected.png

 

However, after selecting the shortcut menu, both the elements were replaced by the same element, in this case, TC_Names.

 

Bundle Swap - Repalces Both Elements with the First Element.png

 

 

- Partha ( CLD until Oct 2024 🙂 )
AristosQueue (NI)
NI Employee (retired)
on
Weibe: please update this post to use this template to describe your tool: https://forums.ni.com/docs/DOC-43461 It helps people sift through plug-ins that they want.
parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Wiebe,

 

I encountered another problem today. Right-clicking on the Unbundle/Bundle node pops up this (unwanted) dialog first, and then shows up the Context Menu items upon clicking Cancel/Revert.

Could you look into this issue?

 

Bundle Swap - Right-clicking pops up unwanted dialog before bringing up the Shortcut Menu.png

 

 

- Partha ( CLD until Oct 2024 🙂 )
wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

>Weibe: please update this post to use this template to describe your tool: https://forums.ni.com/docs/DOC-43461 It helps people sift through plug-ins that they want.

 

I'm not sure why I didn't get the template. I got this automatically with previous posts... I'll try to rectify.

wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

@Partha (naming issue)

 

I've get the same problem with the names changing. Not sure if I got that before, I think I would have noticed. The normal (manual) replace does this too. I guess I have to get the elements and restore after the replace.

 

@Partha (popup dialog)

 

I thing this is because I didn't  separate source code. I'll change this if I update the first issue. I hope this will still be set when saving back to 2015, the save to previous seems to revert this option in some situations.

wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

@Parta

 

The code separation was already on. Not sure where that popup comes from. I don't think it's a VI that I use.

AristosQueue (NI)
NI Employee (retired)
on
That dialog says that you have edited that plugin on disk during this run of LabVIEW after the plugin was used once. It's a problem on the user end, not the NI end. You can run the Refresh VI ( resource\plugins\PopupMenus\support\Refresh Menus.vi ) to fix it or just restart LabVIEW. If it keeps happening, it likely means someone tried to write a plug-in that rescripts the plugin itself.
wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

That VI is now shipped with LabVIEW (All Controls and Indicators and All Constants menu items). 

 

Is it certain the VI is the cause?

Does this mean someone is scripting a LabVIEW VI?

Was this there in LV16 (if not, it's probably downloaded as LV15 VI)?

parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Wiebe >> "The normal (manual) replace does this too."

 

Not only that, it also makes the node jump down by quite some pixels, almost the height of the one element of the node. If someone has to move down such a node all the way down the screen from the top, but is in no hurry to do it immediately, s/he can do this way! 😄

 

Wiebe >> "I thing this is because I didn't  separate source code."

 

No, you have separated it! I just saw that, that option has been selected in the VI Properties.

 

Wiebe >> "the save to previous seems to revert this option in some situations."

 

I think one of them is, when we down-convert from 2016 to 2015.

 

 

- Partha ( CLD until Oct 2024 🙂 )
wiebe@CARYA
Knight of NI Knight of NI
Knight of NI
on

Hmm.

 

Don't use this on an event data node (bundler\unbundler). It will swap, but with empty elements (as there is no wire attached).

 

You can now delete it. A line remains. You'll never get it back...

 

Even in LV2020 if you hide and show it, it won't help.

 

Wire something to the bundle, LV crashes.

 

Guess it needs a bit more TLC to prevent this menu on an event data node...