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,927 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,912 Views)
Thanks Mike šŸ™‚
 
But how do I use a Queue?
0 Kudos
Message 3 of 9
(3,899 Views)
Hi MrNorway
 
there are good examples in the NI Example Finder. Search for "Queues".
 
Mike
0 Kudos
Message 4 of 9
(3,880 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,844 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,825 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,810 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,794 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,765 Views)