Go to Post Everyone is reading way too much into this. The game piece is clearly a bunch of Opahs this year. Problem solved, case closed. Start designing your fish handling robots now. - Ryan Dognaux [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 20-11-2013, 10:19
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Reimaging the cRIO - Help!

Hi,
We're having issues reimaging the cRIO. Thanks in advance for any input and help!

We're a rookie team from the UAE and trying to get a jumpstart on the upcoming season. Our mentoring team, LiveWire FRC 3562, was gracious enough to provide us with a copy of LabVIEW and we've been able to install it. We have the sample code ready for download.

-Initially (a few months past) we were able to image the cRIO.
- All the updates are installed, we've checked that repeatedly, and reinstalled all of them, in the correct sequence, just in case.
- The Driver Station confirms we have communication with the cRIO! This is exciting! There were cheers.
- But, the robot does not respond to joystick movement at all.
- A series of error messages appear in the Driver Station and searching them on various threads suggests we need to reimage the cRIO.
- However, when we attempt to use the FRC cRIO Imaging Tool, an error message pops up stating "No cRIO images found. Expected here: long path ending in /FRC Images"
- The path exists, the FRC Images folder exists and it has a couple of folders in it...

Questions, anyone have this same problem last season? Can anyone point us in the right direction? If anyone has recently imaged their cRIO, can you look at the content of your FRC Images folder and tell us the contents? Or maybe zip and email the contents if that would even work? Any other thoughts/approaches ? We don't have the LabVIEW disk so we can't reinstall LabVIEW but I don't think thats the problem...
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #2   Spotlight this post!  
Unread 20-11-2013, 15:18
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,933
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Reimaging the cRIO - Help!

If the image tool runs then you do not need the labview disk for that.

The image you are looking for is in a zipped file folder FRC_2013_v47.zip which should be in the cRio_images folder(no need to unzip the file). The imaging tool should show what image that is on the the cRio.

Last edited by FrankJ : 20-11-2013 at 15:21.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-11-2013, 16:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Reimaging the cRIO - Help!

If the /FRC Images folder doesn't have the FRC_2013_v47.zip file in it, then you are missing the LabVIEW FRC specific update.
That's where the image file comes from.

Here's what my tool looks like with the v47 file shown as selected (1st image).

The second image is the kind of response you'd get if your PC IP didn't match the cRIO. It just has a little trouble identifying the cRIO type and what image it's running.
Attached Thumbnails
Click image for larger version

Name:	ImagingTool.jpg
Views:	34
Size:	51.3 KB
ID:	15427  Click image for larger version

Name:	ImagingTool2.jpg
Views:	31
Size:	48.2 KB
ID:	15428  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 20-11-2013 at 17:10.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-11-2013, 04:32
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Wow! We changed nothing and at startup today it now recognizes the current image which is new. Still no movement/response to joysticks. So I would still love feedback...

These images are the error messages in driver station and our cRIO imaging tool...Click image for larger version

Name:	ImageUploadedByTapatalk1385026317.680021.jpg
Views:	32
Size:	139.3 KB
ID:	15435
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #5   Spotlight this post!  
Unread 21-11-2013, 04:34
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Here are the error messages via the driver station... Warning Click image for larger version

Name:	ImageUploadedByTapatalk1385026447.775717.jpg
Views:	39
Size:	143.6 KB
ID:	15436
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #6   Spotlight this post!  
Unread 21-11-2013, 08:19
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,752
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: Reimaging the cRIO - Help!

The driver station LEDs to the left of the messages show that the laptop is able to ping the robot. Further to the left are Communications and Code LEDs, what are the state of those?

The warnings shown in the window are lower level details. If they aren't errors, you don't really need to worry about them.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 21-11-2013, 08:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Reimaging the cRIO - Help!

At first glance the cRIO image seems to be fine. It's operating and talking back to the Driver station. I've attached three screenshots of the Driver Station app tabs for Operation, Diagnostics, and Setup, so you can compare them with your own. You can see that the warning/info messages on the second image of the Diagnostics tab are similar to your photo. These have the Driver station PC connected directly to the cRIO, so no bridge.

In additional to answering Greg's question, about the status shown on the left of all three screenshots (communications/Robot Code/Joysticks and Teleoperated Enabled),

A couple of things to check:
  • Have you Enabled the Driver Station? (see the first image below, Operation tab)
  • On the Driver Station Setup tab (third image below), the right side has a list of the joysticks you have connected. Check to see that yours is there, in the correct USB slot, and turns blue when you push a joystick button. It will be green if it's recognized as being plugged in.
  • Are you running a default robot project? How did you download it to the robot?
Attached Thumbnails
Click image for larger version

Name:	NormalDS-Operation.jpg
Views:	22
Size:	24.9 KB
ID:	15439  Click image for larger version

Name:	NormalDS-Diagnostics.jpg
Views:	19
Size:	41.0 KB
ID:	15440  Click image for larger version

Name:	NormalDS-Setup2.jpg
Views:	19
Size:	34.1 KB
ID:	15441  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-11-2013 at 20:55.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-11-2013, 14:41
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Thanks so much for the help. Our river station appears to match yours' and the communication, joystick and robot code lights are all green. However, it's never turned blue. We are using default code. We downloaded it via the project explorer window...
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #9   Spotlight this post!  
Unread 21-11-2013, 16:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Reimaging the cRIO - Help!

If the joystick entry won't turn blue when you push a button, that means no commands will be sent to the robot.

Try hitting the F1 key to see if the button presses get recognized after that. That forces the Driver Station to check the USB joysticks again.

What kind of joystick are you using?

Would you take a snapshot of the Setup tab for us?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-11-2013 at 17:12.
Reply With Quote
  #10   Spotlight this post!  
Unread 23-11-2013, 07:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Reimaging the cRIO - Help!

P.S.
Laptop USB is notorious for cutting power to USB ports while the laptop is on battery.
  1. Make sure your laptop battery is fully charged and preferably plugged in.
  2. Check your power saver settings to avoid power cutbacks when the battery is low.
    • Open the Device Manager. Win 8, hold the Windows key and press the 'x' key to open a menu in the lower-left and select "Device Manager." Using Win 7, open the Start Menu, type "Device Manager" in the search field, and click it.
    • Expand "Universal Serial Bus controllers"
    • Right-click each entry titled "USB Root Hub" and select "Properties"
    • Change to the "Power Management" tab
    • Uncheck the check box next to "Allow the computer to turn off this device to save power"
    • Press "OK"
    • Repeat this for each "USB Root Hub" entry
    • Reboot the computer
  3. If using more than one USB device, i.e., multiple joysticks, distribute the USB load across all the laptop USB ports that you have. Keep critical joysticks on their own USB port.
  4. Avoid ganging multiple USB devices up on a single USB hub. Bigger hubs are worse. If used, small hubs are best.
  5. Avoid fancy joysticks that draw an excess of USB power. Power hungry fancy sticks or ones with glittery LEDs won't fare as well as plain vanilla generic joysticks.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-11-2013 at 10:03.
Reply With Quote
  #11   Spotlight this post!  
Unread 24-11-2013, 02:22
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Click image for larger version

Name:	ImageUploadedByTapatalk1385277185.966813.jpg
Views:	28
Size:	120.3 KB
ID:	15446

Here is the image of our setup...

We're currently attempting to find the original default code to download, just in case we changed something by accident.

As far as the joysticks, this is probably a stupid question, but other than battery usage, does the model matter?
Meaning, do we have to select it somewhere within the code? We used V-Max 2013 flight joysticks for ps3/PC, nothing fancy, just generic joysticks...
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #12   Spotlight this post!  
Unread 24-11-2013, 08:23
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,752
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: Reimaging the cRIO - Help!

From your screen, it seems that you have joysticks, code, and communication to your robot. It is disabled, and it isn't possible to know how the code was programmed.

My suggestion would be to enable the robot in teleop mode and carefully test it. Perhaps you should put the robot on blocks as you test. You should also be ready to disable or estop it by hitting the spacebar on the driver station if you need to.

Another approach is to go to the dashboard and put the robot into test mode. This lets you read sensors and it lets you enable and test outputs just one at a time.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 25-11-2013, 11:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Reimaging the cRIO - Help!

Quote:
Originally Posted by kelsey.m View Post
We're currently attempting to find the original default code to download, just in case we changed something by accident.
If you reimaged the cRIO, any user code was erased from it in the process. You must load your code onto the robot again before it will do anything.
Reply With Quote
  #14   Spotlight this post!  
Unread 25-11-2013, 11:44
kelsey.m kelsey.m is offline
FRC 4928
FRC #3562 (Arabian Knights)
Team Role: Coach
 
Join Date: Sep 2013
Rookie Year: 2007
Location: Buhl, Idaho
Posts: 26
kelsey.m is an unknown quantity at this point
Update...

We have code on the robot (downloaded default to cRIO via project explorer and right clicking run on robot main), and the driver station shows that it has code.

We have observed the joystick names going blue when we click buttons but not moving the joystick (changing the axis position).

We have observed the axis values changing as we move the joysticks in the test phase.

We still have not gotten motors to respond to joystick movement....

thanks for any advice!
__________________
6358 Buhl High School
3562 4H LiveWire Robotics
4928 Arabian Knights
3456 LiveWire
Reply With Quote
  #15   Spotlight this post!  
Unread 25-11-2013, 12:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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: Reimaging the cRIO - Help!

..and you Enabled the Driver Station?

Sounds like the cRIO and code are doing fine.

How about the electrical side of things?
Lets discuss the wiring.
cRIO modules seem to be in the correct places.
  • Do you have power wired separately to the Digital Sidecar from the Power Distribution Panel (PDP)?
  • Are all three power LEDs on the Digital Sidecar bright green?
  • Do you have PWM outputs 1 & 2 wired to speed controllers?
  • What are the status lights on the speed controllers doing?
  • Are the speed controllers separately wired for 12v from the PDP?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 20:51.

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