Go to Post Finding those students and giving them a lift up out of the sea of apathy that is constantly trying to drown them is one of the reasons I am in my profession. - Ben Mitchell [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 12-01-2010, 22:26
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Problem with Default Program/Deploy

This was posted over in electrical, but I am having the same problem and hoping anyone in here might have some insight

"I have been trying for two days to get the default program to work on our test bot. I have been able to update the classmate both driverstation and labview. I have been able to format the crio both wirelessly and through crossover cable connection. Labview acts as if the program is deploying yet nothing happend on the bot all lights 2 jaguars and green on sidecar, remain flashing. The drivers tation program says no code in the status screen. I have tried running the program in labview instead of deploy both with the run on right click and the arrow. Nothing seems to be effective. Any suggestions would be very welcome."
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2010, 22:43
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Re: Problem with Default Program/Deploy

I'm wondering if you might have to remove all the old data from the C-RIO. I'm not really sure if that helps or not. I want to say that the build specifications have something to do with it. Make sure that you can deploy your old code too. You might have a bigger problem.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2010, 22:54
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: Problem with Default Program/Deploy

we're having the same exact problem. We imaged the cRIO and things seemed to be going well. The only things that seems to be wonky is that we can't deploy the camera VI's because we don't have a valid activation code and are running on the 30 day evaluation. Would that cause the problems we are experiencing?
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2010, 23:47
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: Problem with Default Program/Deploy

What happens when the run arrow is pressed? Without that info, it is hard to diagnose what may be wrong?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2010, 06:13
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Problem with Default Program/Deploy

Quote:
Originally Posted by Greg McKaskle View Post
What happens when the run arrow is pressed? Without that info, it is hard to diagnose what may be wrong?

Greg McKaskle
The program starts and the strip charts on the main.vi form start scrolling. The only thing I have hooked up are the two joysticks. The joystick stripchart does not respond. I know the joysticks are active because I see their status in the dashboard app. As stated above though, dashboard also shows no program is present.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2010, 07:07
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: Problem with Default Program/Deploy

It sounds like your program is running, just not as desired.

My recommendation would be to open up an example program and run it. If it runs, there is no problem with the cRIO, image, or network. Some of the examples use joysticks, and they can also be used to test those connections and configurations.

As a bonus, if they work and your program doesn't, it gives you something to experiment with to discover the cause.

If you want to post code or a picture of your diagram, we may be able to spot the issue as well.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 13-01-2010, 10:04
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Problem with Default Program/Deploy

If the Driver Station saya "No Code" this means several things:

1) You have good communications with the robot (otherwise it would say no-comms)

2) You aren't running a robot program.

I haven't tried the release code yet, but It was my understanding that the cRIO image would NOT have a default program in it this year... that you'd need to "deploy" your own program....

So, if this was the case, doing a reset on the robot would cause it to behave as you have indicated. (no code)

Easy to test. First try running the program using the run arrow. This will deploy and run a "temporary" program.

If this works, then you need to do a "Build" and set it as the "run on startup" program. Then you should be able to do a reset and still have a running program.

Note: the flashing light status has changed this year. Blink off is good in teleop.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2010, 13:13
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: Problem with Default Program/Deploy

Greg,

We have both 'ran' and 'deployed' code, with similar results. The results are:

cRio is running the code. The camera works, along with the default 'find the circle' code. Gyro output is displayed. PWM values change on the dashboard when the joystick is used. However, there is no output to the Jags. Jags flash like they are disabled. EStop was used and all diagnostic lights were in the green.

To test this further, we used the Arcade example and ran it without changes. Same result, except of course, you can't see anything on the dashboard. DBO is attached to slot 4.
__________________
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
  #9   Spotlight this post!  
Unread 13-01-2010, 18:16
CyanFlux CyanFlux is offline
Registered User
FRC #2849
 
Join Date: Jan 2010
Location: Columbia, MD
Posts: 2
CyanFlux is an unknown quantity at this point
Re: Problem with Default Program/Deploy

We're also having problems with deployment here. When we deploy the code (java) it looks like the cRio receives the program and is ready to run. When we reboot it, however, the dashboard says No Code. Comms are fine. Do we need to select an option somewhere to run the code as startup? I can't find an option for that anywhere in Netbeans.
Reply With Quote
  #10   Spotlight this post!  
Unread 15-01-2010, 16:52
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: Problem with Default Program/Deploy

From those symptoms, the things I'd check are to see if the cRIO version is v19. Using 2010 WPILib with a 2009 cRIO image will look sorta like this.

Second thing to check is if the watchdog has triggered. The diagnostics page has a place for errors to display, and when a watchdog triggers, it will printout and display the number of triggers that have taken place. I honestly don't think it is the watchdog because the example does the same thing, but if the first test doesn't explain it, I'd double check the watchdog anyway.

Another test I just thought of is to add a relay test. The relay module has LEDs which indicate whether they are working or not, and they are guarded by the same watchdog as the PWM. If the relay in slot 8 doesn't light up, I'd investigate the watchdog more fully. If the LED and therefore the relay I/O works, I'd actually look at the power and wiring to the Jaguar.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 16-01-2010, 10:25
CyanFlux CyanFlux is offline
Registered User
FRC #2849
 
Join Date: Jan 2010
Location: Columbia, MD
Posts: 2
CyanFlux is an unknown quantity at this point
Re: Problem with Default Program/Deploy

On the cRio imaging tool the only image option is for 2010 v5. The driver station says that the cRio image is 'LabVIEW - 2010_v5' also, though we selected Java in the imaging tool. I'll try looking at the watchdog now.
Reply With Quote
  #12   Spotlight this post!  
Unread 16-01-2010, 11:47
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: Problem with Default Program/Deploy

If the cRIO image is not v19, then that is definitely a part of the problem. The v19 definitely gets installed with the LabVIEW update. I'm not sure if it gets installed with Java or C++ updates. No need to spend time on watchdog or anything else SW related until you get v19 on the cRIO.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 16-01-2010, 17:39
Todd's Avatar
Todd Todd is offline
Software Engineer
FRC #1071 (Team Max)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Connecticut, Wolcott
Posts: 51
Todd is just really niceTodd is just really niceTodd is just really niceTodd is just really niceTodd is just really nice
Re: Problem with Default Program/Deploy

For reference the Labview updates can be found here:

http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534

Since the cRio imaging tool is part of the Labview suite you'll have to install the update for several reasons including getting the v19 image.

Don't forget to update your driver station while you're at it:

http://joule.ni.com/nidu/cds/view/p/lang/en/id/1535

I know there has been some difficulty with the driver station update installer not correctly updating all it's components.

http://www.chiefdelphi.com/forums/sh...t=79935&page=3

The solution presented on the thread above and the solution that worked for us was to run the update installer and ask it to remove all the components and then run it again to reinstall them. (One of the big symptoms of this problem is the camera module on the dashboard not functioning even when the camera has been initialized and is communicating with the cRio fine)
Reply With Quote
  #14   Spotlight this post!  
Unread 21-01-2010, 18:25
andrew_3205 andrew_3205 is offline
Registered User
FRC #3205
 
Join Date: Jan 2010
Location: Concord, MA
Posts: 2
andrew_3205 is an unknown quantity at this point
Re: Problem with Default Program/Deploy

Similar problems here.

We have downloaded the patches for the cRio and the Driver station.

Joystick program can be downloaded, and run. However, the joystick does not respond on the Labview screen.

However, when we switch user to the Driver, the joystick responds when you move it/press a button.

Any thoughts?
Reply With Quote
  #15   Spotlight this post!  
Unread 21-01-2010, 19:42
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 170
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Problem with Default Program/Deploy

We had a similar problem and it ended up that our module to the digital sidecar was in the wrong slot. It was in slot 6, when it should have been in slot 4. Hope that helps....
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
Help to Deploy a Program in Labview. Delian NI LabVIEW 7 10-12-2008 21:13
PWM Problem with Default Code kbregler Programming 16 03-02-2007 15:14
Problem with program uploading 1573 Programming 49 28-01-2007 13:51
problem with the default code MarkVH Programming 7 28-01-2005 00:04
Problem with FRC Default code AsimC Programming 2 11-01-2004 19:22


All times are GMT -5. The time now is 22:44.

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