|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
Re: Spike relay code not working
bool trigger= stick.GetRawButton(3);
float potentiometerreading= potentiometer.GetAngle(); if(trigger) { fan.Set(Relay::kForward); } if (potentiometerreading>0) { fan.Set(Relay::kOn); } ---------- Here is the code we have right now. Our mentor is wondering if we should have used digital output instead of the relay. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ Sample Code not working... | hm29168 | CAN | 5 | 27-01-2010 20:59 |
| Not Really Working Vision Code | linkhyrule5 | NI LabVIEW | 0 | 07-01-2010 18:45 |
| Incrementation Code not working | benhulett | Programming | 6 | 12-02-2007 17:39 |
| 2007 demo code not working | thefro526 | Programming | 4 | 12-01-2007 23:43 |
| Camera code not working.... | DemonYawgmoth | Programming | 5 | 11-02-2006 09:21 |