From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of variants on the input

Solved!
Go to solution

Why I cannot have an array of variats as a control?

 

After creating one I've got  error saying:

Cluster 'anything': Control contains no elements and is undefined.

 

I've developed some array manipulation code which is suitable to work with different types. Why I cannot ise variants? 

0 Kudos
Message 1 of 4
(2,908 Views)
Solution
Accepted by topic author MimiKLM

Ok,

 

My mistake.

 

I used cluster constant instead of variant.

 

Array of variants is possible.

Message 2 of 4
(2,904 Views)

Hi Mimi,

 

when you create an ARRAY you should not get an error mentioning "Cluster"…

 

I can easily create an array of variant:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,902 Views)

Gerd, I was 1 minute faster in spotting my mistake 🙂

 

Thanks anyway!

0 Kudos
Message 4 of 4
(2,899 Views)