Log in

View Full Version : SOLENOID


FrankenmuthK
31-01-2015, 09:42
How do we program a double solenoid for recycle rush?

FRC 5215 <Steagles>
:yikes:

Mark McLeod
31-01-2015, 09:49
Lots of possibilities. Here is only one.
The solenoid needs to be Open'ed in Begin.vi and given a name there.
http://team358.org/files/programming/ControlSystem2015-2019/labview/ButtonSolenoidExample.png

FrankenmuthK
31-01-2015, 09:52
Lots of possibilities. Here is only one.
The solenoid needs to be Open'ed in Begin.vi and given a name there.
http://team358.org/files/programming/ControlSystem2015-2019/labview/ButtonSolenoidExample.png

What does the begin.Vi look like??

FRC 5215 <Steagles>

Mark McLeod
31-01-2015, 10:09
Here's another example showing the Open in Begin and it's use in Teleop.
http://team358.org/files/programming/ControlSystem2015-2019/labview/DoubleSolenoidExample.png

FrankenmuthK
31-01-2015, 10:43
Here's another example showing the Open in Begin and it's use in Teleop.
http://team358.org/files/programming/ControlSystem2015-2019/labview/DoubleSolenoidExample.png

We are having trouble connecting the Select function to the Solenoid set. VI

Mark McLeod
31-01-2015, 10:46
Try these steps:
Right-click on the input of the Solenoid Set and Create->Constant
Copy/Paste the constant and attach two of them to the Select as shown
Delete the constant attached directly to the Solenoid Set
Wire the Select to the solenoid SetThat makes sure the enumerated constants used are the correct ones for Solenoid Set.

FrankenmuthK
31-01-2015, 10:52
Try these steps:
Right-click on the input of the Solenoid Set and Create->Constant
Copy/Paste the constant and attach two of them to the Select as shown
Delete the constant attached directly to the Solenoid Set
Wire the Select to the solenoid SetThat makes sure the enumerated constants used are the correct ones for Solenoid Set.

Thank you so much for your help!!! sorry for all of the questions, but could you show us the finish.VI?

THank you so much again

Mark McLeod
31-01-2015, 11:02
Finish isn't technically necessary, it's just good form.

ale_jero
31-01-2015, 12:18
Here's another example showing the Open in Begin and it's use in Teleop.
http://team358.org/files/programming/ControlSystem2015-2019/labview/DoubleSolenoidExample.png

Lastly, how do we program the compressor?

Mark McLeod
31-01-2015, 12:24
Lastly, how do we program the compressor?
By creating a solenoid, the compressor was automatically created too.
No explicit code is required for the compressor.

All this does assume that your PCM has a CAN ID of 0