|
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
|