Go to Post Count on the English teacher to be the one to actually understand the wording of the rules! - dlavery [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 04-11-2010, 19:43
dani692's Avatar
dani692 dani692 is offline
Registered User
FRC #0692 (Fembots)
Team Role: Programmer
 
Join Date: Nov 2010
Rookie Year: 2009
Location: California
Posts: 4
dani692 is an unknown quantity at this point
Need help converting 2009 code to 2010

Hey,

My team keeps old robots around for presentations and such, and since we have some downtime now we need to make sure we can download code to our 2009 robot in case something happens. Problem is, that labview expired in January and there are some big changes in 2010. Is there a way to get around the library issues or do we have to redo the code? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 04-11-2010, 21:43
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: Need help converting 2009 code to 2010

Library issues? Could you be more specific?
The code should reference the new libraries automatically.
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 05-11-2010, 15:15
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Need help converting 2009 code to 2010

To be honest with you it might be easier/faster to just rewrite the entire code. Especialy if you have a new programmer that needs to learn LabView. If you REALLY want to use the old code I don't know what to tell you.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-11-2010, 15:43
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,112
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: Need help converting 2009 code to 2010

You're mostly concerned about being able to restore the existing program to the cRIO in case of emergency, right? If you won't be trying to modify the code, there's a reasonably simple solution. Just use ftp to copy the contents of the cRIO's filesystem, and stash it somewhere safe so you can put it back if necessary.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-11-2010, 15:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need help converting 2009 code to 2010

While there were some changes for the libraries from 2009 to 2010, They weren't huge. I recall only having to make a few minor changes to our code. In any case, it should be much faster to change the code then to re-implement. However, reimplementing the code is often a valuable experience, because you can always use your experience to make your code better and simpler.

Details about what exactly you are seeing would be helpful
Reply With Quote
  #6   Spotlight this post!  
Unread 05-11-2010, 16:14
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,795
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: Need help converting 2009 code to 2010

I only remember DashboardEnable.ctl going missing from 2009, but it's been awhile.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 05-11-2010, 18:43
dani692's Avatar
dani692 dani692 is offline
Registered User
FRC #0692 (Fembots)
Team Role: Programmer
 
Join Date: Nov 2010
Rookie Year: 2009
Location: California
Posts: 4
dani692 is an unknown quantity at this point
Re: Need help converting 2009 code to 2010

Yeah, the only one that isn't in the 2010 library is "driverstation.lvlib:dashboardenable.ctl". Is there any way to download that? Or something along those lines?
Reply With Quote
  #8   Spotlight this post!  
Unread 05-11-2010, 18:48
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,795
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: Need help converting 2009 code to 2010

You can just create a duplicate.
The structure is referenced in the BuildDashboard... vi

or replace the dashboard code with the 2010 version

or eliminate it altogether...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-11-2010 at 19:07.
Reply With Quote
  #9   Spotlight this post!  
Unread 05-11-2010, 19:33
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Need help converting 2009 code to 2010

Here's NI's response: http://decibel.ni.com/content/message/11956#11956
Reply With Quote
  #10   Spotlight this post!  
Unread 05-11-2010, 19:42
dani692's Avatar
dani692 dani692 is offline
Registered User
FRC #0692 (Fembots)
Team Role: Programmer
 
Join Date: Nov 2010
Rookie Year: 2009
Location: California
Posts: 4
dani692 is an unknown quantity at this point
Re: Need help converting 2009 code to 2010

OK, we copied the vi from the 2010 code and pasted it into the old code, and were able to build it successfully.

We then turned on our robot with the new code and the Driver Station said "System: WatchDog" instead of "System: Enabled." How can we fix this?
Reply With Quote
  #11   Spotlight this post!  
Unread 05-11-2010, 21:39
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,795
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: Need help converting 2009 code to 2010

It sounds like the Watchdog isn't being fed in Teleop.vi
Are you familiar with how the Watchdog code works?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #12   Spotlight this post!  
Unread 11-11-2010, 17:45
dani692's Avatar
dani692 dani692 is offline
Registered User
FRC #0692 (Fembots)
Team Role: Programmer
 
Join Date: Nov 2010
Rookie Year: 2009
Location: California
Posts: 4
dani692 is an unknown quantity at this point
Re: Need help converting 2009 code to 2010

This is what the watchdog looks like in teleop. The case loop with motor controls and what not is to the right. It's opened in begin.vi and killed in finish.vi. We looked at the 2010 code and it's the same. Does using the 2009 driver station instead of the classmate make a difference?
Attached Thumbnails
Click image for larger version

Name:	Watchdog.jpg
Views:	21
Size:	14.2 KB
ID:	9419  
Reply With Quote
  #13   Spotlight this post!  
Unread 11-11-2010, 19: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,751
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: Need help converting 2009 code to 2010

No. The type of DS will not matter. The code to the left that may be taking a long time to execute is the first thing I'd look at.

Greg McKaskle
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
Undeploying code. NEED HELP dnrobotics11 C/C++ 3 01-02-2009 18:33
Need help with code. hawk_11 Programming 6 06-02-2005 13:56
need help w/ joystick code willie837 Programming 6 02-02-2005 23:17
code violation...need help Vince lau Programming 4 20-02-2004 16:31
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 10:16.

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