Go to Post At a much more pragmatic level, organization is what seperates a team full people with really cool unrealized dreams and a team that is trying to figure out it's alliance picks. - phrontist [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 05-08-2010, 15:24
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
DS doesn't recognize robot code in startup application

I have a robot project that I've modified.
When I open up Robot Main and click the run arrow, it deploys, and the driver station recognizes the robot code. I can enable it. It works. (Well, autonomous seems to work better than teleop, but I think that's just issues with the throughput of the CAN bus.)
I build and deploy it as a startup application, and say "yes" to the cRIO reboot. The DS connects, but it won't recognize the robot code even after several minutes.

I make a new 2010 game competition project. The DS doesn't recognize the code in the "open and run" or the startup application.


I'm pretty sure I need to reinstall some things, but I'm not sure to what extent. Is it just the FRC libraries?
(I'm guessing it's not the DS, considering it hasn't had any changes since the last DS update, and it works identically to the one on my own computer. However, after an accident with Linux and my partition table, I've had to reinstall Windows and LabVIEW and all on my Macbook. No more triple-booting for a while.)
__________________
-- Marshal Horn
Reply With Quote
  #2   Spotlight this post!  
Unread 05-08-2010, 16:22
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: DS doesn't recognize robot code in startup application

Are you using
Deploy
or
Run as Startup
?

Is your reinstalled LabVIEW at the FRC Software Update 2.1 level?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-08-2010 at 16:28.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-08-2010, 19:28
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: DS doesn't recognize robot code in startup application

Run as startup.
I have version 20 of the LabVIEW update, which is the same as on my cRIO.
__________________
-- Marshal Horn
Reply With Quote
  #4   Spotlight this post!  
Unread 06-08-2010, 11:26
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: DS doesn't recognize robot code in startup application

I don't know what's going on based on the information you've provided, but a good first step is to uninstall the FRC update and then reinstall it.

Let us know how it behaves after that.

-Joe
Reply With Quote
  #5   Spotlight this post!  
Unread 06-08-2010, 12:33
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: DS doesn't recognize robot code in startup application

I reinstalled the FRC Core software, and now the default project works.
My modified project still doesn't work when deployed as startup.
(I'm using the term "works" here to mean that the DS recognizes the code on the robot, as opposed to the non-working condition where it did not.)

Just out of curiosity, I created a VI and only put the StartCommunication.vi in it, created a real-time deployment, built it, and deployed it as startup. (This was done in my modified project.)
Just like with Robot Main, the DS connected, but wouldn't recognize code.

Now, I did the same thing with the default project, and the driver station connected and recognized code.
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 06-08-2010, 13: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: DS doesn't recognize robot code in startup application

Did you specify your Startup VIs in Properties?

You might want to add an infinite loop to your test vi project so it doesn't StartCommunication, immediately consider itself done, and exit the second it starts...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-08-2010 at 13:46.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-08-2010, 13:48
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: DS doesn't recognize robot code in startup application

StartCommunication is itself a loop, and uses a notifier to tell it when to end. (Stop Communication just sends that notifier)
And yes, I did specify it as a startup VI.
It's a little disorienting to be answering these basic questions instead of asking them
__________________
-- Marshal Horn

Last edited by kamocat : 06-08-2010 at 13:51.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-08-2010, 13:57
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: DS doesn't recognize robot code in startup application

Quote:
Originally Posted by kamocat View Post
I reinstalled the FRC Core software, and now the default project works.
My modified project still doesn't work when deployed as startup.
(I'm using the term "works" here to mean that the DS recognizes the code on the robot, as opposed to the non-working condition where it did not.)
Is your modified project based on the new install? I.e. did you create the project that you modified after fixing the installation?

The way that the DS believes the robot code is running is by detecting that the robot code has told FRC_NetworkCommunication.out what the battery voltage is recently. StartCommunication.vi should be looping on (among other things) reading the battery voltage and sending it off. Can you check that this is happening?

-Joe
Reply With Quote
  #9   Spotlight this post!  
Unread 06-08-2010, 15:11
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: DS doesn't recognize robot code in startup application

Quote:
Originally Posted by kamocat View Post
StartCommunication is itself a loop, and uses a notifier to tell it when to end. (Stop Communication just sends that notifier)
And yes, I did specify it as a startup VI.
It's a little disorienting to be answering these basic questions instead of asking them
That was silly of me ...
Can't think of a reason that isn't basic, why such a simple vi built from scratch from a fresh installation won't work.
You'll just have to buy a new computer.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-08-2010 at 15:26.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-08-2010, 15:57
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: DS doesn't recognize robot code in startup application

My project was modified before the complete reinstallation, after the complete reinstallation, and recompiled (I think) after the reinstallation of the FRC Core.

Just now I created a fresh project and recreated the code within this new project (I didn't recreate the subVIs), and it works.
I suppose I won't get anywhere wondering what the difference was.

More notes:
I have to reboot the controller after each deploy of the startup application. The dialog that comes up doesn't seem to actually reboot the controller.
I vaguely remember there being an option in MAX as to whether a reboot request over software does a full reboot or not. Could this help?
__________________
-- Marshal Horn

Last edited by kamocat : 06-08-2010 at 16:11.
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
Camera code does not recognize target Lucie365 C/C++ 15 10-03-2010 11:58
Code dowloading doesn't work brianelite C/C++ 1 10-02-2010 22:57
cRIO Startup code corrupts on boot, reformatting doesn't help. WarrenPW Programming 4 09-02-2010 19:39
changing code after it's set to run at startup smcmahon NI LabVIEW 4 11-02-2009 19:36
breaker tripping on robot startup Bleric Electrical 2 12-02-2005 10:25


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

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