12-02-2014 01:22 PM
When I go to wire a labview table control to a labview table indicator and run the program, the row and column headers dont move from one table to the other. A fix for this is to use property nodes for the control table row and column headers and also wire them to the property node for the row and column headers for the indicator.
The challenge comes in when I am dynamically changing the table row headers and column headers for each file that I read in and populate the table with. As I read in another file, I want to collect the tables into an array for later use. How do I collect tables with different row and column headers with simple programming techniques?
Solved! Go to Solution.
12-02-2014 07:09 PM
I cannot open your code, because I use LabVIEW 2013.
The table control is already an array, so it is not possible to create array of tables. But you can use a singe Variant control and store all your different tables as variants attributes.
And maybe you can use a functional global with a variant shift register, where you can add and get tables based on some table ID.
12-02-2014 07:59 PM
You need to make a user interface that provides that functionality. For example, you might have an array of tables control (not part of the UI, just for data) and a table indicator and a numeric control that acts like the index. In the block diagram you could have an event structure that responds to value changes in the numeric control. When the even is triggered you index out the nth table from the array and dynamically populates the headers.
12-04-2014 08:50 AM
The table is inside of a cluster which is in an array. Why cant I have different tables in these array element clusters? Because of the table attributes not being able to be different in each cluster ??
12-04-2014 08:50 AM
The table is inside of a cluster which is in an array. Why cant I have different tables in these array element clusters? Because of the table attributes not being able to be different in each cluster ??
12-04-2014 09:00 AM
@id wrote:
The table is inside of a cluster which is in an array. Why cant I have different tables in these array element clusters? Because of the table attributes not being able to be different in each cluster ??
Every control/indicator in an array must have the same properties. This means that all of your tables in the cluster in the array will all have the same headers. Of course, you could just put the header data in the table data itself and then you have all of the information.