Go to Post So Love your robot, and it will love you. - Not2B [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 10-02-2013, 19:40
fishy LOTP fishy LOTP is offline
Registered User
FRC #0461
 
Join Date: Feb 2013
Location: Indiana
Posts: 4
fishy LOTP is an unknown quantity at this point
cRIO Watchdog FPGA error-63195

When running code on the cRIO we get the following errors:
Quote:
63195 occurred at Read/Write Control in FPGA_WatchDogEnabled.vi->FPGA_WatchDogWriteEnabled.vi->WPI_WatchdogOpen.vi->Begin.vi->Robot Main.vi
NI-RIO: (Hex 0xFFFF0925) The handle for device communication is invalid or has been closed. Restart the application.
We also get FPGA errors when initializing encoders in begin. The watchdog still works(well enough for us to move motors smoothly) but the encoders don't. We're using the small cRIO. From what I've read I believe the issue is something between the Digital Sidecar and the cRIO.

So far we've tried:
This advice from NI
Reimaging the cRIO
Reinstalling Labview
Swapping out the sidecar
Swapping out the ribbon cable

None of which has worked so far. We'd love to get this fixed so we can use our nice encoders. Somebody help please?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2013, 19:44
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,751
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: cRIO Watchdog FPGA error-63195

Can you post some of your code? It seems a bit like you are either not opening the sessions, or are attempting to use session values other than what was opened. By the way, if you probe a session going into a Read or Write, you can visually inspect its value.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2013, 19:52
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO Watchdog FPGA error-63195

Make sure you are wiring a DIO Refnum to each of your encoder channels like the Encoder example and not a constant, the constant no longer works.

For the Watchdog, either don't use the watchdog or run it sequentially after an open that does not throw an error (either using a sequence structure or wiring the error out of the working open to the error in of the Watchdog open). This will force it to wait for the FPGA handle to be valid.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2013, 20:00
fishy LOTP fishy LOTP is offline
Registered User
FRC #0461
 
Join Date: Feb 2013
Location: Indiana
Posts: 4
fishy LOTP is an unknown quantity at this point
Re: cRIO Watchdog FPGA error-63195

Here is all the code. There are a lot of things in disable diagrams but the issue exists with or without. Enabling them gives us FPGA errors specific to encoders or counters.
Attached Files
File Type: zip code.zip (3.54 MB, 14 views)
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2013, 20:03
fishy LOTP fishy LOTP is offline
Registered User
FRC #0461
 
Join Date: Feb 2013
Location: Indiana
Posts: 4
fishy LOTP is an unknown quantity at this point
Re: cRIO Watchdog FPGA error-63195

I'll look at the encoder example. As for the watchdog, do they want you to use it at competition? Or is it entirely optional?
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2013, 20:09
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO Watchdog FPGA error-63195

The Watchdog was "replaced" by Motor Safety a few year ago. Motor Safety is like a per mechanism watchdog and is on by default for Robot Drive and off by default for other actuators. The Watchdog is still available but I don't think many teams use it.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-02-2013, 20:23
fishy LOTP fishy LOTP is offline
Registered User
FRC #0461
 
Join Date: Feb 2013
Location: Indiana
Posts: 4
fishy LOTP is an unknown quantity at this point
Re: cRIO Watchdog FPGA error-63195

I'll try the code with the DIO refnums and without the watchdog tomorrow when I get the chance. Hopefully that'll work. Thanks for the help.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2013, 11:10
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: cRIO Watchdog FPGA error-63195

Greg: any update on the watchdog issue? We have the same problem - we basically copy/pasted our watchdog code from past years that always used to work, but we're getting the same error as the OP.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2013, 13:21
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,751
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: cRIO Watchdog FPGA error-63195

We reworked some of the low level code to speed things up. This included reading the FPGA handle directly from a global. It appears that your watchdog code is at least sometimes running first and beating other code that normally opens the FPGA handle to the punch.

As a workaround, hook the watchdog error in to something like the RobotDrive Open. I'll make a note to have the WD ensure that the FPGA is opened.

Greg McKaskle
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 22:52.

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