LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple interacting windows

Are there any good examples of this people have seen?

I am still a little confused about the best way to handle events (such as boolean states) in the sub VI and passing this data back to the main VI.

I would like to leave the subVI open as a floating window while my main program keeps grabbing data.

Message Edited by tca-adam on 10-31-2007 01:05 PM

0 Kudos
Message 11 of 16
(1,052 Views)
If you post your code, we can help you out. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 12 of 16
(1,043 Views)
Here is a quick example of what I am trying to do.........  V8.5
 
or do I have the whole concept wrong here?
 
any help would be much appreciated.... I have spent days trying to get this to work!
 
thanks
Adam
0 Kudos
Message 13 of 16
(1,033 Views)

I meant to point out I would like to be able my control MAIN VI operation by buttons on the secondary window (event driven).

 

0 Kudos
Message 14 of 16
(1,028 Views)

That last message should have read:

I meant to point out that I would like to be able to control my MAIN VI operation by the buttons on the secondary window VI (both VIs are event driven).

eg from the secondary window, turn on fast data scanning which changes the data sample rate in the main VI.

0 Kudos
Message 15 of 16
(1,015 Views)
Hello,

the most important thing if you want to manage multiple windows system, is to define what a window is... and what it needs to exist...

It needs :
    - a context : a main program (main vi) that manage system events and dispatch, with one sub panel,
    - a window owner : graphical environement (a class of display manager associated to a diagram empty VI with many subpanels on front),
    - a graphical owner : sub panel (if you want to hide the the window or move it in the main panel)
    - a window : dynamique vi (reentrant to keep a model, if you have one),
    - a way to communicate : message box (and message box listener),
    - an event loop : to handle what is happenning on its front panel,

then you have a complete multiple windows system.

I can manage 64 windows that way... I can't create subpanels during execution time...

If you combine it with dqObjetcs for data transmitions, it can be very powerfull.

Hope it helps you...

Bye

Pierre

0 Kudos
Message 16 of 16
(1,007 Views)