|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Proper procedure for deploying Labview code?
Okay so, we're able to deploy code and all to the DS/cRIO from the laptop by like... hitting build and then deploy and when that doesn't work and it just displays 'No Code' on the DS, I hit 'run as startup' or 'set as startup'. It eventually gets on there somehow, but I'm wondering if there is a more proper, less trial and error way to deploy code onto it.
|
|
#2
|
|||||
|
|||||
|
Re: Proper procedure for deploying Labview code?
You've more or less hit on the process already.
1. Expand the cRIO in the project explorer. 2. Under the cRIO, right click on the "Build Specifications" and select "Build All" 3. When it's done, right click on the cRIO and Select "Deploy All" 4. If it asks if you want to set something as the start up application, say yes. |
|
#3
|
||||
|
||||
|
Re: Proper procedure for deploying Labview code?
When you select Run as startup or Set as startup you are telling the cRIO to run your built robot project when the cRIO reboots.
|
|
#4
|
|||||
|
|||||
|
Re: Proper procedure for deploying Labview code?
I'm always getting the same error when I deploy to cRIO using the "set/run as startup" option:
Quote:
When I deployed an unaltered basic robot project (just an arcade drive 2 motors), it worked normally. |
|
#5
|
|||||
|
|||||
|
Re: Proper procedure for deploying Labview code?
Did you "build" the project first?
(Without having a development system handy to test some things out, I'm just guessing at possible issues.) |
|
#6
|
|||||
|
|||||
|
Re: Proper procedure for deploying Labview code?
Quote:
Then i tried the procedure described above by Kevin and I got a similar log: Quote:
Anyone having the same problems? I'm using some VIs from the 2 color camera tracking example, such as FIND and SERVO GIMBAL. Last edited by Daniel_H : 29-01-2009 at 15:52. |
|
#7
|
|||
|
|||
|
Re: Proper procedure for deploying Labview code?
I'm also without cRIO nearby. Can someone else post the results of their deployment? That last part where it is deploying the file that defines the deployment doesn't sound necessary, and may be where things go wrong. Since it isn't a VI, the RAM debugging doesn't care about it, but the real build/deploy feels the need to take the XML file that describes the build.
If this is correct, open the deployment in the project and look to see if it references any files other than your top level VI. If need be, open and compare to the original deployment file in a new project. The project has this habit of making changes to the project and build scripts as you drag files to the project -- mostly nice, but sometimes surprising results. Since you've been dragging files to the project You may also want to verify the files come from the disk files you think they do. This is where the second tab on the project is useful. That or the View or Tools menu item for showing the file path. Greg McKaskle |
|
#8
|
||||
|
||||
|
Re: Proper procedure for deploying Labview code?
I was getting a similar error to Daniel when I lost connection to the cRIO during deployment.
Deploying Sensor Fusion Robot Project.lvproj I suspected this was because the power on my battery was low. When I connected a power supply to my cRIO I was able to deploy successfully. Deploying Sensor Fusion Robot Project.lvprojIs this a possible cause for you issue? |
|
#9
|
|||||
|
|||||
|
Re: Proper procedure for deploying Labview code?
I found out the problem: filters.
When I removed them, it deployed, and more people noticed the same problem. I am waiting for an answer here: http://decibel.ni.com/content/thread/2087 and here: http://decibel.ni.com/content/message/3773 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help me in LabView code | mahmosh | National Instruments LabVIEW and Data Acquisition | 3 | 11-01-2009 00:18 |
| Problem deploying/running default code | blaxbb | FRC Control System | 0 | 10-01-2009 11:59 |
| pic: Team 58 deploying ramps - www.riotcrew.org for more | bobl | Extra Discussion | 7 | 27-02-2007 20:09 |
| Can anyone tell me the proper code for line sensors | thelastride | Programming | 1 | 14-02-2004 13:47 |
| Custom Dashboard code for LabVIEW ready for download. | archiver | 2001 | 3 | 24-06-2002 00:49 |