11-16-2011 04:24 AM
Hello!
I wonder how to set caption for array data.
For example I want to have caption drink in the first column, on second food, and on third desert. As I get in array only numbers bu I can not
find how to make caption for all the columns of the array.
Here is my program.
| drink | food | desert |
| 3 | 5 | 5 |
| 2 | 6 | 6 |
| 2 | 7 | 23 |
Thank you for your answer.
Solved! Go to Solution.
11-16-2011 04:47 AM
Hi Dodi,
Have you considered using a control instead so that you can add headers to the columns?
The Table Control can be found in the Controls Palette under Classic>> List, Table and Tree.
Kind Regards
11-16-2011 04:56 AM
Hello Dodi,
Why you didn't use a Table Control ?
It's a string type but you can convert the content in number like in the exemple. I don't check in details, I never used this control. But you can perhaps change the type of datas.
Rgs
ilotest
11-16-2011 05:41 AM
Thank you for you answer, but I want to have an array type DBL made of numbers and not another array made of string
is it possible just to add some caption in the array type DBL (numbers).
Regards.
Dodi
11-16-2011 06:32 AM
To my knowledge, it's not possible.
In fact, you can revert the conversion of course. At the end you will have a array of DBL
Is it really necessary to have this precision for this indicator / control ?
The GUI shall be dynamic, I mean you need to change the graphic design during running, or your table is static I mean only the table values will change. In this case you can create for each columns a string indicator like a header...![]()
Rgs
Ilotest
11-16-2011 07:10 AM
Than I will have to make a caption for all of the columns, and it will look something
like this.
Is this what you mean.
Regards,
Dodi
11-16-2011 07:49 AM
Hello Dodi,
Yes it's like I thought, but from my side I will use really the Table control. It's looking professional, and you can modify the size of each column/row during running...
Rgs
Ilotest
11-18-2011 05:20 AM
Thank you for your solution.
Regards,
Dodi
11-18-2011 05:56 AM
Hi Dodi,
Have a look at VI posted.
Regards,
Bijay
11-18-2011 07:26 AM
Hello!
I can not open the file in LabVIEW, as I have LabVIEW 8.6. Could you be so kind and send me
program in LabVIEW 8.6.
Thank you
Dodi