LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Row data along with Row Header

Solved!
Go to solution

I have implemented a MWE (minimal working example) that deletes row data based on mouse click event. But as you can see when you run the VI, the row gets deleted and rest of the rows shifts up thus the row headers don't match anymore. Therefore, how can I delete the row data along with its header to keep it clear.

 

Any ideas?

 

 

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 1 of 5
(2,070 Views)
Solution
Accepted by topic author asukumari

Well, you simply need to rewrite the headers. There are two possibilities:

 

  1. Keep the original headers for the higher rows
  2. Rewrite all headers so they are numerically consecutive.

It is not clear what you want, but here is a very simple rewrite for case (1). case 2 should be equally easy. Use the code before the while loop as template. 😉

Message 2 of 5
(2,060 Views)
I basically wanted to delete the entire row w/ headers based on user mouse click event. That is all.
NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 3 of 5
(2,057 Views)

You want the Row Header Strings property. VI attached.

Message 4 of 5
(2,051 Views)

@asukumari wrote:
I basically wanted to delete the entire row w/ headers based on user mouse click event. That is all.

Yes, my example will do exactly that.

0 Kudos
Message 5 of 5
(2,040 Views)