취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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.
모두 다운로드
0 포인트
1/9 메시지
4,263 조회수

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

2/9 메시지
4,248 조회수
Thanks Mike 🙂
 
But how do I use a Queue?
0 포인트
3/9 메시지
4,235 조회수
Hi MrNorway
 
there are good examples in the NI Example Finder. Search for "Queues".
 
Mike
0 포인트
4/9 메시지
4,216 조회수
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 포인트
5/9 메시지
4,180 조회수

Hi Bjornar

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

Mike

6/9 메시지
4,161 조회수

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 포인트
7/9 메시지
4,146 조회수
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 포인트
8/9 메시지
4,130 조회수

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 포인트
9/9 메시지
4,101 조회수