07-15-2017 01:25 PM
hi friend
i have project with tab control which have 8 pages. at last page i have control to switch on/off lights at particular time. when i set time in tab page and i be at same page it works fine(on/off lights) but if i set time and move to other page it not working. it looks like page only refresh on which i viewing.?/
any help please.
Thanks,
Asif
Solved! Go to Solution.
07-15-2017 01:34 PM
Please attach your VI.
It is impossible to help someone solve a problem when they don't show the code that has the problem.
07-15-2017 02:37 PM
Asif138 wrote:i have project with tab control which have 8 pages. at last page i have control to switch on/off lights at particular time. when i set time in tab page and i be at same page it works fine(on/off lights) but if i set time and move to other page it not working. it looks like page only refresh on which i viewing.?/
Do you have problems with the front panel updates and the lights still switch on/of at the programmed time, or does nothing work if you are on a different tab page? As already mentioned, we really need to see some simplified code that demonstrates the problem. Is the terminal of the tab control connected to e.g. a case structure?
07-16-2017 12:34 PM
it does nothing when i am on other page. i doesnt have any case structure. when i am on same page it works.When i am on "drive fan and meter"page its working. and if other than this page.its not working.
Thanks,
07-16-2017 12:39 PM
please check this
07-16-2017 01:49 PM - edited 07-16-2017 01:50 PM
Your tab terminal IS connected to a case structure, so if the tab is on another page, none of the other cases will execute. You need to disconnect the tab terminal (does not need to be connected to anything!) and place all code that needs to run continuously inside the toplevel loop. Think dataflow!
(You still have a lot of dataflow issues, for example part of your code will continue forever while the FOR loop at the bottom will complete. Your various "save" buttons need to be set before the VI is executed because their value will get read exactly once right after the program starts, etc.)
07-16-2017 01:54 PM
So what is that big structure that you have inside you while loop?
Why do you think your code it not working ?
Have you tried to debug the code ? Maybe used the Highlight Execution?
07-16-2017 10:05 PM
Why is your VI 10 MB in size? That is huge!
07-17-2017 01:34 AM
if i disconnect tab connection with case structure it gives error. and i also need this tab because i have different I/Os at different tab pages.(see attachment)
i really do not understand what to do as i am not expert. this is just my first project in labview.
Thanks,
Asif
07-17-2017 01:46 AM
Why are you attaching an image of the front panel? No relevant information. You IO should depend on the overall program state, not on the tab.