|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
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 |
|
#2
|
|||||
|
|||||
|
Re: Need help converting 2009 code to 2010
I only remember DashboardEnable.ctl going missing from 2009, but it's been awhile.
|
|
#3
|
||||
|
||||
|
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?
|
|
#4
|
|||||
|
|||||
|
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... Last edited by Mark McLeod : 05-11-2010 at 19:07. |
|
#5
|
||||||
|
||||||
|
Re: Need help converting 2009 code to 2010
Here's NI's response: http://decibel.ni.com/content/message/11956#11956
|
|
#6
|
||||
|
||||
|
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? |
|
#7
|
|||||
|
|||||
|
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? |
|
#8
|
||||
|
||||
|
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?
|
|
#9
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |