ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open front panel using reference

Hi!
 
I want to make the front panel of a subVI visible when pressing a button in mainVI..
I also want the subVI to start at the same time as mainVI.
Can anyone help?
 

I've attached some files to illustrate the problem. Its not working, but i think you get the point.
Download All
0 Kudos
Message 1 of 9
(3,787 Views)

Hi MrNorway

try it like i show in the attached picture. I think you should insert a Wait in your subvi loop.

A better way to transfer your data from one to the other vi is to use a Queue.

Mike

Message 2 of 9
(3,772 Views)
Thanks Mike 🙂
 
But how do I use a Queue?
0 Kudos
Message 3 of 9
(3,759 Views)
Hi MrNorway
 
there are good examples in the NI Example Finder. Search for "Queues".
 
Mike
0 Kudos
Message 4 of 9
(3,740 Views)
Hi again!

I'm now using the method as Mike described...
But i want to make some changes.. I stll want both VI's to start at the same time, and I still want the subVI to pop up when I push a button..
But when both VI's are on screen, I want to be able to work on both VI's.. Now I can only make changes on the subVI because the property node FP.open always is true and will always be in front..

Anyone got some ideas on modifications i can make?


Bjornar
0 Kudos
Message 5 of 9
(3,704 Views)

Hi Bjornar

here is a little example for you how to show and hide the parallel running vi.

Mike

Message 6 of 9
(3,685 Views)

Hi Bjornar,

i made an example for you with your specific problem. see the attachment. The transfer of your double value is now realized with queue.

Mike

0 Kudos
Message 7 of 9
(3,670 Views)
Thanks again Mike!

Think I need some time to study the Queue example, but the "openclose.vi" works perfect for my prog.
I use global variables to transfer data between the VI's..Will I get a better transfer with Queue?
0 Kudos
Message 8 of 9
(3,654 Views)

Hi Bjornar,

with a Queue it is possible to tranfer more than only one value. Furthermore every inserted value will be stored until you dequeue it. So you can´t lose values (presumed that the queue size is big enough). With a global variable it could be happen that you change the value two times within a short time but the receiver loop get only one change.

Hope it helps.

Mike

0 Kudos
Message 9 of 9
(3,625 Views)