cancel
Showing results for 
Search instead for 
Did you mean: 

captio on array

SOLVED
DODI
Member
Solved!

captio on array

Message contains an attachment

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.

13 REPLIES 13
David. B
NI Employee (retired)

Re: captio on array

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
ilotest
Member

Re : captio on array

Message contains an attachment

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

 

 

DODI
Member

Re : captio on array

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

 

 

ilotest
Member

Re : captio on array

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


DODI
Member

Re : captio on array

Message contains an attachment

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

ilotest
Member
Solution

Re : captio on array

Message contains an attachment

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

DODI
Member

Re : captio on array

Thank you for your solution.

 

Regards,

 

Dodi

Bijay
Member

Re : captio on array

Message contains an attachment

Hi Dodi,

 

 

Have a look at VI posted.

 

Regards,

 

Bijay

DODI
Member

Re : captio on array

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