|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Limit Switch Programming Help
You say it didn't work. What did it do instead of what you wanted?
Are you sure your limit switch is giving you True and False values in the direction you expect? Use the Test mode and view the switch's value on the Dashboard to see what it really does. |
|
#2
|
||||
|
||||
|
Re: Limit Switch Programming Help
When I press the button, motors move for a moment and then stops. The movement isn't continous as I press the button. How can I use the test mode to test this? Do I need to edit the Test VI ?
|
|
#3
|
|||||
|
|||||
|
Re: Limit Switch Programming Help
Where have you put this code (Teleop, Periodic Tasks)?
What does your Begin look like for creating the motor? |
|
#4
|
|||||
|
|||||
|
Re: Limit Switch Programming Help
The code you posted looks okay. Is there somewhere else in the program that might be continually turning off your winch motors, like in Periodic Tasks? Is the case input connected directly to a joystick button, or is there some other processing before it reaches the case?
Is your motor wiring correct, with both motors turning in a direction that doesn't make them fight each other? Install only one winch motor circuit breaker and try running it, then remove that breaker and install one on the other winch motor. Do the motors run as expected one at a time? |
|
#5
|
||||
|
||||
|
Re: Limit Switch Programming Help
Quote:
Not in Periodic Tasks, but in Teleop I was controlling those motors with one more button as well. I solved this by combining two case. So now, when i m not pressing that button, the motors aren't set themselves to 0 value. Thanks for your help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|