LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment Table Index

Hi All,
 
   I am using an event to save data to a spreadsheet file and have it showing on my front panel in a table. What I need to be able to do is append the data into the table each time the event is executed. I can't figure out how to increment the table index. Can anyone please tell me how to increment the index of a table to allow data to be appended to it? Any help would be greatly appreciated...
 
Thanks,
Charlie
 
Everything is Free! Until you have to pay for it.
0 Kudos
Message 1 of 5
(3,256 Views)

Hi Charlie,

Take a peak at the BuildArray VI, in the following thead (8 or 9 posts down):

http://forums.ni.com/ni/board/message?board.id=170&message.id=142166

If you create a "local" copy of the table (on table, right-click, create-local) you can use it as a data source (right-click,change-to-read), append the row (or col) and write back to the table.

cheers

Message Edited by Dynamik on 09-13-2005 08:57 PM

Message Edited by Dynamik on 09-13-2005 09:01 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 5
(3,249 Views)

I don't know if this is the problem, but a table is a kind of 2D string array with a few extra attributes. You can use the array functions to deal with them. In this case you need to use the build array function, and wire a 1D array of strings (the new line) into the bottom (of a 2 cell build, just pull it out or add element) and the original table in to the top. This will give a new 2D array of strings with a new line at the bottom. Wire this to a table and you will see the original table with the new line.
Yours SIncerely
John

0 Kudos
Message 3 of 5
(3,243 Views)

Hey Dynamik,

   Thanks for the response and I will check the link out. Appreciate your reply!

Thanks, Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 4 of 5
(3,225 Views)

Hey John,

   Thanks for the information I will certainly give it a try and see how it work. Thanks for your reply!

Charlie

Everything is Free! Until you have to pay for it.
0 Kudos
Message 5 of 5
(3,224 Views)