Go to Post "It's not a bug, it's an unlisted feature." - Barry Craig [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 09-01-2010, 18:24
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Problems Interfacing '10 Control System w/ Classmate

Hi all,

We set up the Classmate and installed fresh software from the '10 kit, as per instructions from FIRST. We re-imaged the cRIO from the Classmate, but it refuses to interface with our controls. It throws a "No Code" error, even with a fresh re-imaging, and also with unedited sample code from FIRST.

Anyone else have this error? Anyone have a solution?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2010, 09:48
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Problems Interfacing '10 Control System w/ Classmate

Write code and put it on the robot. It needs your code
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2010, 12:48
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Re: Problems Interfacing '10 Control System w/ Classmate

Quote:
Originally Posted by byteit101 View Post
Write code and put it on the robot. It needs your code

Quote:
Originally Posted by 1951-44U View Post
It throws a "No Code" error, even with a fresh re-imaging, and also with unedited sample code from FIRST.
Obviously, we did. I think that unedited sample code counts as code that was downloaded successfully -- WindRiver threw no errors. This is similar to the case I had before with last year's Control System about a month ago: http://www.chiefdelphi.com/forums/sh...ad.php?t=79328
Reply With Quote
  #4   Spotlight this post!  
Unread 10-01-2010, 12:12
TimDavis TimDavis is offline
Registered User
FRC #1983
 
Join Date: Nov 2008
Location: Seattle
Posts: 3
TimDavis has a spectacular aura aboutTimDavis has a spectacular aura aboutTimDavis has a spectacular aura about
Re: Problems Interfacing '10 Control System w/ Classmate

Is there a URL or other means to download the driver station application? I would like to run the application on a development system laptop instead of the Classmate for testing purposes.

Tim
Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2010, 13:03
TDohse TDohse is offline
Registered User
AKA: Thomas
no team (NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 39
TDohse is an unknown quantity at this point
Re: Problems Interfacing '10 Control System w/ Classmate

Quote:
Originally Posted by TimDavis View Post
Is there a URL or other means to download the driver station application? I would like to run the application on a development system laptop instead of the Classmate for testing purposes.
The mandatory update for the classmate driver station also works as a standalone installer for development machines.

It can be downloaded at http://joule.ni.com/nidu/cds/view/p/id/1535/lang/en
Reply With Quote
  #6   Spotlight this post!  
Unread 10-01-2010, 13:15
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Re: Problems Interfacing '10 Control System w/ Classmate

Quote:
Originally Posted by TDohse View Post
The mandatory update for the classmate driver station also works as a standalone installer for development machines.

It can be downloaded at http://joule.ni.com/nidu/cds/view/p/id/1535/lang/en
We did install this, and even when we do it again, it detects the update already installed and does not re-install the update.

The robot is still refusing to accept code.

Quote:
Originally Posted by byteit101 View Post
Write code and put it on the robot. It needs your code
Quote:
Originally Posted by 1951-44U View Post
It throws a "No Code" error, even with a fresh re-imaging, and also with unedited sample code from FIRST.
Obviously, we did.


The Classmate indicates that it communicates with the robot alright and the stop button is in place, but it detects no code on the robot even though we downloaded it.

Last edited by 1951-44U : 10-01-2010 at 13:40.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-01-2010, 15:12
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: Problems Interfacing '10 Control System w/ Classmate

The driver station (DS) has high level diagnostics on the left that summarizes communications, code, and stop button. Additional information, especially about communications is provided on the Diagnostics tab. This pings each of the elements to help tell what is wrong with the comms or USB elements.

If No Code is the message on the DS, and everything else is fine, I'd probably use the development tool to run the code, perhaps look a the serial output, until you believe that your code is running that way. One possible issue with the code starting could be the language that the cRIO was formatted for. The language selection determines the libraries and some startup settings. The Diagnostics tab displays the cRIO language settings near the version string. The updated version of the DS does anyway.

Once you have code running in the development environment, then you can focus on deployment.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 10-01-2010, 15:21
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Re: Problems Interfacing '10 Control System w/ Classmate

We looked on the Diagnostics tab, and under the "Robot" and "E-net Link" there are no errors (all green). We could reboot the robot and have the two indicators respond accordingly.

What's the "developmental tool"? Do we use the remote console on WindRiver? Or something else?
Reply With Quote
  #9   Spotlight this post!  
Unread 10-01-2010, 15:48
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: Problems Interfacing '10 Control System w/ Classmate

The detail lights in the communications column don't really offer any additional info unless you have communication error. Otherwise they simply confirm which elements are present.

I'm not sure if you are using C++, LV, or Java, but by development tool, I mean the WindRiver C++ Eclipse environment, the Java Eclipse, or the LabVIEW editor. Work through the getting started directions if needed, and execute a sample program, an example, or your own simple program.

The No Code message means that no code on the robot is interacting with the communication task. Note that code stuck at a breakpoint looks similar to this depending on the development tool.

The serial output may offer some hints as to why code isn't starting, especially for C++ and Java. Note that this year, there is a tool for sending the serial over enet and straight to a message window.

On the diagnostics tab, have you verified that the cRIO is formatted for the language you've selected?

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 10-01-2010, 17:38
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Problems Interfacing '10 Control System w/ Classmate

We formatted the CRio to work in C/C++. When we tried to connect to the cRio using the real time target server in Windriver, here is the error:

Code:
Sun Jan 10 17:25:24 2010
    Target name is 10.0.25.2
tgtsvr (VxWorks6x_10.0.25.2@1951-44U): Sun Jan 10 17:25:24 2010
    WTX Library version: 4.1.1.22
    Tgtsvr core version: 4.1.1.17
     Wind River Target Server: Win32 version
    Connecting to the target agent ...
    ... switching to WDB4 mode ...    ... succeeded !
    Loading plug-in for VxWorks... succeeded.
     Checking License... OK
    VxWorks plugin version: 4.1.1.11
    Attaching elf OMF reader for PPC CPU family... succeeded.
    
Differences for module "vxWorks" segment's address 0x100000:
     Offset        Target Value    Host Value
     0x152        0x9c        0x9d
      0x153        0x84        0xd0
     0x49d        0x0d        0x09
      0x49e        0x03        0xaf
Stopping dump. Other errors might exist.


     Error: The systems running on the target and loaded into the target server memory are different.
Either wrong core file is selected on the host or text section is corrupted on target side.
Error during target server core initialization
 Target Server will exit
After that, we connected the cRio directly to HyperTerminal and recorded the output. I have attached a text file populated with errors. The last line (FTP Server Connection thread error) occured when we tried to deploy code using WindRiver.
Attached Files
File Type: txt CAPTURE.TXT (21.0 KB, 43 views)
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
Reply With Quote
  #11   Spotlight this post!  
Unread 10-01-2010, 18:16
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Problems Interfacing '10 Control System w/ Classmate

Hi Bharat,

From looking at your console capture, I can see that you are loading the FRC 2009 image file onto your cRIO (or that you never reimaged it).

The errors you are getting (which prevent your code from running) indicate that it is expecting symbols from the 2010 image.

This tells me that you have successfully updated the WPILib, but not the image on the cRIO.

Go to www.usfirst.org/frccontrolsystem and click on Mandatory LabVIEW Update. In the description on that page, you'll see that this update is needed for all development languages since it contains the latest imaging tool and image for the cRIO.

After installing this update, run the imaging tool to image your cRIO with FRC_2010_v19.zip. You should then be able to deploy or run your 2010 code and control it with the classmate driver station.

Cheers!
-Joe
Reply With Quote
  #12   Spotlight this post!  
Unread 10-01-2010, 18:47
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Re: Problems Interfacing '10 Control System w/ Classmate

YES! It works, that update did the trick. I guess we overlooked it because it had Labview in the file name.

Well, lesson learned. Install any and all updates.
Reply With Quote
  #13   Spotlight this post!  
Unread 10-01-2010, 22:55
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: Problems Interfacing '10 Control System w/ Classmate

I did the updates and now the Classmate can't find nicyapi.dll. I used the DS on the programming laptop instead and I could see that the downloaded program worked on the DS executables on the laptop. Will there be an update with the proper files soon so we can get the Classmates running?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
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
[BB] So, what about the Classmate? EricVanWyk General Forum 30 13-01-2010 20:04
Classmate PC - Front Panel jmanela NI LabVIEW 28 23-08-2009 20:36
New Control System Update Problems NinJA999 FRC Control System 3 29-12-2008 23:04
New Control System Problems ExarKun666 Technical Discussion 13 23-12-2008 16:29
New Control System - Wireless Problems Ashwin FRC Control System 13 11-12-2008 10:38


All times are GMT -5. The time now is 21:14.

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