LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

captio on array

Solved!
Go to solution

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.

0 Kudos
Message 1 of 14
(3,507 Views)

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

 

David B
Applications Engineer
National Instruments UK
0 Kudos
Message 2 of 14
(3,500 Views)

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

 

 

0 Kudos
Message 3 of 14
(3,498 Views)

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

 

 

0 Kudos
Message 4 of 14
(3,481 Views)

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...Smiley Indifferent

Rgs

Ilotest


0 Kudos
Message 5 of 14
(3,474 Views)

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

0 Kudos
Message 6 of 14
(3,468 Views)
Solution
Accepted by topic author DODI

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

Message 7 of 14
(3,464 Views)

Thank you for your solution.

 

Regards,

 

Dodi

0 Kudos
Message 8 of 14
(3,441 Views)

Hi Dodi,

 

 

Have a look at VI posted.

 

Regards,

 

Bijay

0 Kudos
Message 9 of 14
(3,434 Views)

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

0 Kudos
Message 10 of 14
(3,424 Views)