06-22-2011 08:54 AM - edited 06-22-2011 08:56 AM
Hi,
I have attached a vi. Try to put this logic in your code. It must work i think. Open for more suggestions.:)
Regards,
Nitzz
(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved)
06-22-2011 09:05 AM
One other thing to consider about this architecture:
The inner loop is executed when the dial control is != 1. If the dial control remains on anything other than 1, when the inner Stop is pressed, the inner loop will execute again before the operator can press the 2nd stop. I am in agreement with smercurio, one loop should be sufficient.
06-22-2011 09:25 AM
Here is what I did to try and show you how I would do this project in a very quick manner. I added the state machine and tried to make it do what I think you had it doing. If you have questions anyone should be able to help with what I have done.
06-22-2011 09:38 AM
@NitzZ wrote:
I have attached a vi. Try to put this logic in your code. It must work i think. Open for more suggestions.:)
It is a really, really bad idea to bury event structures inside inner loops inside case structures. I recommend a single loop solution as suggested by others.
06-22-2011 01:48 PM
Hi Christian,
Thanks for pointing it out.. I myself was confused with that code. Was in a hurry from my office to home, so posted it this way. Anyway i'll go through the other posts and try to understand the best way to do it.
Regards,
Nitzz