Jump to content

Getting the controls[]-property of a vi running in a subpanel


Recommended Posts

Hello,

a while ago I've made a subvi that is able to get all controls of the toplevel-VI.

This has been accomplished by getting all the controls[] refnums and then cycling

through all the clusters/tabs/arrays to get an array of all refnums (only controls).

Then when 1 of these items gets the keyfocus (cycle entire array), a popup-keyboard will appear.

Now in a new project (still LV 7.1.1) I started using subpanels and noticed that

the controls on the subpanel are not accessible when starting from the subpanel refnum. :headbang:

(casting of a refnum to VI-type fails, casting to subpanel / paneltype does not give

any access to a controls[]-property.

As a workaround I've called the controls[]-property directly from the VI-refnum that is started in the subpanel,

but I really would like to reach these properties starting from the top-level-VI-refnum.

Is ther someone out there to give me a clue?

THX,

tnt

Link to comment
Maybe I've misunderstood you, but is this what you're trying to do?

post-181-1149016324.png?width=400

That's what I'm using for the moment, what I really would like to achieve is to

get access to the VI-ref (from Insert VI) starting from the subpanel-refnum itself

(and NOT by getting all the controls when starting the subpanel).

THX anyway,

tnt

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.