LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

navigation while executing

Solved!
Go to solution

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 Kudos
Message 1 of 25
(5,110 Views)

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 Kudos
Message 2 of 25
(5,097 Views)
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.Smiley Wink
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 Kudos
Message 3 of 25
(5,091 Views)

Trys this (LV86).

 

Jean-Marc

Message 4 of 25
(5,079 Views)

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 Kudos
Message 5 of 25
(5,043 Views)
Solution
Accepted by topic author 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

Message 6 of 25
(5,022 Views)

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

0 Kudos
Message 7 of 25
(5,000 Views)
You should mark J-M's reply as "accepted solution", if it solved your problem
0 Kudos
Message 8 of 25
(4,952 Views)

Accepted Solution

0 Kudos
Message 9 of 25
(4,931 Views)

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 Kudos
Message 10 of 25
(4,927 Views)