View Single Post
  #2   Spotlight this post!  
Unread 16-01-2014, 20:14
NWChen's Avatar
NWChen NWChen is offline
Alum
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: New York City
Posts: 205
NWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to beholdNWChen is a splendid one to behold
Re: Programming Limit Switch

Initialize limit switches as a digital input:
Code:
DigitalInput switch = new DigitalInput(channel)
To check if a switch is closed or not, use the get() method:
Code:
if(switch.get()) doSomething();
See this thread.
Reply With Quote