Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Automatic limit switch (http://www.chiefdelphi.com/forums/showthread.php?t=100098)

adrianfarmer 13-01-2012 20:32

Automatic limit switch
 
I previously found out how to program a limit switch that i can manually use. Now my question is how do i program a limit switch that will cause my motor to automatically stop spinning when it reaches a certain speed or position?

ssirovica 13-01-2012 20:52

Re: Automatic limit switch
 
To stop a motor at a certain speed, that is a job for encoders. Encoders track the number of rotations of a shaft which you can use to compute the speed.

You could use a limit switch to stop a motor when the motor reaches a certain position, assuming that the motor turns some armature which physically turns the switch off.

The code for this in java would look like this:

DigitalInput limitSwitch = new DigitalInput(3); The constructor argument is the port its plugged into on the io board.

Then to get a Boolean value of weather it is closed or not use limitSwitch.get();

Good Luck!

adrianfarmer 13-01-2012 20:57

Re: Automatic limit switch
 
im using labview

Ether 13-01-2012 21:21

Re: Automatic limit switch
 
Quote:

Originally Posted by adrianfarmer (Post 1104870)
im using labview

There's a sub-forum under "Programming" specifically for LabVIEW.

If you post there, you increase the chances that your post will be read by LabVIEW programmers.




All times are GMT -5. The time now is 23:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi