11-22-2018 07:52 PM
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:
When accessing the attributes of a custom class, there is no cascade menu. How to achieve this?
Thank you very much!
12-06-2018 05:11 AM
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
12-06-2018 09:01 AM - edited 12-06-2018 09:03 AM
I don't use accessor VIs at all, but I think this is what you're looking for:
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.
12-06-2018 10:51 AM - edited 12-06-2018 10:52 AM
@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 😉
12-07-2018 01:52 AM
@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...