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....
已解决! 转到解答。
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
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.
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.
VI1, VI2 and VI3
Boolean “main” or “stop”
The subvi writes, in the main VI, the value True in the boolean control “Visible?”.
The corresponding action in the main VI is:
The front panel of the main VI is now visible.
Boolean “previous” or “next”
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
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