LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table indicator delete particular row

I read the csv file to table indicator after that I need to delete a row of data in table indicator if user likes to delete row 5 if he given number particular number that row should delete 

0 Kudos
Message 1 of 6
(1,241 Views)

Hi venk,

 


@venk_y wrote:

I read the csv file to table indicator after that I need to delete a row of data in table indicator if user likes to delete row 5 if he given number particular number that row should delete 


Just delete that row from your data, then wire the changed array data to your table!

 

Keep in mind: an indicator just displays the data you send by wire…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,237 Views)

If you want to manipulate data by row, you might want to use a multicolumn list box (MCLB) to present data to user.   MCLB has a built-in feature to select data by row.

If you want to edit data by cell, you should use table.

 

George Zou
0 Kudos
Message 3 of 6
(1,191 Views)

Well a "Table" is just a 2D String Array with a fancy front panel, so the standard array tools will work on it.

 

atCapture.PNG

 

Don't forget to update the Table Indicator after you delete rows...

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(1,176 Views)

could you please upload code by taking any random data 

0 Kudos
Message 5 of 6
(1,152 Views)

Maybe a multicolumn listbox might be more suitable, but the logic is the same.

 

Keep the 2D array of strings in a shift register and manipulate the contents. Wire the 2D array to the table terminal directly (make it an indicator! Nobody knows why a table is a "control" by default!!!),  or if using a listbox, write to the item names property as shown in the link below.

 

Try to fully understand and then adapt parts of this piece of code. Should suite your purpose perfectly!

 

altenbach_0-1656153351471.png

 

0 Kudos
Message 6 of 6
(1,142 Views)