05-12-2009 06:17 PM - edited 05-12-2009 06:18 PM
I am working with an application that performs several transformations of some data stream. I'd like the front panel to show a summary of that data after every transformation. A summary consists of several plots.
I wrote a subvi that takes the data as its input and shows the summary graphs on its front panel. I am using that subvi in several places in the main vi. Is it possible to display the subvi's front panel as a part of the main vi's panel? The only way I could get it to work is by telling the main vi to open subvi's window when it's running, but there's got to be a better way.
Ideally, I would like the subvi's front panel to appear on the main front panel when I place the subvi on the schematic.How would I do that?
Thanks!
05-12-2009 06:29 PM
Sure you can!
You can use the VI Server function to do it -- I've done it tons of times. If that doesn't help you enough (check out the help), I'll try to find some of my examples. Can't find them right now -- must be at another client!
05-12-2009 08:50 PM - edited 05-12-2009 08:50 PM
MattBradley wrote:Sure you can!
You can use the VI Server function to do it -- I've done it tons of times. If that doesn't help you enough (check out the help), I'll try to find some of my examples. Can't find them right now -- must be at another client!
I looked in Labview\examples\viserver and it seems to be too sophisticated a solution for what I am trying to do. Basically, I am just trying to avoid having several identical groups of nodes in the block diagram. I am (obviously) new to LabVIEW but it seems like a VI server is a bit of an overkill.
In terminology of regular GUI programming I am trying to create a simple custom widget. Is using a VI server the simplest way?
05-13-2009 11:18 AM
05-13-2009 11:30 AM
Make the subVI into an XControl?
05-13-2009 11:38 AM
Load the sub-VI into a sub-panel?
Ben
05-14-2009 02:51 PM
Ben wrote:Load the sub-VI into a sub-panel?
Ben
Wouldn't this still require multiple nodes on the block diagram per sub-vi instance where a single one should suffice?
05-14-2009 03:17 PM - edited 05-14-2009 03:24 PM
Dennis Knutson wrote:Make the subVI into an XControl?
Are XControls the same thing as ActiveX controls?
This seems like what I need.
I am having trouble finding documentation or examples of this feature (there is "examples\general\xcontrols\Dual Mode Thermometer" but it would be nice if there was something simpler to get started -- are 13 files really necessary to do something this simple?). Can you suggest where I could look for resources on xcontrols?
05-15-2009 07:44 AM
I am sorry but I am completely lost as to what you are looking for.
Could you please post some images to go with your question and maybe I'll be able to better serve you.
Take care,
Ben