LabVIEW Shortcut Menu Plug-Ins

cancel
Showing results for 
Search instead for 
Did you mean: 

Move unbundle item.llb

Author: Yair Neeman

 

Right click on an element in a Bundle By Name or Unbundle By Name node and select Move down or Move up to move the element up or down and rewire the code to match. This is useful if you have wires crossing each other and you want to move the element in order to prevent the crossing.

 

Before:

BeforeMoving.png

 

After:

AfterMoving.png
 
Note: The code here isn't great, but it does work. It could also benefit from some additions, such as adding support for property nodes, index arrays, build arrays, etc., but that would require some basic changes in how it works.

 

Attachement is saved in LabVIEW 2015. For install instructions, go here.


___________________
Try to take over the world!
Comments
Frozen
Active Participant
Active Participant
on

I really like this plug-in and think it should be included in LV by default.

The only issue I am seeing is that the Undo does not work as expected. After moving a bundled item, using the undo (ctrl-z) will correctly swap the bundled names back, but the vi is now broken. Is there anyway to fix that?

 

Frozen_1-1643315267502.png

 

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
tst
Knight of NI Knight of NI
Knight of NI
on

For some reason I haven't seen this reply before.

 

I do see the same issue in LV 2015 (haven't checked in newer versions) and it appears to be an IDE bug. The VI is broken, but doesn't list any actual errors and pressing the run arrow does cause it to become unbroken and run.

 

I haven't looked inside the code, but I believe this plugin simply uses whatever the standard is for undoing (I think there's simply an enum which tells the framework how to behave), so I don't what about these specific code changes causes LV to think the VI is broken. I haven't tried debugging to see if there's something we can do to let LV try to fix the VI, but it seems unlikely, as the undoing happens outside the control of the plugin.


___________________
Try to take over the world!
_Y_
Active Participant
Active Participant
on

This could be a really good tool but the IDE problem must be resolved.

 

But I found a way around (not the perfect one):

 

  1. Move the element
  2. <Ctl-Z> - The VI is broken.
  3. <Ctl-Z> <Ctl-Sft-Z> - The VI is NOT broken.

 

If there there were no other changes before moving the element; i.e. if there is no room for the second <Ctl-Z>:

 

  1. Move the element
  2. <Ctl-Z> - The VI is broken.
  3. Do any dummy change; f.ex. move a wire or node. - The VI is NOT broken.
  4. <Ctl-Z> - The VI is NOT broken.

 

 

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
Darren
Proven Zealot
Proven Zealot
on

I have filed Bug 3698550 on the Undo issue. I tried several possible workarounds, but none of them worked.

Contributors