09-23-2009 02:11 AM
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....
Solved! Go to Solution.
09-23-2009 03:42 AM
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
09-23-2009 04:12 AM - edited 09-23-2009 04:12 AM
09-23-2009 07:16 AM
09-24-2009 02:16 AM
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.
09-24-2009 10:37 AM
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
09-25-2009 11:32 PM
Thankyou so much......if any further clarification i post in this sir. thank you...
09-28-2009 02:23 AM
09-28-2009 11:27 PM
Accepted Solution
09-28-2009 11:43 PM
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