LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster with variable elements

hello,

i need an cluster or array where the first and second element is a string.
the third element should be an variable type (double, bool, string).
is this possible???
0 Kudos
Message 1 of 4
(2,724 Views)
You must be using a cluster for this
0 Kudos
Message 2 of 4
(2,720 Views)
You can't use different data types in the same place in the code, so the answer is no. What you can do is use a variant (look in the Advanced>>Data Manipulation palette) as the third element of your cluster and convert the data according to your datatype whenever you need it back. You can also have an array of variants instead of the cluster.

___________________
Try to take over the world!
Message 3 of 4
(2,717 Views)
Refer to this link for the reply.
0 Kudos
Message 4 of 4
(2,706 Views)