View Full Version : frc error 44061 loop/relay troubles
Team3220
04-02-2015, 18:22
We are using the default mecanum with arm 2015 code, and we have added some relays (probably incorrectly). Whenever we drive the robot, it operates perfectly fine, with a working camera, but we get the infamous "Error 44061" every few seconds, over and over again, during TeleOp. I probably coded the relays wrong, as they perpetually run backwards, despite being assigned to buttons. What should we do? Can anyone help me with my relay/error troubles? I can post pictures of our begin/teleop VIs, if you think it will help.:confused: :confused:
Thanks!
Mark McLeod
04-02-2015, 19:41
It's easiest on us if you can zip and post the project.
Team3220
06-02-2015, 14:52
Here's our TeleOp code. It's us giving an error saying Relay DevRef isn't wired.
Mark McLeod
06-02-2015, 15:03
Not enough to go on for the DevRef without the rest of the project.
However, what you posted does have a bunch of errors highlighted by all the red dots.
All the enumerated types used aren't the right ones for Relay.
Get one correct Relay Enum by
Deleting the wire into Relay (the one with the red dot)
Right-click on the now vacant Relay input node and choose Create->ConstantThat's the correct Relay enum type.
Now make copies of the correct one and replace all the others
Finally, remove the Enum you created into Relay and wire Relay into the Select as it was before.
If done correctly all the red dots should be gone.
P.S.
What are you using this Relay for?
Forward, Reverse, Off are an unusual combination unless they're LEDs or something like that.
It looks like you are using a RefNum Set instead of a RefNum Get. You'll only use the set (arrow going into the hashtag) in Begin.vi. You'll use the Get (arrow going away from the hashtag) in any other vi you want to use the device in.
Team3220
06-02-2015, 15:10
This is the code you gave us in another thread. We copied it. And yeah we fixed the Set/Get issue.....my bad xD
Mark McLeod
06-02-2015, 15:16
Cecil (aka Alex) caught it!
Team3220
06-02-2015, 17:24
Haha okay. And we're using this to raise/lower an arm to pick up the crates. We're using spike relays to control window motors that raise/lower the arm via a winch. I can post pictures, if you're (understandably) having problems understanding my vague description. Also, I changed my code to match your (Mark's) description. Still an error on the second comparison, but hopefully I can fix that this weekend.
Team3220
06-02-2015, 21:27
Never mind- I fixed it. Thank you all!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.