LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control values from references

paul_a_cardinale_0-1765261789731.png

 

0 Kudos
Message 11 of 15
(149 Views)
0 Kudos
Message 12 of 15
(146 Views)

Hi Gerd,

 

Actually there are 11 controls in the array.  The first 4 are the limit values that must be populated before proceeding.

0 Kudos
Message 13 of 15
(121 Views)

Hi Paul,

 

That was very close to what I need.  Thank you for the suggestion.  The only problem was the cluster to array did not like the cluster of variants as can be seen by the broken wires in your post.  With a slight tweak, it works.

 

Thanks,

Jim

JDMarihew_0-1765281569826.png

 

0 Kudos
Message 14 of 15
(113 Views)

Hi Jim,

 


@JDMarihew wrote:

With a slight tweak, it works.


Generic suggestion: when using custom clusters then you should create a typedefinition for such clusters!

 

Advantages:

Using typedefs helps you to create (more) readable code! In your case you would convert the variant back to your cluster typedef and use UnbundleByName to get the limit element values: much more readable and easy to understand what you are testing for.

In your current implementation you rely on some arbitrary array indices that may (accidentally) change later on… 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 15
(108 Views)