LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help on implementing EPO in LabView

Hi all,

I'm converting the code for our machine into LabView. The original code is written with an automation language called "QuickStep". The machine has a EPO button and some motors. The "QuickStep" flow-chart can be seen in the attachment.

There are "Cancel" command and "Goto" command in QuickStep. The original code uses these commands to cancel the complex sub-routine of motors operation if EPO pressed and to go back to Initialization if EPO released.

I plan to use the similar flow-chart for the labview version. The problem is Labview doesn't have command to cancel other branches in the same block diagram and to direct the program back to the beginning. Any suggestion on this? I appreciate your help.
0 Kudos
Message 1 of 5
(2,870 Views)
I would start by looking at the examples for a state machine, or you could even use the event structure.It's not that hard but for a beginner it sounds more difficult than it really is.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 5
(2,870 Views)
The original program is actually a multi-task type. The "EPO monitor" is one and the "motors operation" is the other one. Two sub-tasks are running at the same time. I can see this could be done in Labview easily. But problem is when the EPO is pressed, the "EPO monitor" should have the capability to stop the "motors operation", which is complex and has a lot of user interaction. I doubt the state machine or an event structure can accomplish this one. Any thought? Thanks.
0 Kudos
Message 3 of 5
(2,870 Views)
Here is an example of what I was talking about maybe this will get you going in the right direction or maybe it will confuse you more if you have any wuestions then let me know.

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 5
(2,870 Views)
Thanks, Joe!

Actually, the EPO I referred to is a real button on my machine. The EPO button is connected to the PCI7344 board and to the DAQ board so that when the EPO button is pressed, all motors will be shut down. But your code should get me started.

The only thing left is that the "motor operation" is quite complicated and has a lot of user interaction. I'm not sure whether a while loop can do them all. But I won't know that until I start programming. 🙂 Thanks again.
0 Kudos
Message 5 of 5
(2,870 Views)