zEye Posted February 21, 2012 Report Posted February 21, 2012 I created an X-control which is a cluster containing strings, numeric controls, rings, enums etc. Fully functional. But why cant I use it as an array element ? ideas please. Quote
Phillip Brooks Posted February 21, 2012 Report Posted February 21, 2012 Google is your friend. LabVIEW Array of X-controls http://lmgtfy.com/?q=LabVIEW+Array+of+X-controls Quote
Olivier Jourdan Posted February 27, 2012 Report Posted February 27, 2012 XControl could be seen as a subpanel, you visualize the FP of the facade.vi and as far as I know you cannot use a subpanel as element of an array. Quote
viSci Posted February 27, 2012 Report Posted February 27, 2012 Actually in LV2011 you can put a subpanel in a cluster and then into an array. I am not sure if you can do anything useful with it but LV does let you do it. Quote
Olivier Jourdan Posted February 28, 2012 Report Posted February 28, 2012 Actually in LV2011 you can put a subpanel in a cluster and then into an array. I am not sure if you can do anything useful with it but LV does let you do it. LV let you drop the subpanel in the cluster but code is not executable. I think we need to remember that a subpanel is "special" control. It has no terminal on the diagram, so it's not really surprising that it behave differently. Anyway, it would be really exiting to add it in an array. I'd like to do that many times Quote
viSci Posted February 28, 2012 Report Posted February 28, 2012 Surprisingly, if you add a control like a boolean to the cluster then it becomes executable. I tried loading a reentrant vi into the subpanel(s), it runs but not as individual clones. Quote
Olivier Jourdan Posted February 29, 2012 Report Posted February 29, 2012 Cluster seems to need a "classic" object to be typed, could be understand. I also tried to load VIs in subpanel contain in an array, but I couldn't retrieve the reference to each subpanel. Anyway, I have to say that trying this could lead to some difficulties like the management of the modification of the array content. How LV could manage references from deleted element. If this was easy to implement I'm pretty sure that NI would have enable the feature. Regards, Olivier Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.