LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Implement the Cascaded Menu of LabVIEW Attribute Node and Call Node

Excuse me, how to realize cascading calls of class attributes and methods? A list of properties and methods similar to controls? The cascade menu of the system's own attribute nodes is shown in the following figure:XY图的属性的级联菜单XY图的属性的级联菜单

 

 

 

 

 

 

 

 

 


XY图的方法的级联菜单XY图的方法的级联菜单

 

 

 

 

 

 

 

 

 

When accessing the attributes of a custom class, there is no cascade menu. How to achieve this?

 

Thank you very much!自定义类属性访问,为何没有级联菜单?自定义类属性访问,为何没有级联菜单?

0 Kudos
Message 1 of 5
(2,180 Views)

I am sorry I can not understand what you mean. As far as my understanding, if you put an controller in Block Diagram, it is like your screenshot. But if you put the controller in Front Panel, it will show up cascaded menu of property node and call node. 

You can refer the links as below

http://zone.ni.com/reference/zhs-XX/help/371361R-0118/lvhowto/creating_lv_classes/

http://zone.ni.com/reference/zhs-XX/help/371361R-0118/lvconcepts/using_classes_app/

 

Liu Sang

National Instruments

0 Kudos
Message 2 of 5
(2,125 Views)

I don't use accessor VIs at all, but I think this is what you're looking for:

https://boringengineer.com/2018/06/05/organizing-class-accessors-in-labview-object-oriented-programm...

 

In short (in case the link gets invalid at some point):

In the Item settings of the class properties, prepending the Localized Long Name with something and separating it with a colon will make it appear in a menu. So item becomes sub:item.

Message 3 of 5
(2,112 Views)

@wiebe, you don't technically have to use this method only with accessor VI's. Any VI in a property definition folder will let you stick it in a property node 😉

0 Kudos
Message 4 of 5
(2,103 Views)

@BertMcMahan wrote:

@wiebe, you don't technically have to use this method only with accessor VI's. Any VI in a property definition folder will let you stick it in a property node 😉


OK, but I don't see any benefit in inserting property nodes over sub VIs. I might glance over it again at some point...

0 Kudos
Message 5 of 5
(2,081 Views)