Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Trouble with Limit Switches (http://www.chiefdelphi.com/forums/showthread.php?t=83166)

ThisAintJeff 20-02-2010 11:20

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?

wireties 20-02-2010 16:41

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

Alan Anderson 21-02-2010 00:14

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.

jmanela 21-02-2010 08:39

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)

Alan Anderson 21-02-2010 09:51

Re: Trouble with Limit Switches
 
Quote:

Originally Posted by jmanela (Post 925168)
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)

The default Dashboard shows the state of the DIO pins (it updates only twice a second).


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