View Full Version : Solenoid button toggle
mike1010100
29-01-2011, 15:32
I was wondering where you get the button function?
http://i1226.photobucket.com/albums/ee409/MichaelNewman1010100/Untitled.png
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)http://i1226.photobucket.com/albums/ee409/MichaelNewman1010100/Untitled.png
mike1010100
29-01-2011, 16:06
http://i1226.photobucket.com/albums/ee409/MichaelNewman1010100/Untidtled.png (this was supposed to be the 2nd picture)
Joe Ross
29-01-2011, 16:35
I was wondering where you get the button function?
http://i1226.photobucket.com/albums/ee409/MichaelNewman1010100/Untitled.png
The item you circled is a feedback node.
Mark McLeod
29-01-2011, 19:58
The screen shot tells you where everything used in that image can be found.
The Feedback node is found in the Programming -> Structures palette.
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
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.