LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building Array

Hi all,

Please find the attached picture, could someone help me to create something similar using labview?

Basically user key in the value fill and click insert, the value will be inserted into the list below and when user select particular value and click delete, it will delete the value from list.

I am trying to create one and would like to have some guide from you.

Thanks for the effort in advance.



0 Kudos
Message 1 of 13
(3,828 Views)

Hi cheyne,

here is a small example for you.
Hope it helps.

Mike

0 Kudos
Message 2 of 13
(3,821 Views)
Perferct!

Thanks bro..
0 Kudos
Message 3 of 13
(3,819 Views)
Hi,

How if I want to add a delete all button and shift up and shift down button? Could you please show me how i could make that?
0 Kudos
Message 4 of 13
(3,804 Views)
Hi cheyne,
delete all) create a new button, create the value change event and connect an array constant to the array
shift up/down) use the "index array" and "insert into array" function
 
Mike
0 Kudos
Message 5 of 13
(3,793 Views)
Hi,

I am not really good in array, but i manage to do a delete all button by creating a delete all button and create a event for it and once the delete all button is pressed. I do a re-initialize to default value.

As for moving up and down, mind showing me?

Thanks


0 Kudos
Message 6 of 13
(3,774 Views)

Hi cheyne,

i created the two new buttons and made the event for the down button, try to create the up event by yourself. Smiley Happy

Mike

0 Kudos
Message 7 of 13
(3,765 Views)
Hi Mike,

Thanks for the effort.

By the way, if I would like to plot a graph by taking those value that i have inserted in the table to be the x-axis, any idea on how I can do it? I have been thinking about this and just get no clue of it. Hope you can guide me.

Thanks in advance.
0 Kudos
Message 8 of 13
(3,728 Views)

Hi cheyne,

you can convert your strings to a number and use an x-y-graph. Which are your y values?
See the attached example.

Mike

0 Kudos
Message 9 of 13
(3,719 Views)
Dear Mike,

Thanks for the graph,

Please refer to the Vi attached, I have a problem with it. When I click cancelled. The array will automatically cleared. How would I maintain my initial array?

It is like initially I have 2 value in the table, Then I inserted 3 more. Then i click cancel button, it should return to previous 2 value which are already inside the table. But for my case, once i click cancelled. It will just clear the table.

Please advice.


Message Edited by cheyne on 06-11-2008 01:51 AM
0 Kudos
Message 10 of 13
(3,713 Views)