LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

auto conversion of 1D variant array.

I want to ask how to convert a variant array automatically.

I had treated this problem manually by now. 

 

1. a (int)

2. b(string)

3. c(path)

 

Let's assume these 3 elements with different data types are always necessary all together.

I think this may be managed by single type-def control of cluster or two arrays of string and enum.

By input of 3 elements, I got a variant array (3 variant) from some functions.

Have you a simple idea for converting the variant array to original data (arrays or cluser?) automatically by using iterative loop such as for or while?

 

0 Kudos
Message 1 of 2
(2,554 Views)

Take a look at Shane's Nugget on "Function Overloading" for hints as to how he handled it.

 

Preview of that nugget

 

 

...

 

 

... 

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,547 Views)