LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Input text into one of the cell in listbox in real time

Hi I tried doing the program that accepts the input into one of the cells of the list box, multi column listbox or table in real time.
I find that there's no way to do that or I cannot find the example  for this method. Use the invoke method to do that? 
 
Labview 7.1
 
Cheers,
Clement
0 Kudos
Message 1 of 7
(4,811 Views)

Use a property node to achieve this

List box: property>>Item names( accepts 1D array of strings)

Multi column List box: property>>Item names( accepts 2D array of strings)

Table: property>> Value ( accepts 2D array of strings)

In your VI, use suitable array functions to add/remove/replace/delete, any of the item names/ cells and keep updating this modified array into your corresponding properrty node

Hope this helps

Regards

Dev

Message Edited by devchander on 08-24-2006 05:00 AM

0 Kudos
Message 2 of 7
(4,812 Views)
Hi Dev.  Thanks for your help. I have done it before.
Of course I have to load data into multicolumn listbox, table or listbox thru programmatically from sources like file or string control.
What I would like to edit into the table or listbox directly in real time without the use of any third party.
 
How do I do to make it editable , so that I can input, just like MS Excel while running?
 
CheersSmiley Happy
Clement
0 Kudos
Message 3 of 7
(4,796 Views)
Of course, save your settings in an excel sheet ( tab delimited), edit it in excel itself and read this file whenver you want to update your item elements
 
You can keep this reading file>> updating item names/cells inside a case structure and thus, update your list box at the click of a boolean
 
look at the pic attached
0 Kudos
Message 4 of 7
(4,790 Views)
I guess what astroboy wanted to say was how to input new text into the list during run. It seems that you can edit any existing texts in the list while running, but I'm not able to figure out how to "newly" type texts into it. Thanks
0 Kudos
Message 5 of 7
(4,732 Views)
Use a table control. In tables, you can type at runtime without having to set up anything. Listboxes can only be populated via property nodes.
0 Kudos
Message 6 of 7
(4,726 Views)

As Dan suggests, using tables will enable you to do that.

Also, to add a 'newly' typed text into a list box, First use a string control to type your test >>and insert this text into the 'item names' array using the 'Insert to Array' function  ( or any other appropriate array function)

Put this inside a case structure to add to list, at click of a button

As shown

0 Kudos
Message 7 of 7
(4,720 Views)