Go to Post As far as I am concerned, the quality of an electronic device is directly proportional to the number of blinky lights on it. - EricVanWyk [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2015, 11:44
4821 Vulcans 4821 Vulcans is offline
Registered User
FRC #4821
 
Join Date: Feb 2015
Location: Washington DC
Posts: 7
4821 Vulcans is an unknown quantity at this point
Left and Right Drive Motors Teleop Disabled error

Hi everyone,
We are using Labview and used the default code to start with. We have a 4-motor drive train with two Talon SRs controlling each side. When I tried to code another motor, even using a simple manual control where I type in an input, Teleop mode disables itself and we get an error text that says that an error occurred at the Left and Right drive motors: the loop contains too much code or something is starving the loop.

I'm wondering why this might be happening? We are able to use the drive motors but as soon as we try to send any input to the other motors on our robot, Teleop disables itself. We haven't touched the default code at all in any way except adding one motor as a test.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2015, 12:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Left and Right Drive Motors Teleop Disabled error

It sounds like you added a While loop inside Teleop.

Did you perhaps copy one of the motor examples a little too closely? Read Tutorial 7—Integrating Examples into Robot Code. Briefly, the part of the example that you should put in Teleop is what is inside the loop, not the loop itself. The part to the left of the loop goes in Begin, and the part to the right goes in Finish.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2015, 12:27
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Left and Right Drive Motors Teleop Disabled error

It also sounds like you may be typing a number into a dashboard or VI panel. Keep in mind that if this same laptop is running the Driver Station software, that the enter/return key will disable the robot and space will estop an enabled robot.

So I suspect that you have two issues intertwined. If you will click away from a numeric, it will also take the new value -- you don't have to hit enter. Or you can use two laptops.

And I think you may have something that is causing teleOp to take more than 100ms to update the drive motor's values, resulting in that warning message and the motors being set to zero power.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2015, 12:40
4821 Vulcans 4821 Vulcans is offline
Registered User
FRC #4821
 
Join Date: Feb 2015
Location: Washington DC
Posts: 7
4821 Vulcans is an unknown quantity at this point
Re: Left and Right Drive Motors Teleop Disabled error

Thanks for the quick reply. Here's what I've done:

Motors are opened in the Begin VI, assigned reference names, and used the refnum set VI to send the name onwards. Then in Teleop, I have the refnum get VI wired to the motor output VI, and the same reference name given as in Begin.

This is exactly the same code we've used for previous years and had no problems. I don't have anything inside "Finish"- it appears that Finish is just a true-false thing that I can't actually open.

Any other thoughts? Our Teleop code contains no loops that we've made at all- currently just buttons sending inputs to motors using a selector.

Thanks for all your help!
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2015, 13:23
4821 Vulcans 4821 Vulcans is offline
Registered User
FRC #4821
 
Join Date: Feb 2015
Location: Washington DC
Posts: 7
4821 Vulcans is an unknown quantity at this point
Re: Left and Right Drive Motors Teleop Disabled error

Thanks! We were using a VI front panel first to test, and that was running the driver station, so that was definitely a source of problem. Will only use the button code now.

AS for the 100ms issue, can you think of anything that is new about this year's robot main structure that is different from last years that might be causing this error? Our only difference this year compared to previous years is that we have a 4 motor drive train instead of 2. It is still a swerve drive, with both left motors going into PWM 0 using a 2-1 PWM cable, and the same for the right side with channel 1. Should we be using a 4-motor robot drive VI and plugging into 4 PWM cables? If so, how do we then get the two left and two rights to have the same input all the time?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2015, 14:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Left and Right Drive Motors Teleop Disabled error

Forgive my assumption. It sounds like you're doing things right.

So now I'm not sure I understand what your robot is doing. Does it work okay until you press Enter? That would certainly disable it, as you should now know.

The "Left and Right Motors" error message means the robot isn't setting the drive motors often enough. If it only happens once when the robot gets disabled, and doesn't repeat continually, it probably isn't going to affect the operation of the robot. But let's keep looking for the cause anyway. Did you change anything in the Disabled vi? The default project sets the drive motors to zero in Disabled. If you removed that, you'll get the error because the motors aren't being set when the robot is disabled.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2015, 14:25
4821 Vulcans 4821 Vulcans is offline
Registered User
FRC #4821
 
Join Date: Feb 2015
Location: Washington DC
Posts: 7
4821 Vulcans is an unknown quantity at this point
Re: Left and Right Drive Motors Teleop Disabled error

Gotcha. It disables teleop any time that I try to send an input to the motors, either via buttons or controls. The driving motors work all the time, though- all I have to do is reenable teleop and we can drive around. It's just all the other motors on the bot- any time we send an input to them teleop disables and that same error is coming up.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2015, 15:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Left and Right Drive Motors Teleop Disabled error

Show us your code. Teleop in particular seems suspect, but we should also see Begin and Disabled.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2015, 19:32
4821 Vulcans 4821 Vulcans is offline
Registered User
FRC #4821
 
Join Date: Feb 2015
Location: Washington DC
Posts: 7
4821 Vulcans is an unknown quantity at this point
Re: Left and Right Drive Motors Teleop Disabled error

Sorry for such a late reply. Here's two screenshots. Begin has all our motors opened. Teleop has a screenshot of part of our button code. Couldn't fit it all into one shot but the other buttons are coded exactly the same- a selector with an output of 1, 0, or -1 depending.
Attached Thumbnails
Click image for larger version

Name:	Begin screenshot.PNG
Views:	19
Size:	21.8 KB
ID:	18403  Click image for larger version

Name:	teleop.PNG
Views:	26
Size:	24.6 KB
ID:	18404  
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2015, 23:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Left and Right Drive Motors Teleop Disabled error

I don't see anything in the programming that would make your robot disable itself. However, I do see something that probably isn't what you want to do: you are invoking the Lift motor twice. I can't be certain, but one of them seems to have an extra space character in front of it, but that ought to show up on the Driver Station as an error. It shouldn't cause a disable, either. I also see a lot of oddly-run wires that don't make clear what they're connecting, and cleaning them up would help make the code easier to read.

Right now, I'm still unclear as to exactly what you are seeing. It sounds like you enable the robot, and you can drive it fine, but as soon you press any of the buttons to control a motor the robot gets disabled. Is that what is happening?



(I'm also wondering why you chose such a convoluted way of reading the individual joystick buttons. It would be a whole lot simpler to use an Index Array function, and I think it would be easier to read as well. But that's not relevant to the current issue, and I won't focus on it.)
Reply With Quote
  #11   Spotlight this post!  
Unread 27-02-2015, 20:28
iggy_gim's Avatar
iggy_gim iggy_gim is offline
Registered User
AKA: Theodore Kim
FRC #5123 (Mechadogs)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Yonkers, NY
Posts: 79
iggy_gim is on a distinguished road
Re: Left and Right Drive Motors Teleop Disabled error

So has anyone figured this problem out. We were having this problem with our robot while we were testing it before bag and tag and now the problem has carried over to our practice-bot. We are running the default program (Arcade Drive) for the roboRIO. We really need help because our team is being interviewed by a local TV station and they want to see the robot in action and we can't provide that without this issue being resolved.

It seemed to me at first a problem with the roboRIO but I reimaged it and re flashed the firmware, so nothing wrong there. I have the same drive train as described by the OP but we are using Victor 888s instead of Talons. I would really appreciate nay help that anyone can give!

Thanks a lot!
__________________
My motto: Eh... that looks about right...
---------------
2013: Team 2344 Saunders Droid Factory
2014-16: Team 5123 Mechadogs, Captain/Founder
2017: Team 5123 Mechadogs Mentor
Reply With Quote
  #12   Spotlight this post!  
Unread 27-02-2015, 22:04
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,609
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Left and Right Drive Motors Teleop Disabled error

Can you try to lay out exactly what is happening? Step through the problem describing what you're doing on your driver station and what the robot does. Especially mention any error messages that show up or if the driver station changes from teleop to disable. Also post your code from begin.vi and teleop.vi
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #13   Spotlight this post!  
Unread 28-02-2015, 07:29
iggy_gim's Avatar
iggy_gim iggy_gim is offline
Registered User
AKA: Theodore Kim
FRC #5123 (Mechadogs)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Yonkers, NY
Posts: 79
iggy_gim is on a distinguished road
Re: Left and Right Drive Motors Teleop Disabled error

Thanks for your response.
As I said earlier this problem occurs when we try to run any program, even the default program. I will still post the begin and teleop that we are using. We get the error:

ERROR -44061 occurred at "Left and Right Motors" in the VI path: Robot Main.vi
FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop.

The motors don't turn, but the camera works and RL and Status light show not errors. No errors with comm either, steady connection both over router, via USB and direct Ethernet connection. It worked briefly before, but now... nothing. I will continue to check the wiring, but I am almost 100% certain its the programming at this point.
Attached Thumbnails
Click image for larger version

Name:	beginvi.PNG
Views:	12
Size:	32.9 KB
ID:	18505  Click image for larger version

Name:	teleopvi.PNG
Views:	14
Size:	29.1 KB
ID:	18506  
__________________
My motto: Eh... that looks about right...
---------------
2013: Team 2344 Saunders Droid Factory
2014-16: Team 5123 Mechadogs, Captain/Founder
2017: Team 5123 Mechadogs Mentor

Last edited by iggy_gim : 28-02-2015 at 07:30. Reason: Forgot the images
Reply With Quote
  #14   Spotlight this post!  
Unread 28-02-2015, 09:35
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Left and Right Drive Motors Teleop Disabled error

Since you are using Victors 888, switch your drop down bar on your open motors from talon to victors.
Attached Images
 
__________________
VEX & FRC Student Team Member #357 Royal Assault 2010-2014 "Dare Mighty Things"
2014-2019 Attending Drexel University Major:Electrical Enginnering
Reply With Quote
  #15   Spotlight this post!  
Unread 28-02-2015, 10:42
iggy_gim's Avatar
iggy_gim iggy_gim is offline
Registered User
AKA: Theodore Kim
FRC #5123 (Mechadogs)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Yonkers, NY
Posts: 79
iggy_gim is on a distinguished road
Re: Left and Right Drive Motors Teleop Disabled error

I did that already, we were actually experimenting with talons yesterday so that is why i switched them.
__________________
My motto: Eh... that looks about right...
---------------
2013: Team 2344 Saunders Droid Factory
2014-16: Team 5123 Mechadogs, Captain/Founder
2017: Team 5123 Mechadogs Mentor
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


All times are GMT -5. The time now is 03:51.

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