LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible that using property node to delete or add items?

Thanks,

What I need is to edit items, i.e., add, remove, or disable items in

Menu Ring, (or string Ring) during runtime. (I can do that on individual controls.)

I expect to be able to go through each Menu Ring control in an arrays by using "indexing-array",

edit their items.

===============

Even though I can construct an array on the Front Panel with Menu Ring elements,

the single element from this array by using "inex-array" is no longer in Menu Ring type,

they are pure data, integer or float type without items.

=======================

 

0 Kudos
Message 11 of 13
(528 Views)
All the elements of an array are identical except for value. You cannot have different items or different enabled/disabled status for different elements.

Do you want to indicate to the user (by disabling the items) that certain values are not available because they have already been used?

Perhaps you need a different structure. Since this only has to run fast enough to seem responsive to a user, doing some data transformations between the User Interface and the calculation process should not be a major performance hit. Perhaps a cluster of rings as the user interface and arrays of numerics for the calculations.

A Property node of the cluster is Controls[], an array of references to the controls contained in the cluster. From the controls references you can gain access to the properties such as Strings and Values[] and Disabled Items[] of the individual controls. Some of these things may not have been available or may have slightly different names in LV 7.1.

You should definitely look at using event structures and state machines for your project.

Lynn
Message 12 of 13
(524 Views)
Thanks a lot.
I am going to try that.
 
Fan
0 Kudos
Message 13 of 13
(521 Views)