LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete programmatically a an item of a string ring control

Hi,
I'd like to know what's is the property node wich can give the value of the digital display, because I have a ring control and I need to allow the user to add or remove some of the items
I succed to do it for adding but not for deleting, and I think it is because I cannot find a property node on the value of the digital display, the property node value only gives the value of the current item.
I attached a capture of my program.

Thanks

Olivier

0 Kudos
Message 1 of 4
(3,376 Views)
Hi Olivier,

using property node 'Strings and values' you can read and set the strings of the ring control AND their corresponding value! Make up an array with needed values and wire it to this property node.

In your block diagram you just add (by 'build array') new items to the ring control! You have to look for the selected item (via it's value) and then delete it from the 'strings and values' array!

Message Edited by GerdW on 04-20-2007 12:14 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,372 Views)
Hi,
Could you give me an example of what you are saying "You have to look for the selected item (via it's value) and then delete it from the 'strings and values' array!"
because I don't understand how I delete the item

Thanks
Olivier
0 Kudos
Message 3 of 4
(3,366 Views)
Hi Olivier,

that's easy:

But remember: there's no error checking in the example...

Message Edited by GerdW on 04-20-2007 01:21 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(3,362 Views)