09-02-2011 03:43 AM
I really need someone help especially those who experience in doing labview with epos2 controller.
I have attach my VI and my problem is that even if I press the stop button, the motor doesn't stop. I was suggested to take the state machine as an example but I do not understand it.
Another thing is that I need to have an emergency stop button in case I want to stop the process immediately.
Can someone help me??? Really need someone's help.
Thank you
09-02-2011 04:42 AM
Am not able to open your VI as am having only LV 2009.
Better give a VI snippet that should be sufficient to solve your problem.
09-02-2011 04:56 AM
Dear Afai,
Stop button will not work for you because in your code you have sequence architecture. Until unless your sequence will not over you can't stop the program. To avoid this as you got already a suggestion to use state machine architecture, this will help you whatever you need.
In state machine architecture first you have to define step that u want to perform. According to your code all the steps you are performing in sequence architecture, perform it in case architecture. Define your case sequence. In each case you can define the next step. In between 2 step to perform the operation pass your code from delay state. In this state you can perform delay step.
Try to find out some state machine architecture examples on NI.com these example will help to understand the state machine architecture.
State machine means user can define the step to perform.
For emergency stop if u want to give separate button or you can do it with your existing stop button. Both options will open for you it's upto you how you want to represent your system.
Create one loop with your main loop you can use stop button local variable or you can use a separate button call emergency stop.
Check the attached VI for state machine