LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Vi's in background

Hi,

I'm looking to run 3 VI's simultaneously. One of the VI's is running
as a main screen, where I would like to run the other 2 Vi's minimized
(or hidden). Is there anyway to set a "visible" property
or "background/foreground" property of each vi individually?


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 6
(3,231 Views)
regislee@my-deja.com wrote:

> Hi,
>
> I'm looking to run 3 VI's simultaneously. One of the VI's is running
> as a main screen, where I would like to run the other 2 Vi's minimized
> (or hidden). Is there anyway to set a "visible" property
> or "background/foreground" property of each vi individually?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

In the VI setup (right click on the icon of the front panel)
you can select whether to open the FP when called.
Uncheck the option and the VI will not open it;s Front Panel
(ie minimized).
Kevin Kent
0 Kudos
Message 2 of 6
(3,231 Views)
In article <38FE090D.15EEFBD1@usa.alcatel.com>,
"Kevin B. Kent" wrote:
> regislee@my-deja.com wrote:
>
> > Hi,
> >
> > I'm looking to run 3 VI's simultaneously. One of the VI's is
running
> > as a main screen, where I would like to run the other 2 Vi's
minimized
> > (or hidden). Is there anyway to set a "visible" property
> > or "background/foreground" property of each vi individually?
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
> In the VI setup (right click on the icon of the front panel)
> you can select whether to open the FP when called.
> Uncheck the option and the VI will not open it;s Front Panel
> (ie minimized).
> Kevin Kent
>
>

Even if the VI is "minimized" when called, I woul
d like to be able
to "show" the vi from button on another VI Panel. The "minimized" vi
would then appear. There would be a button on the recently called vi
to "minimize" it again....Is this possible?

Thanks for your help!


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 6
(3,231 Views)
regislee@my-deja.com wrote:

> Even if the VI is "minimized" when called, I would like to be able
> to "show" the vi from button on another VI Panel. The "minimized" vi
> would then appear. There would be a button on the recently called vi
> to "minimize" it again....Is this possible?
>
> Thanks for your help!

Sorry,
I was confused about the question.
Yes this can be done. There are actually at least 2 ways to do it.
Both of them involve using the VI server functions.

1) Use the property node and the "Front Panel Window->Origin"
property to move the VI off and on screen (uses cluster for x,y origin).

2) Use the property node and the "Front Panel Window->Open"
property to open / close the front panel (uses boolean).

You must open a reference to
the VI in both the caller and the VI itself.
On the VI to open / close you will have to run a loop to check the button
make sure you add a wiat ms in the loop so that the VI will have time to
run it's function. (The while loop will hog all the time if there is no
wait).
Kevin Kent
0 Kudos
Message 4 of 6
(3,231 Views)
hi,

Assuming that you are using LabVIEW 5.x, you can use the VI Property
node (Front Panel.Open: T/F) to open or close the front panel windows
as needed while the VI operate in the background. Just make sure that
you don't close the top level VI.

ej

In article <8dn81e$lr8$1@nnrp1.deja.com>,
regislee@my-deja.com wrote:
> In article <38FE090D.15EEFBD1@usa.alcatel.com>,
> "Kevin B. Kent" wrote:
> > regislee@my-deja.com wrote:
> >
> > > Hi,
> > >
> > > I'm looking to run 3 VI's simultaneously. One of the VI's is
> running
> > > as a main screen, where I would like to run the other 2 Vi's
> minimized
> > > (or hidden). Is there anyway to set a "visible" property
> > > or "background/foreground" property of each vi individually?

> > >
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> >
> > In the VI setup (right click on the icon of the front panel)
> > you can select whether to open the FP when called.
> > Uncheck the option and the VI will not open it;s Front Panel
> > (ie minimized).
> > Kevin Kent
> >
> >
>
> Even if the VI is "minimized" when called, I would like to be able
> to "show" the vi from button on another VI Panel. The "minimized" vi
> would then appear. There would be a button on the recently called vi
> to "minimize" it again....Is this possible?
>
> Thanks for your help!
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 5 of 6
(3,231 Views)
Hi, I have question regarding this information above. Can i use this VI Property node (Front Panel.Open: T/F)
with Main VI. I tried it but it does not work. It close my main vi, which didn't finish rest of the function yet. I am calling my application, build from this vi, from Console and don't want this vi windows appers, just want to run it in background. Can i use this property node, if i can, How?

Thanks For the help.
0 Kudos
Message 6 of 6
(3,225 Views)