LabVIEW Idea Exchange

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

Insert class member VI with right click on wire

Status: New

When working with queues is useful to have quick access to queue VIs with a right click:

 

Queue.png

 

It would be wonderful to have the same feature for a class, showing public member VIs:

 

deviceclass.png

9 Comments
fabric
Active Participant
I agree with the general idea of having better access to the relevant class methods. In practice I would modify your idea slightly to "Insert class method with right-click on WIRE"... Seems more natural 🙂
smithd
Active Participant

I like it a lot. I think it fits well with this popular idea (you know, for an LVOOP idea Smiley Wink ). That one just mentions property nodes but I like the concept of shoving the methods int he other half of the palette.

 

Kudo'd

Mads
Active Participant

I thought this functionality was an obvious requirement...it's just silly that it's not in place yet.

MarcoMauri
Active Participant

I agree Mads.

Think about Visual Studio without Intellisense...

 

Marco.

AristosQueue (NI)
NI Employee (retired)

You can already do this... you just have to build the palette yourself. You can set the properties of a class in the Class Properties dialog to pick which .mnu file LV should show in the right-click menu for a terminal or wire of the class type.

 

If you want the palette to be autobuilt, here's the existing idea:

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Quick-Access-to-a-LVOOP-Class-Library-via-the-Right-Cl...

 

 

 

Mads
Active Participant

Sure, you can build you own menu, but it should be a "live" experience where new items are available as soon as they have been created.

 

It should also be aware of the scope. So if you are in a member VI, and you click on a wire, you should get access to the private methods as well, not just the public.

fabric
Active Participant

Build the palette yourself? Meh.

 

I agree with Mads - It has to be live. One possibility is that right-click shows all (relevant) class methods by default, but that any user-defined palette overrides the defaults.

 

PS: No "autobuilt" palettes either, thanks... I just want to see all methods available at that point in time.

Lee_Denaro
Member

I would say an even better idea would be to allow class methods accesible via invoke nodes (similar to accessing accessors via property nodes.) Ins and outs of the method VI would be shown as ins and outs of the method with the same label.

smmarlow
Member

11 years later and still no decision on this very useful feature.  Right-clicking a class wire should have a context menu that allows the insertion of public class member VIs.  Can we at least get a decision?  I did a re-kudo to maybe get this back on the radar screen.