LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variant to Mixed Cluster

I'm logging data to a database using the database toolkit. I'm trying to retrive the data and I get a variant. My question is, how can I convert this variant into a cluster? It should go to a cluster of 17 item of mixed types, but I cannot get the Variant to Data vi to work properly.
0 Kudos
Message 1 of 2
(2,701 Views)
Have you created the Variant "type" Cluster and fed that into the Type terminal. The "type", in your case, will be the 17 items (booleans, ints, strings, etc.) that you expect to have converted. It should be a 1:1 match. The vi will then match your Variant data with your predefined "type" and produce the Cluster data output. If you creat a constant for this terminal and then drag in the 17 types, you should be ok.
Good luck with it, Doug
0 Kudos
Message 2 of 2
(2,701 Views)