取消
显示结果 
搜索替代 
您的意思是: 

navigation while executing

已解决!
转到解答

I execute the Application, but i don't know how to navigate? that is for example i create the 7 front pannel, when i click the NEXT button then it will show the second front pannel, like wise in 6th front pannel i click the button MENU then i want to return the first screen. so i need the help about navigation..help me pls....

0 项奖励
1 条消息(共 25 条)
5,289 次查看

You can, for example, create a tab control: just config it as an indicator on the block diagram, and wire an integer corresponding to the number of the page you want to display.

To select the page you need, you may also use local variables, or property nodes, according to your convenience.

Regards

0 项奖励
2 条消息(共 25 条)
5,276 次查看
You can use "NEXT" Control in each vi as your while termination control except 1st vi. And in your last vi "Menu " as termination control. So as you proceed to last vi and press Home button you will come back to first vi.眨眼表情
Message Edited by gak on 09-23-2009 04:12 AM
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 项奖励
3 条消息(共 25 条)
5,270 次查看

Trys this (LV86).

 

Jean-Marc

4 条消息(共 25 条)
5,258 次查看

hello, thank you so much. i try this main and sub VI's. i saw the front panel of that corresponding block diagram, just what complecated for me, pls can you guidance as a proper way.

0 项奖励
5 条消息(共 25 条)
5,222 次查看
解答
已被主题作者 executing 接受

Main VI

1)         Take the first character of the label (from the control who fired the event) and typecast into a integer

2)         Index "refnum VI []" to obtain the reference of  the subvi you want to open.

3)         Open the subvi (VI1, VI2 or VI3) with the reference

4)         Send to to the subvi the reference of the main VI

5)         Send “VI refnum [ ]” to to the subvi

6)         Run the subvi with "Auto Dispose Ref = F"

 

At the end of this sequence, the subvi is running and he knows the reference of the main VI and the references of all subvis.

Main1.jpg

 

 

VI1, VI2 and VI3

 

Boolean “main” or “stop”

 

The subvi writes, in the main VI, the value True in the boolean control “Visible?”. 

 Subvi1.jpg

 


The corresponding action in the main VI is:

Subvi2.jpg


The front panel of the main VI is now visible.

 

Boolean “previous” or “next”

 

Subvi3b.jpg

 

 

1)         Find the position of  “This VI” (in this case: subvi1, 2 or 3) in "vi refnum [ ]"

2)         If we want the next subvi, add 1 to the index and if not, remove 1 to the index.

3)         Index "vi refnum [ ]" to return the reference of the next (or the previous) subvi we want to open.

4)         Write to the subvi the reference of the main VI

5)         Write to the subvi "vi refnum [ ]"

 

 

Jean-Marc

6 条消息(共 25 条)
5,201 次查看

Thankyou so much......if any further clarification i post in this sir. thank you...

0 项奖励
7 条消息(共 25 条)
5,179 次查看
You should mark J-M's reply as "accepted solution", if it solved your problem
0 项奖励
8 条消息(共 25 条)
5,131 次查看

Accepted Solution

0 项奖励
9 条消息(共 25 条)
5,110 次查看

executing wrote:

Accepted Solution


 

This is not the correct procedure. You can find a "Tick" Mark located at the right side of J-M post. Please tick that one and that will show that the thread is solved. You can also do this by, click on the options menu located at the top right corner of J-M post and select "Mark this as solution".

 

Thanks,

Mathan

0 项奖励
10 条消息(共 25 条)
5,106 次查看