LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

None of the functionality of the main VI is available when the subVI is open. For example, try to stop your main VI while the subVI is running. You should be unable to do that. However, you can stop the main VI in Dennis' alternative. That is because in your alternative, the main VI must wait until the subVI ends its execution.

Yes, it is a nice trick in LabVIEW. I also learned it here at DE.
www.vartortech.com
0 Kudos
Message 11 of 20
(1,708 Views)
Yeah, I use your solution for one month and a half and I am very satisfied, thank you very much. But now I try to run two windows as the one in the example you gave me and then, it is not possible to run them together. Have you got any idea about the way two windows can run in the same time and the mainVI also continue to run ?
Thank you Dennis.
Cyril.
0 Kudos
Message 12 of 20
(1,975 Views)
If you're talking about the example where I used the method Run VI, it should work as long as you're not calling the same subVI. If that's the case, then what you can do is save the subVI with a different name or save the subVI as a template (.vit) and run that dynamically. There have been several examples posted of the template method so you could do a search for either template or .vit and find something to use.
0 Kudos
Message 13 of 20
(1,708 Views)
I did an app with SIX pop-up sub-windows - all of them are live, as well as the main program. Here's how:

Each sub-window is set to SHOW FRONT PANEL WHEN CALLED, and CLOSE AFTERWARDS IF ORIGINALLY CLOSED. Each is set NOT to be modal.

Each sub-window has a DONE button which terminates its loop. Each sub-window also monitors a global PROGRAM RUNNING variable, and terminates if false.

A single VI called WINDOW LAUNCHER contains six WHILE LOOPS.

In each WHILE loop, I have a WAIT ON OCCURRENCE function, with a 500 mSec TIMEOUT, and a CASE STATEMENT, based on whether the occurrence timed out.

In each CASE STATEMENT, if the WAIT ON OCCURRENCE timed out, I simply check the status of a global PROGRAM RUNNING variable, and loop again if still runni
ng. If the WAIT ON OCCURRENCE did NOT time out, I call the associated subVI.


The OCCURRENCE refnums are stored in a global function.

The WINDOW LAUNCHER vi runs in parallel with the main loop in the main VI.

Each of six buttons on the front panel uses SET OCCURRENCE to trigger one of the occurrences.

When the button is clicked, the occurrence fires. The associated WHILE loop within WINDOW LAUNCHER is triggered, and the window pops up instantly.

When the main QUIT button is clicked, I set the PROGAM RUNNING global to FALSE, and all the loops terminate, within 500 mSec.

Works like a charm.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 14 of 20
(1,708 Views)
Thank you for your answer, it helps me a lot. But, could you send me an exemple of your "window launcher" because I don't see exactly how it works with the six While loops.
Thanks,
Cy.
0 Kudos
Message 15 of 20
(1,708 Views)
Hello Dennis, Since my requirement is somewhat is solvable with your method, I tried to use your vis. But they could not be open (error9: newer labview version 6.1 than version 6.0 ). could you give the code compabtible for labview6i.
Thanks
0 Kudos
Message 16 of 20
(1,707 Views)

Hi I’m totally new to LV and I’m trying to run 2 VI’s simultaneously. This seems to be a good way to do it but I also need to be able to pass references to properties back and forth between the 2 VI’s. Can anyone help me here? (A sample VI demonstrating the technique would be much appreciated)

0 Kudos
Message 18 of 20
(1,576 Views)

Are you using Labview 8.0 or 8.2?

I believe the preferred way of doing what you want to do is through shared variables.

Make a project that has your VI's as well as a library that contains the shared variables.  Then you can drag and drop the shared variables from the project explorer window into the VI's and set them to read or write mode as necessary.

0 Kudos
Message 19 of 20
(1,561 Views)
Thanks a lot Raven. That's exactly what I needed, cheers 🙂

Message Edited by deMoo on 12-03-2006 04:38 PM

Message Edited by deMoo on 12-03-2006 04:39 PM

0 Kudos
Message 20 of 20
(1,551 Views)