Jump to content

Array of X-controls ?


zEye

Recommended Posts

Posted

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.

Posted

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.

Posted
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 :rolleyes:

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.