LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help Urgently For My Project!!

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

0 Kudos
Message 1 of 3
(2,747 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 3
(2,734 Views)

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.

 

Emergency Abort.JPG

 

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

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 3 of 3
(2,731 Views)