View Single Post
  #3   Spotlight this post!  
Unread 12-03-2010, 22:18
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Programming Pneumatics

Search is your friend ... many threads about this ...

Your explanation is a little "off" ... I hope that in actuality, you are hooking up both an INPUT to DIO-1 from the pressure shut-off switch, and an OUTPUT to Relay-1 (the Spike)

The compressor example has everything you need, and a great diagram on the front panel on the details of wiring it up. Copy the OPEN and REF and START stuff from the example's block diagram into your begin VI. Nothing in teleop. It spawns a task that takes care of turning it on/off.

PS: It only operates while the 'bot is ENABLED.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics