09-29-2008 08:02 AM
I would like to use the tab control to sequence testing. Does anyone have an application that uses this method that I can use to make it work?
Regards
Conor
09-29-2008 08:13 AM
Hi Conor,
can you give more information please? What shall the tab control do? You can use a queued state mashine. The the "Producer/Consumer desing pattern".
Hope it helps.
Mike
09-29-2008 08:54 AM
Conor,
I once wrote a program that had four states: calibrate, collect, analyze and save. I put each state with the relevent controls on seperate tabs. To force the user to do the tests sequentially I hid the tabs and placed forward and reverse buttons below the tab control.
On the block diagram I used an event structure to respond to the forward/reverse buttons and a shift register to keep track of the current state.
Hope this is helpful.
Drog
09-29-2008 09:56 AM
Hi Mike,
I want the tabs to show the full sequence of tests to do and then the current tab to show the current test with user intervention to allow one tab to finsh and the next one to start.
Regards
Conor
09-29-2008 10:46 AM
09-30-2008 01:24 PM
10-01-2008 03:04 AM
Thanks for your reply. I have 6 different categories of tests that I need to have the user execute in sequence. Some require user intervention with fitting cables before contintinuing (for example) and others the user may not to ship or jump to for various reasons. I have a start condition where the user enters their ID and a serial number which is then check in a database. Tab control seemed to be a good way to manage this??
Regards
Conor
10-01-2008 01:20 PM
10-02-2008 03:20 AM
Many thanks for your reply. One of the things I want to do is have the user log in and then when their log in validated, to make the screen disappear and be replaced by a screen for each test category as they cycle through. One of the reasons for doing this is that each test category has about 20 test results each with their own pass/fail criteria. Is it possible to do this using the method you propose?
Regards
Conor
10-02-2008 07:31 AM
Conor,
A state machine can certainly do the kinds of things you request. I concur with tbob that it is probably the best architecture for what you have described.
I have written code implementing state machines which require logins and passwords.
Lynn