LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of XControls

Is it possible to create an array populated by a customized XControl? The data type of the XControl is double and I was able to place them in a cluster, but they wouldn't drop into the array. Any help or suggestions are appreciated.
0 Kudos
Message 1 of 4
(2,985 Views)
It is not possible to create an array of Xcontrols. This is not a supported feature. My best advice would be either to use a cluster of Xcontrols, or to create an Xcontrol that uses an array of doubles as the data type.
 
If you would like to make a product suggestion regarding this or other features, you can do so here.
Jarrod S.
National Instruments
Message 2 of 4
(2,963 Views)

"Just" ten years afterSmiley Very Happy

 

https://youtu.be/FRu7WYFvzmg

 

Ben

0 Kudos
Message 3 of 4
(2,499 Views)

You chose an interesting time to bump this, as I just linked to this earlier today, but here's my contribution, and at least you didn't have to wait a decade for that - http://forums.ni.com/t5/LabVIEW/Independent-cursors-on-array-of-cluster-of-graphs-or-work-around/m-p...

 

This has some advantages, like allowing different types of "XControls" (not useful if you actually want to have an array of data, unless it's objects), simplifying the caller, making it easier to have more elements, making the code for each element simpler (you don't actually need an XControl), etc.

 

I never actually had a need for something like this in my code, so I didn't really develop it further, but if I wanted something like an array of XControls, I would probably modify it to use an array of DVRs to keep the data and simply have accessors for modifying specific elements and an accessor for reading the entire array value.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,475 Views)