LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple interacting windows

I was wondering if it was possible to have multiple interating vi's open at once and also be ale to go from one window to the other without have to close the previous.
- there is always an easy way, but it is always the hardest to find
Message 1 of 16
(3,539 Views)
Yes, you can do that! There doesn't need to be a particular order to the VIs' operations, unless your code says so. You can pass information between them using shared variables if you've got LV8 or higher.
Message 2 of 16
(3,520 Views)
I have been able to have interacting windows, but if I open the front panel of a subvi and I cannot do anything on the other window unless I close the subvi. I want to be able to open a subvi front panel and leave it open and still be able to control objects in my main window without closing the subvi.
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 3 of 16
(3,506 Views)
I'm not sure how you have it setup. I put together something real quick. Hope it's what you're looking for.
0 Kudos
Message 4 of 16
(3,494 Views)

I couldn't get that to do anything for me so here is the basic thing I am trying to do. I want to e able to press a button and bring up another window with a control for an indicator on the main window. I would like the display to be updated without having to hit okay and to still be able to control objects in the main window. 

If this is not possible than i will just have to find another way to have my controls.

Thanks

- there is always an easy way, but it is always the hardest to find
Download All
0 Kudos
Message 5 of 16
(3,482 Views)
Is there any chance you can post them in LV 8 for me?
0 Kudos
Message 6 of 16
(3,478 Views)
You can use a control reference passed to the subVI and written to it's value property in the subVI. Here's a modified example. I also changed your while loops to use an event structure. If you use a regular while loop, add a delay inside the loop.
Download All
Message 7 of 16
(3,474 Views)
The Knight has spoken. That emblem really beats 3 colored squares...
Message 8 of 16
(3,466 Views)

Thanks that works well. But I have one more challenge, something I have been trying and can't quite get. I am trying to have an interacting subvi window open and without having to close it be able to still control objects on the main window.

I don't think this is possible but you guys know more than me.

Thanks alot for all your help. 

- there is always an easy way, but it is always the hardest to find
Message 9 of 16
(3,441 Views)

Sure it's possible. The easiest way is to have the subVI in a separate while loop. A little more involved but still pretty simple is to use the VI methods Open Front Panel and Run VI.

Message Edited by Dennis Knutson on 03-19-2007 02:33 PM

Message 10 of 16
(3,425 Views)