11-15-2013 03:15 AM
i have to popup a sub windopw in main window....and i need to plot common data to be printed on front panal...
i am usind daq ...can i share same daq in main and sub window...hao??or can i share some calculated value in main and sub window of labview.,,pleasehelp me fast
11-15-2013 04:08 AM
There are two ways to make a "subwindow".
1. Create a Tab control make it visible/unvisible
2. Create a subvi which you call.
A how to for subvi here
Koen
11-15-2013 06:15 AM
As KoenR has said - you can use SubVIs and set them to 'Show front panel when called' which will make them show as new windows in your application.
As for sharing the data, you could use something like a notifier (under synchronisation) for broadcasting the data to the SubVI. If you create the notifier in your main application, with a send notification VI and then pass the reference to the notifier into the SubVI when you call it which has a 'wait on notification' VI it will then receive the data form the main loop.
If you look in the LabVIEW examples under 'notifiers' you will find 'Pass Data with Notifiers' which demonstrates how to use notifiers to pass data to SubVIs.
11-15-2013 10:01 AM
Hi !
In your main program (or main window if you will) you can use a Subvi to process infrormation from the main program. Likewise you can call the front panel of that subvi using the invoke nodes. So when you call the subvi from you main program, using the invoke nodes you can call the front panel from your subvi.
You can program a subvi to show its front panel when its called.
I dont know if that helped you xD