![]() |
Trouble with Limit Switches
alright, so weve got a limit switch set on our kicker right? It is set to normally open, and its supposed to stop everytime that the switch is closed. now i used the DIO Input on LabVIEW to do this, and i have it set up so that when its true the motors go forward, and when its false, the motors are set to off.. however, no matter what i do, the limit switch does nothing. is there something i am overlooking?
|
Re: Trouble with Limit Switches
it is probably not wired correctly, those things are pretty foolproof
wire ground and signal to the two terminals that short when the switch is closed - run this to a digital I/O input and use the DigitialInput class it kinda has to work |
Re: Trouble with Limit Switches
You do have the switch connected between ground and signal, right? And your wires go to the COM and NO pins on the switch, right?
Because of the pullup resistors on the Digital Sidecar's DIO pins, a Normally Open switch will read True when it's not active, and False when it is, so it looks like you got that part correct. How are you using the switch value to zero the motor control? Show us that part of your code; it sounds like it isn't working properly. |
Re: Trouble with Limit Switches
just to test, you could put some kind of indicator on the front panel of whatever you are doing to make sure you are getting values at all. (or just probe the DIO get boolean wire)
|
Re: Trouble with Limit Switches
Quote:
|
| All times are GMT -5. The time now is 11:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi