LabVIEW Shortcut Menu Plug-Ins

cancel
Showing results for 
Search instead for 
Did you mean: 

Rearrange Cases.llb

Author: Darren (NI)

 

This plugin replaces the built-in 'Rearrange Cases' or 'Rearrange Subdiagrams' menu item for the following structures:

  • Case Structure
  • Event Structure
  • Diagram Disable Structure
  • Conditional Disable Structure
  • Type Specialization Structure

The new 'Rearrange Cases' dialog maintains all the functionality of the original, along with the following improvements:

  • Resizable
  • Drag multiple items at once
  • Sort a selection
  • Delete frame(s)

rearr.png

 

Attachment is saved in LabVIEW 2019. For install instructions, go here.

 

Note: There is also an attachment with the plugin saved in LabVIEW 2015. This version does not include the Rearrange Cases functionality for Disable Structures, as the required VI Server functionality for disable structures was not present in LabVIEW 2015.

Download All
Comments
synchronster
Member
Member
on

Thanks and good timing for my needs.  Can this be done for Labview 2015 SP1?

 

Darren
Proven Zealot
Proven Zealot
on
synchronster wrote:

Thanks and good timing for my needs.  Can this be done for Labview 2015 SP1?

I will update the original post in a few minutes to include a 2015 version. It does not include the functionality for Conditional Disable Structures, as the required VI Server functionality wasn't there in LabVIEW 2015.

parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Hi Darren,

 

I followed the installation instructions, but nothing happened when I selected the Rearrange Cases option.

 

Plugin was placed here - C:\Program Files (x86)\National Instruments\LabVIEW 2016\resource\plugins\PopupMenus\edit time panel and diagram\Rearrange Cases.llb

Mass-compiled

LabVIEW was closed & relaunched

Opened the VI containing my string CS, selected Rearrange Cases option - nothing happened

 

Am I missing something? Could you help fix this issue?

 

 

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

If the menu options is there, it is installed correctly. IIRC, If the plug in is broken in any way, it won't show up.

 

Is this reproducible with other cases? If not, post the failing case structure.

 

You can open the VIs to study them. You can put the Execute VI in a test harness and feed it a reference to a case structure (using a static VI reference to a DUT and a Traverse). This is not as hard as it might sound. You might be able to diagnose the problem.

 

EDIT: If nothing is happening, my first test would be to put a popup message in the execute VI. If that pops up, the mechanism works, and the problem is in the execute VI.

Darren
Proven Zealot
Proven Zealot
on

> Is this reproducible with other cases? If not, post the failing case structure.

 

Yeah, like Wiebe said, if you see the menu option, then the plugin is installed properly (and its Builder VI is running properly). So there must be something peculiar about your case structure. Please post the VI with the offending case structure. Also, I'd be curious if the plugin works on other case structures, or other multi-frame structures (event structures).

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

Also try this fix:

Bug-Fix-for-ALL-Right-Click-Menu-Plug-Ins-LV2015-to-2019 

 

It might not fix this problem, but it wouldn't hurt.

parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Hi Wiebe & Darren,

 

These are the errors am getting. The snapshots are in the sequence of the operations I performed.

 

 

Rearrange Cases - RCF Plugin Not Working.pngRearrange Cases - Trying to open Execute Reannage Cases VI from the LLB Manager starts searchnig for _LaunchHelp VI in LabVIEW 2019 Folder.pngRearrage Cases - Error in RC_Get Frame Names from Multiframe Structure VI.png

 

 

- Partha ( CLD until Oct 2024 🙂 )
Darren
Proven Zealot
Proven Zealot
on

Partha, I have updated the attachments to fix the issues you described. Please try again and let me know if the latest plugin (either the 2015 or 2019 version, depending on which LabVIEW you're using) solves the problem.

parthabe
Trusted Enthusiast
Trusted Enthusiast
on

Thanks Darren, now it works as expected! 

 

However, the very first time the new dialog popped-up (after the plugin was coped to the appropriate folder), it behaved as non-modal (when I clicked on the VI BD, the dialog went behind it). From the next time, it behaves as modal. Is it possible to fix this?

 

Renaming the plugin to something else, refreshing the menus to bring up the original dialog, again renaming the plugin to the actual, refreshing the menus to bring up the new dialog, however, DID NOT reproduce this issue!

 

One more thing I observed was, the new dialog is always screen-centered irrespective of the size of the BD window, whereas the original one is VI BD centered; in the sense, it positions itself accordingly to the center of the BD window which depends on the size of the BD window.

 

Please see the snapshots below.

 

Rearrange Cases - Original Dialog always VI BD centered 1.pngRearrange Cases - Original Dialog always VI BD centered 2.pngRearrange Cases - New Dialog always Screen-centered 1.png

Rearrange Cases - New Dialog always Screen-centered 2.png

 

 

- Partha ( CLD until Oct 2024 🙂 )
Darren
Proven Zealot
Proven Zealot
on

For the modal issue, I'm guessing that happened because of Windows OS weirdness where sometimes when an application hits the CPU pretty hard, Windows gets confused and changes the window order around. I've seen this in other applications, not just LabVIEW. And it makes sense that you would only see it the first time, since LabVIEW probably had to compile the plugin code the first time it was loaded. I bet if you had mass compiled the plugin prior to its first use this may not have happened.

 

As for the window centering issue, I think I prefer the new behavior. Standard application behavior is that modal dialogs appear centered on the active monitor.

parthabe
Trusted Enthusiast
Trusted Enthusiast
on

DNatt >> "I bet if you had mass compiled the plugin prior to its first use this may not have happened."

 

Should I ?! I thought it was not needed since you had already separated the compiled code from the source file (as per the RCF template standards mentioned over here - https://forums.ni.com/t5/LabVIEW-Shortcut-Menu-Plug-Ins/Template-For-Uploading-Plug-In-llb/ta-p/3521...).

 

 

"enable "Separate compiled code from source file". Do this for all VIs in your .llb file. This will make the same file usable with multiple versions of LabVIEW simultaneously. Without this, users who run multiple versions of LV will have to recompile every time they launch a different version of LV from the one you used to save your VIs."

 

I thought the word "recompile" meant "mass compile". Did I get it wrong?!

 

 

DNatt >> "Standard application behavior is that modal dialogs appear centered on the active monitor."

 

Oh Ok!

 

 

- Partha ( CLD until Oct 2024 🙂 )
AristosQueue (NI)
NI Employee (retired)
on
parthabe wrote: > Should I?! No. You should not have to do this. Darren wrote: > I bet if you had mass compiled the plugin prior to its first use this may not have happened. I would NOT take that bet. Compile happens before the VI starts running, before it asks the OS to become modal. That's entirely out of the way. If this is an artifact of the OS being loaded, it seems more likely to be some other process on your system or a VI that you're running in the background while right-clicking. But not compilation.
Darren
Proven Zealot
Proven Zealot
on
AristosQueue wrote:

I would NOT take that bet.


I guess in theory you're right, but nevertheless, when stuff takes a long time to load/execute, and I see that weird Windows behavior where the window order moves around while LabVIEW is thinking really hard about something, mass compile certainly can't hurt... unless you need the code saved in an older version, that is.