How to stop motor during running?

39 views
Skip to first unread message

find...@gmail.com

unread,
Feb 15, 2013, 5:00:21 PM2/15/13
to velmex-...@googlegroups.com
when using labview and your driver, after send " Run" command, how to stop it during the moving process? Thanks

VelmexControls

unread,
Feb 15, 2013, 5:19:17 PM2/15/13
to velmex-...@googlegroups.com, find...@gmail.com
Technically you can not, because the way windows works.
You have passed control to the driver which does its job, and when the function completes then it returns control to whoever called the procedure.

There might be one way, but I do not know enough of Labview to know if it would work (or even the Labview terminology for it would be)
However in theory you could try the following. (If it succeeds or if someone else knows how to achieve this using the driver, please post the solution)

In theory,
1.) Windows can be "Threaded" (Meaning the function can be called and return control immediately, instead of waiting for the answer) but I do not know what Labview calls it or how they would go about it if it can?

2.) If it can be "Threaded" then change the driver VI to be threaded (or the procedure called) but I do not know how to do this
3.) If it can then the driver vi and the dll should be off running in its own little "Sandbox" of memory and you could have a button on your VI to send the capital "K" to the control theoretically in its own thread to kill the running program

I do not know if it would work or how to go about it but it might work


What process are you trying to do? (Post code if you can)
I might have another way that I am working on but it is far from complete to release publicly

Bin

unread,
Feb 15, 2013, 7:37:10 PM2/15/13
to VelmexControls, velmex-...@googlegroups.com
we just run the BiSlide from one side to another side, very simple
command; but hope it can be stopped during emergency. We can add a
relay to shut off the motor power, but it would be nice via program.

Another thing about this driver, sometimes it freezes the whole
Labview program when it is running.

Charles Emrick

unread,
Feb 16, 2013, 1:05:11 PM2/16/13
to velmex-...@googlegroups.com, VelmexControls, find...@gmail.com
I posted a similar question about aborting a motor while it is moving in Labview.
From what it sounds like you might want to try my "AutoReverse" example in the zip file that I attached in that post?

It still does not allow aborting the motor but it may assist you in some of your problems?

Charlie

Reply all
Reply to author
Forward
0 new messages