LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
tomlawton

Add "Create SubVI" to right-click menu on diagram selection

Status: Declined

There's already a gesture to create a subVI in LabVIEW 2023 Q3 and later. Select a region of the diagram and (before releasing the mouse button), use the keyboard shortcut Ctrl+Space to open the Quick Change Palette. Many of the options are for placing things (like structures) around the selected diagram code, but there's also an option to create a subVI from the selection.

To "reduce friction" in creating subVIs from portions of code, I suggest adding "Create subVI from Selection" to the block diagram contextual menu- rather than only having it in the titlebar menu.

6 Comments
Christina_R
Active Participant
Status changed to: Declined

There's already a gesture to create a subVI in LabVIEW 2023 Q3 and later. Select a region of the diagram and (before releasing the mouse button), use the keyboard shortcut Ctrl+Space to open the Quick Change Palette. Many of the options are for placing things (like structures) around the selected diagram code, but there's also an option to create a subVI from the selection.


Christina Rogers
Principal Product Owner, LabVIEW R&D
tomlawton
Member

Ahh, thanks Christina- Stuck at 2022Q3, so I hadn't seen that!

However... I would say... it's not unknown for me to have a cat pinning down my left arm, leaving only my mouse hand free... I've already mapped spare mouse buttons to Tab (I'm not fond of  Automatic Tool Selection!) and Delete. So what could have been a simple single right-click, select "Create SubVI", done, will require me to remove the cat from my left arm, press Ctrl-space, and then I can select what I want to happen..... (and then deal with keyboard-mashing cat..!)

Even without a cat on your arm, your UX does seem to involve more disparate input than is strictly necessary..... Also... it's also not inherently discoverable, as contextual menu items- and indeed the VI palettes- are...

Perhaps consider a hybrid approach, adding "Show Quick Change palette" to the right click menu...?

wiebe@CARYA
Knight of NI

>it's not unknown for me to have a cat pinning down my left arm, leaving only my mouse hand free

 

Turn on Window's sticky keys.

 

It's great for cat arm. Been using it for years.

 

Checked, and it works. With sticky keys you can press\release CTRL then press\release Space sequentially, in stead of together. 

 

EDIT: Actually, sticky keys works great for a lot of things, and it makes ctrl+space easier, but since you can't release the mouse it doesn't work for this one.  

wiebe@CARYA
Knight of NI

BTW. By declining, the original idea seems to have disappeared?

Probably the animated gif stops the original from being rendered?


So, I can't review the original idea. Maybe this is it.

 

What if right clicking while making a selection also triggered the quick replace menu?

tomlawton
Member

Yes.. the GIF seems to have borked my original post...

 

Which was simply: Right click on BD selection; add option "Create SubVI". Minimal steps, minimal fuss....

(It might be nice when Creating SubVI from selection to immediately open it too, rather than leaving it hanging unsaved.... Maybe I should try suggesting that separately to see how quickly it's declined?)

 

And I don't seem to be able to grant kudos- perhaps due to the Declined status.

Christina_R
Active Participant

Sorry about the GIF messing up the post rendering. Moving it here instead:

QuickChangePaletteCreateSubVI.gif


Christina Rogers
Principal Product Owner, LabVIEW R&D