|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: building and deploying code
ill give it a try and see what happens. thanks for the help
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||||
|
|||||
|
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. |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
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
|
|
#8
|
|||||
|
|||||
|
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. |
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||||
|
|||||
|
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. |
|
#11
|
|||||
|
|||||
|
Re: building and deploying code
Quote:
|
|
#12
|
|||||
|
|||||
|
Re: building and deploying code
Tell us the steps you've taken.
For instance, did you:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|