Go to Post "The audience will be making three sounds this year: oos, aahs, and oh my God, watch out!" - nate234 [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 03-02-2014, 22:13
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Examples corrupting robot project

We just detected a case where it appears that loading an example corrupted a robot project. WPI_DriverStationStartStop.vi had a bunch of code related to one of the examples in it, in the "execute" case, that was not the simple stuff that belonged there. I can imagine how in the examples messing with some of these VI's to run the examples is a really good idea. I am looking for the stupid user trick we pulled to cause it to happen. I'm kinda looking for you, NI Greg (please

Learning take-away: the deployment whined about a DIO collison; we went into begin and selected the DIO Open Vi, and fired off "Find All Instances' off the right mouse button. Bingo, all of out expected instances, plus two from the corrupted code. Worked again a few minutes later to find a collision on the analog inputs between the battery Vin on AI8 and the ultrasonic we plopped in on 8 because 2 had gone bad on our adapter (the voltage regulator smoked, too).

This is getting to be too much hardware for a software jock

The good news is we can get big scores two weeks before B&T for the first time in our history!

Tim
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2014, 07:46
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: Examples corrupting robot project

I'm not really sure I know what happened. I don't really follow the description you gave.

Was this extra code perhaps related to simulation?
Some of the WPILib VIs needed to be modified for simulation. Some of these were done with a conditional compile, but most were done as a separate library for the desktop target. If you open your VI on a desktop, it will load the desktop version. On an RT target, it will load the RT version of the VI.

Another thing that could have happened is that you opened a robot VI and it was added to your example project, or you opened an example VI and it was added to your robot project. The suggested process is to open the example's project and not just its source.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2014, 16:53
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: Examples corrupting robot project

we had an issue with one of the example vi's addressing DIO 2, which was not present on our robot. just make sure you comb through all examples and that they match your actual hardware configuration.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2014, 21:09
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Examples corrupting robot project

Thank you, Greg, thank you David.

Review of a backup showed that it happened during a relatively unsupervised moment, so we'll never really know. I'd bet on the last of Greg's explanations.

Admittedly, it was neat to see how the simulator gets set up

Tim
__________________
Software Mentor
3853 Pridetronics[

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 09: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