Go to Post Waiting for the kick off is like studing the molecular structure of grass while being hit on the head by a frying pan - infinitydex [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 01-02-2013, 18:05
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
building and deploying code

After working through many frustrating errors, our robot finally has code. said code at first only moved one wheel, and now does nothing, with no programing or wiring errors as far as anyone can tell. we then discovered that after building the code, labview directs us to a new folder, but this folder does not contain anything deploy-able to the robot. please help a clueless first year programer out.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2013, 18:36
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: building and deploying code

The directory should contain a folder called "c" and a .bin called depinstr.bin, neither of which you can do very much with. Go into your project explorer > RT CompactRIO Target (10.te.am.2)>Bulid Specifications>FRC Robot Boot-up Deployment. Right Click to build, and then "Run as Start up". If you have done all of these things, check your driver station error log.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2013, 18:43
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

ill give it a try and see what happens. thanks for the help
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2013, 19:08
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

those are pretty much the exact steps i took, except bi modified the code to a tank drive setup with two joysticks and to run on victors instead of jaguar. in the newest attempt, i am also getting conflict message saying the code has not been built, when i just finished doing that.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2013, 20:55
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: building and deploying code

Try a brand new default project first without trying to modify it in any way.
That'll tell you if your basic setup is alright.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2013, 07:12
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: building and deploying code

You may have a broken autonomous. Because the linkage between the RobotMain and Autonomous is a runtime based call, the breakage isn't reported until you build the app. The same could be true of Test.

Open the Autonomous and Test VI and inspect the run arrows. If broken, click it and see if you can fix it.

Then Build and Run as Startup.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2013, 17:24
DrewG's Avatar
DrewG DrewG is offline
Registered User
FRC #0306 (CRT)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Corry, Pa
Posts: 18
DrewG is on a distinguished road
Re: building and deploying code

no part of the project has a broken run arrow (though their could be other problems) and we can now consistently deploy code, but the controls still will not work, even though the drivers station detects them
Reply With Quote
  #8   Spotlight this post!  
Unread 10-02-2013, 00:55
Kyle A's Avatar
Kyle A Kyle A is offline
If it ain't broke don't fix it!
AKA: K Adams
FRC #0306 (CRT(Corry Robotics Team))
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry PA
Posts: 341
Kyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud of
Send a message via AIM to Kyle A Send a message via Yahoo to Kyle A
Re: building and deploying code

After a long day of playing around with labview and some help for some alumni, they finally got the code to deploy, and the robot to move. From there Frew added in all the other functions of the robot and problems happened again, the code deploys seems to turn on for a second then nothing, A loop error comes up on the drivers station. They played around looking at other code online but can't seem to get it to work, I really don't know much on programming, But said I would post for Drew to help out. Everything worked until we tried adding the relays.
Here is the code.
Attached Files
File Type: vi Begin.vi (40.0 KB, 11 views)
File Type: vi Teleop.vi (39.6 KB, 8 views)
File Type: vi Finish.vi (25.4 KB, 7 views)
__________________
Corry Robotics Team 306 1999-2015

Reply With Quote
  #9   Spotlight this post!  
Unread 10-02-2013, 11: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,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: building and deploying code

I don't completely follow what errors are occurring, but are you certain that you aren't suffering from the "Waiting for ..." issue that was documented in the known issues list? The symptom is that once you have deployed code to the cRIO and it is running as a startup application, it doesn't abort properly so that new code can begin running.

A LabVIEW update 5.1 was released primarily to fix this issue. The workaround documented on the known issues list involved aborting the dashboard before starting to download new code. This allowed for the deployed application to abort cleanly.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 10-02-2013, 17:48
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: building and deploying code

The words "loop error" seem to be referring to a message telling you the loop containing the motor drive commands is running too slow. Is that correct?

The code looks okay. I don't see any problems in Teleop that would make it run slowly. Is there anything in Periodic Tasks? Perhaps something in there is using up all the cRIO's CPU cycles.
Reply With Quote
  #11   Spotlight this post!  
Unread 11-02-2013, 15:38
Kyle A's Avatar
Kyle A Kyle A is offline
If it ain't broke don't fix it!
AKA: K Adams
FRC #0306 (CRT(Corry Robotics Team))
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry PA
Posts: 341
Kyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud ofKyle A has much to be proud of
Send a message via AIM to Kyle A Send a message via Yahoo to Kyle A
Re: building and deploying code

Quote:
Originally Posted by Alan Anderson View Post
The words "loop error" seem to be referring to a message telling you the loop containing the motor drive commands is running too slow. Is that correct?

The code looks okay. I don't see any problems in Teleop that would make it run slowly. Is there anything in Periodic Tasks? Perhaps something in there is using up all the cRIO's CPU cycles.
Yes that is what I meant. I dont believe we put anything into that, here is the file, I also have gone through and reinstalled all the required updates. Here is the link, thanks for the help.
Attached Files
File Type: vi Periodic Tasks.vi (21.1 KB, 5 views)
__________________
Corry Robotics Team 306 1999-2015

Reply With Quote
  #12   Spotlight this post!  
Unread 01-02-2013, 18:40
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: building and deploying code

Tell us the steps you've taken.
For instance, did you:
  1. Create a default robot project
  2. Put your robot up on blocks and power it up
  3. Downloaded the default program to your robot:
    • Right-click on Build Specifications -> FRC Robot Boot-up Deployment and choose Build
    • Right-click again on Build Specifications -> FRC Robot Boot-up Deployment and choose Run as startup
  4. Plug one joystick into your PC
  5. Startup the Driver Station application and see if the Communication and Robot Code lights turn green
  6. Enable your robot
  7. Test the joystick
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 12:09.

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