Jump to content

How are you going to use Sub Panels?


Recommended Posts

There are a couple uses that I can think of off-hand:

Synchronously + Call-By-Reference

This would be just like how you would call a subVI, except that you want its UI to be sub-paneled. In this instance we would (1) sub-panel the VI, (2) Call the VI by reference, and then (3) un sub-panel the VI. You can even make the plug-ins flexible by using variant data in and variant data out.

Asynchronous + Data Messaging

This would be more like how you would interact with an ActiveX control. You would sub-panel the VI, which is executing asynchronously. It has its own process (while loop) and it executes continuously until it receives a "shut-down" message. You would message data into it and out of it using queues, notifiers, or some other means. This allows you to effectively create controls with code behind them.

:arrow: I have attached an example of the 1st use case (Synchronously + Call-By-Reference).

Any other ideas?

Download File:post-15-1073110083.zip

Link to comment
Here is a revised example that closes VI FP Prior to subpanelling the plugins.

-Jim

Ya but if the subpanel is closed already, it generates an error. I guess i should turn off that pesky internal autoerror dialog...

Automatic error handling isn't for "application programming", it is for "express node configuring". Now turn it off, already, before people start making fun at you :lol:

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.