04-24-2014 03:07 PM
Is there a way to add an xcontrol instance to an array? I can do this to a cluster but it doesn't work with array whenever I tried to drag and drop. My xcontrol is actually pretty simple, it's just a 4 items enumeration. Each item has a different color assigned. Nothing too complicated about it really but it won't let me add it to an array. However, when I tried to use the default enumeration Labview adds it to an array fine. Is there a solution to this ?
04-24-2014 03:23 PM - edited 04-24-2014 03:24 PM
Well how may instances of the xControl do you want?
You can't do that. You can make an array of the datatype of the x control but not the x control
04-24-2014 05:16 PM
As Jeff said it is a limitation of XControls. I have moved to tiny sub panels to get over this, it is still tricky because you cant have an array of sub panels either. What i did was to add a slider control next to my sub panels and make the panels appear to scroll. This worked better than I ever expected, it was smooth and user friendly. I dont expect this to be your answer exactly, but maybe sharing the pain will help to generate ideas. Because of the way LabVIEW handles array data i dont think we will ever get arrays of XControls but it would be nice if NI prove me wrong 😉
Michael.