06-09-2017 03:35 AM
What function do you use to display that rectangle on the right with all the values?
06-09-2017 07:56 AM
Not a "function", but you can right click a variant indicator and toggle settings to view the type, and/or view the data.
That said, you never would use the variant indicator for a user-facing front panel - by its nature it's totally generic and ugly. Instead, on the block diagram use the "Variant to Data" primitive (or if you need to do more dynamic interpretation of the type, appropriate VIs referenced earlier in this thread - OpenG Variant Tools or NI's VariantInfo VIs). Once the variant is converted to a native type, you have available all the customizable controls/indicators.
Dave
03-16-2018 04:09 PM
The code is much simpler if the cluster is in a control or indicator instead of a constant. In that case, just create a Controls[] property node from it then connect its refnum elements to a Value property node which you can wire to Get Type Information.vi to select your type case.
03-16-2018 05:35 PM
The simplest (and, I think, fastest) code to get the elements of a cluster (including data) is this:
See also this idea.
07-09-2018 06:28 AM
I am a few years late, but you can just use a variant to data instead of flattening and unflattening.
I am using LV2010, so I used the old GetClusterInfo, but the problem is the same. Just to know, the block diagram is still password protected? If not, could someone provide it to me? I'd like to correct the VI myself, but my version of it is password protected
07-10-2018 11:56 AM
Hi Daniele88,
The block diagram is still password protected.
In the future, I would also suggest creating a new forum post so you get more visibility and more responses.