Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Pneumatics (http://www.chiefdelphi.com/forums/forumdisplay.php?f=54)
-   -   Magnetic Sensor (http://www.chiefdelphi.com/forums/showthread.php?t=126610)

akavoor13 16-02-2014 22:26

Magnetic Sensor
 
We are trying to use a magnetic reed sensor with our pneumatic system. I know the sensor gets connected to digital I/O. In Java, once I define a variable of type "DigitalInput," what do I do with it? i.e., how do I use the information I get from the digital I/O? Many thanks!

cgmv123 16-02-2014 22:30

Re: Magnetic Sensor
 
Quote:

Originally Posted by akavoor13 (Post 1344251)
We are trying to use a magnetic reed sensor with our pneumatic system. I know the sensor gets connected to digital I/O. In Java, once I define a variable of type "DigitalInput," what do I do with it? i.e., how do I use the information I get from the digital I/O? Many thanks!

DigitalInput.get(); returns a boolean corresponding to the input.

Team3266Spencer 16-02-2014 22:38

Re: Magnetic Sensor
 
http://robotics.francisparker.org/ja...italInput.html


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

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