LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete an item from menu ring

Hi
 
How to delete an item from ring control.
 
I am able to add a n item to ring control but not able to delete an item.pls give me suggestions how to do that.
 
Thanks
0 Kudos
Message 1 of 18
(3,893 Views)
Hi Veeru,
you connect an array to the property node and all elements contained in this array will be displayed in the ring, so if you connect an array with other elements you can chage the visible elements. If you read the old elements, delete some of them and write the new array to the property node, then you delete them.
 
Hope it helps.
Mike
Message 2 of 18
(3,889 Views)

Is this what u need?

Hope this helps!

Mathan

0 Kudos
Message 3 of 18
(3,888 Views)

Thanks Mike and Mathan

Mathan,in that example i am not able to 1 element(whatever the last element in the control remains there).

Thanks

0 Kudos
Message 4 of 18
(3,870 Views)
I'm not sure what 'able to 1 element' means but if you can't delete the last element, you've done something wrong. As usual, you need to post your code if you expect help in fixing it.
Message 5 of 18
(3,862 Views)
Thanks Dennis
 
Sorry that program"Deleting an element from control is working "on its own,but i have problem in the attached vi"Add"
Download All
0 Kudos
Message 6 of 18
(3,843 Views)
Your code makes no sense. Why do you have a loop for the Delete operation? Your "Add" VI is doing both an add and a delete, but the add only if you press the button.
Message 7 of 18
(3,831 Views)

Thanks Smercurio

Sorry for late reply

The vi i attached "Add" didnt deletes all the value and not adding any values,could u tell me what is the error

Thanks 

0 Kudos
Message 8 of 18
(3,810 Views)

Hi Veeru,

what do you mean with "didn´t delete all the values"? At the moment you can delete only one element per iteration. How shall your vi work?

Mike

Message 9 of 18
(3,808 Views)

Thansk mike

Yes,it deletes only 1 element per iteration.when we keep deleting the elements step by step 1 or 2 elements is not deleted. when i use the program for deleting the elements on its own i am able to.i am sure in that Add vi i have made mistake but i dont know what is that.

Thansk

0 Kudos
Message 10 of 18
(3,806 Views)