Go to Post "Its not a glitch its a new feature, we just dont know how to use it yet" - Cuog [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 08-02-2010, 17:10
weinbergmath's Avatar
weinbergmath weinbergmath is offline
Mentor to China FTC/FLL, FRC1230
AKA: Evan Weinberg
FRC #1230
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Hangzhou, China
Posts: 22
weinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to behold
Watchdog/Refnum/Labview Problems

Hi everyone,

After browsing the forums, it seems I have a watchdog error, but I can't figure out where it might be. Here's the backstory:

After testing the drive motors with the joysticks last week, we updated the software to include controls for our pneumatic systems. I disconnected the wires that connected the joystick axes to the Arcade Drive VI so the motors wouldn't do anything during testing of those systems. After getting the relays to work as we wanted, I reconnected the wires from the axis array outputs of Get Joystick to the inputs of the Arcade Drive, and our troubles began.

The joysticks could still control the relays, but did not move the motors at all. The Jaguars blinked a slow red, which I believe indicates a problem with the signal. When disabled, they returned to blinking amber.

In the diagnostics tab, the error messages had the Watchdog error that many other CD users have said are a bug that shouldn't affect anything. I also had other messages that said that a reference wasn't found in the Robot main VI. I initially had 2 joysticks, but put enverything on one joystick when the Refnum error said it couldn't find a reference related to the joystick. I figured that the joystick reference I added had some error that I didn't even know about, even though I added it in the SAME format as Joystick 1 was entered in Begin.vi.

My troubleshooting info:
1. Attaching a servo to the PWM outputs on the sidecar and adding the jumper gave the Joysticks control over the servo as I would expect the motors to have.

2. The dashboard shows that the PWM signals are indeed going out as expected when the joystick is moved.

3. I did this using the tether and the wireless and both had the same results.


4. I removed the camera references in Teleop and begin.VI, but there was no change - still no motor outputs.

5. At one point before I removed the second joystick, moving ONE of the joysticks caused PWM1 to move for a brief second before shutting down. This never occurred with the right motor on PWM2.


Based on what I've read in other posts, this seems to be a watchdog issue designed to stop the motors when the system hangs. I removed all references to the watchdog in these two VIs, and the problem remained. I did NOT get any continuous signal in the driver station software that the Watchdog hadn't been fed, though occasionally it did appear immediately after switching from teloperated disable to enable.

I'm probably going to start from the basic template and add in everything I changed again, but I'm hoping there is a simple reason why this isn't working. If you have a moment, I'd love to get insight from someone on possible issues. I've attached the two files to this post. The collective brilliance of the CD community amazes me and has helped in the past - I'm hoping for more of the same!

Take care everyone,

Evan
Attached Files
File Type: vi Teleop.vi (33.2 KB, 29 views)
File Type: vi Begin.vi (32.2 KB, 23 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2010, 18:08
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Watchdog/Refnum/Labview Problems

With Joystick 2 you didn't keep an identical naming convention, so I deduce that your second joystick reference in Teleop.vi did not use the exact name given in Begin.vi, e.g., "Joystick2" ~= "Joystick 2"
The technique I teach is to copy the reference name given in Begin and paste it wherever it is needed to avoid typos.

As far as the red blinking Jaguars, that is not a sign of a Watchdog error.
From the symptoms, it seems your code is fine, but a Jaguar fault is being generated.

Did you use a fully charged battery?

Quote:
A slow flashing Red LED indicates that the MDL-BDC detected one of the following fault conditions:
  • Power supply under-voltage
  • Over temperature
  • Over current
  • Limit switch activated in the current direction of motion
When a fault condition occurs, the motor shuts down and the LED indicates a fault state during the fault condition and for 3 seconds after the fault cause is cleared (except for the limit switch fault, which is cleared instantly). A slow flashing Yellow LED indicates that the MDL-BDC is not receiving a valid control signal.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2010, 11:24
weinbergmath's Avatar
weinbergmath weinbergmath is offline
Mentor to China FTC/FLL, FRC1230
AKA: Evan Weinberg
FRC #1230
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Hangzhou, China
Posts: 22
weinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to behold
Re: Watchdog/Refnum/Labview Problems

Hi Mark,

Thanks for the note - we ended up starting from scratch and building everything back up to where we had it, and it now works. The battery wasn't the problem, which still makes me a bit uncomfortable since the problem could somehow appear again. I'm satisfied for now that as of last night with lots of testing of all of the systems simultaneously, the problem never arose again.

Thanks for the help!

Evan
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview Watchdog issues isaacdl NI LabVIEW 14 01-03-2010 15:26
Problems with the watchdog (I think) Thxe C/C++ 9 08-02-2010 15:41
Problems with RefNum Registry get vi zebrabots NI LabVIEW 3 02-02-2010 22:16
System: Watchdog problems dboisvert C/C++ 7 16-02-2009 02:36
System: Watchdog problems dboisvert C/C++ 1 15-02-2009 20:12


All times are GMT -5. The time now is 22:43.

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