Go to Post What I am expecting is the unexpected (what that is I don't know). - mdiradoorian [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2011, 19:30
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Deploying code in Labview, WindRiver, and Java

So we have three parallel projects we wanted to test out.

We formatted the cRio for Labview, deployed code, and it worked.

Then we formatted the cRio for Java, and deployed code. Three green lights on the driver station, but NO response from the joysticks. The robot sits fat dumb and unresponsive, even though we have our three green lights on the DS.

Then we formatted the cRio for C++, and deployed code. Two green lights on the driver station, the red light was on 'no code'. WindRiver sits there forever saying 'deploying' in the lower right hand corner of the screen.

We are clueless as to what the issues are.

Any suggestions ????

EDIT: a) task 'A' - convince ourselves we truly reformatted the cRio
b) task 'B' - make sure we understand what our wired and wireless interfaces on the development pc looks like

.
__________________
Ed Barker

Last edited by ebarker : 02-02-2011 at 21:18.
  #2   Spotlight this post!  
Unread 02-02-2011, 21:39
davidalln's Avatar
davidalln davidalln is offline
World's Worst Coder
AKA: David Allen
FRC #2415 (The Westminster Wiredcats)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Atlanta, GA
Posts: 108
davidalln is on a distinguished road
Send a message via AIM to davidalln
Re: Deploying code in Labview, WindRiver, and Java

For Java, the joysticks not working sounds like a code issue. For C++, it sounds like WindRiver wasn't set up properly to connect/download code to the cRIO.

What steps have you taken for both. Can you post the code?
__________________
SANTOSH ANDREW DECKER RICK WYNNIE SEAN DEREK MATT
(alamo (semis), p'tree (CHAMPS!), nc (CHAMPS!), newton (quarters))


Best four years of my life. Thanks to everyone who made it happen.
  #3   Spotlight this post!  
Unread 02-02-2011, 21:43
zbanks zbanks is offline
Registered User
AKA: Zach Banks
FRC #0529 (Mansfield Hornets)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: MA
Posts: 37
zbanks is an unknown quantity at this point
Send a message via AIM to zbanks
Re: Deploying code in Labview, WindRiver, and Java

You also may need to reconfigure the cRIO each time you switch languages using the software used to reflash the firmware. (You do not need to reformat the cRIO, however, I don't think)


EDIT: My mistake, I misread your post. Ignore this :-)

Last edited by zbanks : 02-02-2011 at 22:29.
  #4   Spotlight this post!  
Unread 02-02-2011, 22:00
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: Deploying code in Labview, WindRiver, and Java

Thinking back over the day there may have been an issue with the pc getting confused with the IP address. Both interfaces may have been configured to see the same network.

Re: Java - In Labview you specify that a PWM is associated with a particular module in slot 4 or slot 6. How / where is that done in Java ?

The code was the stock example projects.
__________________
Ed Barker
  #5   Spotlight this post!  
Unread 02-02-2011, 22:09
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Deploying code in Labview, WindRiver, and Java

source code would be helpful
and would you require individual PWMs for? In most cases, the electronics have their own classes and all you'd need to specify are the channels.

UPDATE
and make sure you do what zbanks said, format the cRIO to the language you are using
__________________
  #6   Spotlight this post!  
Unread 02-02-2011, 22:41
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: Deploying code in Labview, WindRiver, and Java

To answer the question - "how are the 'slots' assigned in Java and C++"

The answer is on page 22 of this document: http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf

The source is the default SimpleTemplate in the examples folder.
__________________
Ed Barker
Closed Thread


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:54.

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