Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Solenoid button toggle (http://www.chiefdelphi.com/forums/showthread.php?t=90429)

mike1010100 29-01-2011 15:32

Solenoid button toggle
 
I was wondering where you get the button function?



also, i was wondering if anyone knew why my solenoid code is not working, also it is currently spitting out random watchdog errors while the robot is running, does anyone have a solution (LABVIEW ONLY)

mike1010100 29-01-2011 16:06

Re: Solenoid button toggle
 
http://i1226.photobucket.com/albums/.../Untidtled.png (this was supposed to be the 2nd picture)

Joe Ross 29-01-2011 16:35

Re: Solenoid button toggle
 
Quote:

Originally Posted by mike1010100 (Post 1011134)
I was wondering where you get the button function?

The item you circled is a feedback node.

Mark McLeod 29-01-2011 19:58

Re: Solenoid button toggle
 
The screen shot tells you where everything used in that image can be found.
The Feedback node is found in the Programming -> Structures palette.

jcbc 02-02-2011 11:28

Re: Solenoid button toggle
 
Quote:

Originally Posted by mike1010100 (Post 1011134)
also it is currently spitting out random watchdog errors while the robot is running, does anyone have a solution (LABVIEW ONLY)

Have you re-imaged your cRIO to the 2011 version and are you using the 2011 FRC Robot Project LabVIEW code? We had watchdog errors before we re-imaged the cRIO (it had the 2010 image on it) even when we were using a 2011 FRC Robot Project with the example code in LabVIEW.

NetPlanet 02-02-2011 18:50

Re: Solenoid button toggle
 
I'm assuming you want to get the button? The button was unbundled from a cluster, and if memory serves me right, it can be found under programming->Cluster->"Unbundle by name". Hook that up to the joystick get and select what button you want to retrieve. That solenoid code wouldn't do much as it is immediately turning off the solenoid after turning it on. This happens so fast you probably wouldn't notice. The 10 mili second timer causes the delay between iterations of the big loop, and not between the two loops that the solenoids are in. Yet even that is really fast. But most importantly, why are you doing this all in your periodic tasks? If I am understanding what you are trying to do, you might want to put the code in the teleop vi for convention's and safety's sake.


All times are GMT -5. The time now is 17:18.

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