Jump to content

Subpanels and Shared Variables


Doug S.

Recommended Posts

I've been playing with a subpanel for some of my VIs with LV 8.5 - I have some VIs that communicate with databinding controls linked to shared variables. These work very well when I use them in standalone mode (directly opening them). However, when I invoke them in a subpanel, these controls are no longer bound to the shared variables.

Also, I tried making a VI that connects to one of the the shared variables with ye olde datasocket VIs - again it works fine when I directly invoke it - but fails when I invoke it from a subpanel. All I get is default values for the data type (0.0 for doubles).

Link to comment

QUOTE(Doug S. @ Feb 4 2008, 01:00 PM)

I've been playing with a subpanel for some of my VIs with LV 8.5 - I have some VIs that communicate with databinding controls linked to shared variables. These work very well when I use them in standalone mode (directly opening them). However, when I invoke them in a subpanel, these controls are no longer bound to the shared variables.

Also, I tried making a VI that connects to one of the the shared variables with ye olde datasocket VIs - again it works fine when I directly invoke it - but fails when I invoke it from a subpanel. All I get is default values for the data type (0.0 for doubles).

Woops! Sorry about that folks - stupid mistake. I forgot to invoke "Run VI" before trying to attach it it to the sub-panel. Here I thought it was a new 8.x bug, but instead it was just operator error! :rolleyes:

Link to comment

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.