View Single Post
  #5   Spotlight this post!  
Unread 27-04-2010, 18:49
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,189
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: Servo on joystick

Quote:
Originally Posted by apalrd View Post
There's actually an easier way then that. Go into (I think it's Comparison) palette and look for a Switch. I forgot it's exact name, but basically it looks like a triangle with a T and F inputs on the top and bottom and a case on the middle. It just passes the data through depending on the value of the input.
I don't really use lab view, but that sounds like a logic gate

in c++ you could do some thing similar with a boolean variable:
Code:
int main()
{
   bool virtualdigin1;
   if digin1==1
     {
        virtualdigin1=0;
      }
   else
     {
        virtualdigin1=1;
      }
}
__________________

Last edited by PAR_WIG1350 : 27-04-2010 at 18:56.