04-19-2010 05:47 AM
Hi all,
I wish to put a control on a front panel to select a certain text string, (which will then open a look up table, choose starting parameters etc). I will want to add other items to this control at a later date when further selections are required. I am thinking of putting my selections in a text file and then I can update that file as I wish in the future. The ring menu/text menu then can be generated from this text file and point to the correct LUTs etc. Is this feasible? Or really simple?!
Any suggestions welcome.
04-19-2010 05:56 AM - edited 04-19-2010 06:02 AM
Hello,
I had problems doing this with Enum/Ring, don't know if it changed in new versions.
It works with a listbox (front panel -> modern -> List table, tree -> Listbox)
I can give you the number of actual, clicked or douleclicked row to your program.
You can modify the contents of the complete table manually
or programmatically with a property node: Itemnames -> change to write
Succes
04-19-2010 06:36 AM
Assuming that you will process the "string" displayed in the "list box" or the "ring" properly ,it would be really simple as well feasible
You can create a text file with the proper delimeter (like tab or new line) and read this file and populate the same to the control you wish to using a local variable or a property node during the start of your program.
Guru
04-19-2010 08:24 AM
Hi guys,
thanks for the help. Have it sorted. Created an array of strings from my text file. Placed a ring control on the front panel, and using the property node element strings[] for the ring control I managed to input the strings into the ring control.
Cheers,
Leeser
04-19-2010 09:58 AM - edited 04-19-2010 09:59 AM
Leeser wrote:Created an array of strings from my text file.
04-19-2010 10:06 AM
read from spreadsheet file is probably easier alright. I was emailed a txt file from a colleague who wanted to carry out this task so used his file format...
cheers