LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an array with different data types

Hi RENN,

did you try Andreys suggestion?

 

Mike

Message Edited by MikeS81 on 05-04-2009 01:42 PM
0 Kudos
Message 11 of 18
(2,352 Views)

yes mike

 

thanks for your quick reply

 

i need a control where i can edit values.

 

please see the vi attached. 

 

thanks 

Message Edited by RENN on 05-04-2009 07:38 AM
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 12 of 18
(2,341 Views)

Hi RENN,

in this case i think it would be a good solution to use a table as seen in your image. All your values are strings then. You can use a seperate array to store the types.

 

Hope it helps.

Mike

Message 13 of 18
(2,330 Views)

 you mean is it better to convert the string data type(eg-numbers in table) to intiger using one of the string/Number conversion function?

 

i'm actually using a table now. some columns are intended for numbers. but if the end user inserts some letters in the column intended for  numbers (string datatype) these functions returns zero.

 

Message Edited by RENN on 05-04-2009 07:55 AM
Message Edited by RENN on 05-04-2009 07:57 AM
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 14 of 18
(2,326 Views)

Hi RENN,

i'm not sure what you mean. I think it's a better presentation. It looks better if you use a table instead of a big array of cluster of ... 🙂

 

Mike

Message 15 of 18
(2,320 Views)

thanks mike 🙂

 

could you please clarify what do you mean by a seperate array of datatypes?

 

could you please giv me an example vi? 

Message Edited by RENN on 05-04-2009 08:01 AM
Kudos always welcome for helpful posts 🙂
0 Kudos
Message 16 of 18
(2,317 Views)

hai , i need to make an 2d array with differnt datatype in different column (eg: numeric in first column enum in second column string in 3rd column).

Is there any possibility to make ...

 

Waiting for reply

Thanks,

praveen

0 Kudos
Message 17 of 18
(1,856 Views)

@NPK wrote:

hai , i need to make an 2d array with differnt datatype in different column (eg: numeric in first column enum in second column string in 3rd column).

Is there any possibility to make ...


I would make a 1D array of clusters, where the cluster contains a numeric, an enum, and a string, Arrange the cluster elements horizontally and resize the array vertically.

 

See also this idea.

Message 18 of 18
(1,823 Views)