LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Variants to specific types

Solved!
Go to solution

Hello to all

 

I have a function wich can return Valaues in different Datatypes e.g. String,Double,I32 as Array of Variants.

Whats the best way to convert the variants to its datatype?

I tried some different solutions and in the end i got this (from https://forums.ni.com/t5/LabVIEW/Parse-array-of-variants/td-p/3100163/page/2😞

Array of Variants to cluster.png

 

Are there any simpler, better solutions?

 

Best regards 

0 Kudos
Message 1 of 4
(328 Views)

What are you trying to do?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(294 Views)
Solution
Accepted by topic author python007

Hi,

 


@python007 wrote:
raphschru_2-1759504939011.png

 


It seems you already have a function that converts a cluster to an array of variants, just use the opposite function!

 

Personally I would use OpenG Toolkit functions :

 

raphschru_0-1759504828964.png

 

Regards,

Raphaël.

Message 3 of 4
(279 Views)

 

 

0 Kudos
Message 4 of 4
(200 Views)