09-03-2012 12:00 AM
Earlier in this forum, i had taken help in improving the subparts of my main vi, now i had developed a main vi,it is working correctly without any error, but i had used sequence architecture in that and as everyone says we should use state machine instead of sequence architecture, i am posting my vi please help how to implement state machine architecture in this, and actually in my vi, i am having 5 tabs( presently i have developed only 2 tabs) 1. patient info, 2.naadi acquisition, 3.nostril temp., 4.vision acquisition, 5.other info. presently with tab control i am using case structure so that only only particular page runs at particular time, i want to know how can i improve this code to work more efficiently.
09-03-2012 12:38 AM
did you search?....Tutorial: State Machines
09-03-2012 12:43 AM
yes, i tried this pattern but the problem that i am facing is as there is no control for the second part that is error checking, i have to do all the things ( create folder+ then error checking on the press of save button only) and i am not getting how to give condition so that control automatically passes to error checking after creating folder ( as i am doing with sequence architecture) in state machine.
09-03-2012 06:39 AM
Can you attach the VI? You only attached the project file.
/Y
09-03-2012 07:17 AM
i am sorry, i thought that vi's are by default attched with project files,i am attaching the main vi and all other associated subvi's also.
09-03-2012 07:20 AM
these are other subvi's, these all subvi's are associated to page 1 "Patient Info".
09-03-2012 07:22 AM
these are other subvi's related to page 2 and page 3.
09-03-2012 07:27 AM
i have attched all the vi's and subvi's, please review my code and help me in making it more better.
09-03-2012 11:13 PM
Instead, you could have zipped the entire folder and attached it.
it would be easier to both upload for you and to download for us.
09-03-2012 11:24 PM
sorry, i didn't know this that zip files can be attched, now i have attached the zip file.