Go to Post A dedicated team is a happy team. - sgreco [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-02-2010, 19:27
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Help Solenoid Programming

Quote:
Originally Posted by reversed_rocker View Post
solenoids are programmed a little differently that the drive, joysticks, analog inputs, or digital inputs that you're used to so i'll just write the code you need to initialize it and then give you an example of how to let air in and how to let air out. I'm going to assume that you're using the simple robot template, if you arent this code will still work but it will be placed in a different part of your code


//defines the pointers as part of the solenoid class, goes in class RobotDemo: public Simple Robot {

Solenoid *kicker_kick;
Solenoid *kicker_return;

//initializes solenoids and gives them a channel on the relay section of the IO board goes in RobotDemo(void):

kicker_kick = new Solenoid(1);
kicker_return = new Solenoid(2);

//pushes the kicker out, remember not to let the two sides of the solenoid fight each other, goes into the while(IsOperatorControl()) {

kicker_return->Set(false);
kicker_kick->Set(true);

//pulls the kicker back in
kicker_kick->Set(false);
kicker_return->Set(true);
This thread is posted in the LabView section. That is def. not labview code.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 19:30
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

So no help for me using lab view?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview Solenoid Programming 3p1c w1n Programming 12 12-02-2010 17:29
Solenoid Programming Issue. Dr. Manhattan Pneumatics 2 10-02-2009 17:42
solenoid programming holty531 Programming 0 10-02-2008 16:17
Programming a Solenoid Brigander Pneumatics 4 17-02-2007 14:06
Solenoid Programming duckshepherd Pneumatics 1 17-02-2003 09:15


All times are GMT -5. The time now is 22:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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