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.

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.

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.

I’m always getting the same error when I deploy to cRIO using the “set/run as startup” option:

Deploying RT CompactRIO Target (successfully deployed target settings)
Deploying MotorControl.lvlib
Deploying Watchdog.lvlib
Deploying Camera.lvlib
Deploying AnalogModule.lvlib
Deploying NI_FPGA_Interface.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA SPI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Interrupt.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Global.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Encoder.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA CounterEncoderSourceConvertion.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Counter.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AnalogTrigger.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib
Deploying RobotDrive.lvlib
Deploying Joystick.lvlib
Deploying AnalogChannel.lvlib
Deploying DigitalModule.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Watchdog.lvlib
Deploying Accelerometer.lvlib
Deploying VariantType.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Solenoid.lvlib
Deploying DriverStation.lvlib
Deploying PWM.lvlib
Deploying FRC Basic Robot Deployment (failed to deploy)

I’m using some VIs from the camera 2 color tracking example, can this be the problem?
When I deployed an unaltered basic robot project (just an arcade drive 2 motors), it worked normally.

Did you “build” the project first?

(Without having a development system handy to test some things out, I’m just guessing at possible issues.)

yes, I built it first.
Then i tried the procedure described above by Kevin and I got a similar log:

Deploying RT CompactRIO Target (successfully deployed target settings)
Deploying Dashboard Datatype.ctl (6,67 K)
Deploying Deadbandv1.vi (5,27 K)
Deploying Center of Rectv1.vi (6,87 K)
Deploying Servo Tracking State Machinev1.vi (24,79 K)
Deploying IMAQ Extract (15,50 K)
Deploying IMAQ ImageToImage 2 (16,35 K)
Deploying Green Rectsv1.vi (9,50 K)
Deploying Basic Robot Global.vi (3,96 K)
Deploying IMAQ Create (13,08 K)
Deploying IMAQ Cast Image (15,58 K)
Deploying IMAQ Or (15,54 K)
Deploying MiniMergeError.vi (6,95 K)
Deploying Merge Rects Verticallyv1.vi (4,84 K)
Deploying Compare Sizesv1.vi (5,23 K)
Deploying BiColor Maskv1.vi (11,00 K)
Deploying Autonomous Independent.vi (5,38 K)
Deploying Split FF Infov1.vi (9,69 K)
Deploying PID Control Input Filter (DBL).vi (10,16 K)
Deploying Trim Whitespace.vi (3,96 K)
Deploying Error Cluster From Error Code.vi (27,40 K)
Deploying IMAQ ColorThreshold (17,26 K)
Deploying Clear Errors.vi (2,89 K)
Deploying CreateImagesv1.vi (19,09 K)
Deploying Merge Errors.vi (6,94 K)
Deploying TCP Listen Internal List.vi (12,27 K)
Deploying Internecine Avoider.vi (12,78 K)
Deploying TCP Listen.vi (13,39 K)
Deploying IMAQ Particle Analysis (22,27 K)
Deploying SizeOrderedMorphologyv1.vi (11,25 K)
Deploying Test Second Colorv1.vi (6,74 K)
Deploying FindTwoColorv1.vi (35,03 K)
Deploying RobotDrive.lvlib
Deploying RobotDrive.lvlib:GetPWMReference.vi (6,22 K)
Deploying NI_FPGA_Interface.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA SPI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Interrupt.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Global.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Encoder.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA DMA.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA CounterEncoderSourceConvertion.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Counter.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AnalogTrigger.lvlib
Deploying NI_FPGA_Interface.lvlib:DigitalModuleToRIOSlot.vi (3,69 K)
Deploying NI_FPGA_Interface.lvlib:DigitalModuleToModuleTypeWithNumber.vi (3,61 K)
Deploying NI_FPGA_Interface.lvlib:AnalogModuleToModuleTypeWithNumber.vi (3,60 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib
Deploying Servo.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:FPGA Ref Global.vi (2,38 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Asynch VI Registration.vi (6,88 K)
Deploying VariantType.lvlib
Deploying VariantType.lvlib:GetNumericInfo.vi (15,24 K)
Deploying NI_FPGA_Interface.lvlib:FPGAResourceConstant.vi (26,46 K)
Deploying DriverStation.lvlib
Deploying DriverStation.lvlib:StatusErrorCache.vi (6,62 K)
Deploying DriverStation.lvlib:Start VI Asynchronous.vi (9,65 K)
Deploying DriverStation.lvlib:LaptopDataCache.vi (6,30 K)
Deploying DriverStation.lvlib:UnloadC++StartupProgram.vi (4,62 K)
Deploying DriverStation.lvlib:StatusDataCache.vi (7,04 K)
Deploying NI_FPGA_Interface.lvlib:ErrorDisplay.vi (20,71 K)
Deploying NI_FPGA_Interface.lvlib:ERRInvalidAnalogModuleError.vi (3,88 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib:ERRInvalidPWMChannel.vi (3,57 K)
Deploying NI_FPGA_Interface.lvlib:ERRInvalidDigitalModuleError.vi (3,88 K)
Deploying NI_FPGA_Interface.lvlib:RIOSlotToDigitalModule.vi (5,30 K)
Deploying NI_FPGA_Interface.lvlib:Valid Digital IO Module.vi (5,30 K)
Deploying DriverStation.lvlib:Stop VI Asynchronous.vi (9,05 K)
Deploying NI_FPGA_Interface.lvlib:DefaultSlotError.vi (3,56 K)
Deploying DriverStation.lvlib:BuildDashboardPacket.vi (17,36 K)
Deploying NI_FPGA_Interface.lvlib:ERRInvalidSolenoidModuleError.vi (3,88 K)
Deploying NI_FPGA_Interface.lvlib:Valid Solenoid Module.vi (5,24 K)
Deploying NI_FPGA_Interface.lvlib:Valid Analog Input Module.vi (5,24 K)
Deploying NI_FPGA_Interface.lvlib:Default Module Cache.vi (10,27 K)
Deploying NI_FPGA_Interface.lvlib:DefaultModuleToRealSlot_Digital.vi (7,51 K)
Deploying DriverStation.lvlib:Stop Communication.vi (4,78 K)
Deploying DriverStation.lvlib:CommDataCache.vi (10,87 K)
Deploying DriverStation.lvlib:Get Competition Mode.vi (28,62 K)
Deploying Basic Get Mode.vi (8,89 K)
Deploying DriverStation.lvlib:AllianceInfoCache.vi (8,06 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib:Open.vi (6,80 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:ERRWrongVersion.vi (7,53 K)
Deploying Watchdog.lvlib
Deploying Watchdog.lvlib:SecToTicks.vi (4,93 K)
Deploying Watchdog.lvlib:WARNWatchdogDisabled.vi (3,54 K)
Deploying AnalogModule.lvlib
Deploying AnalogModule.lvlib:Defaults.vi (3,12 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib:ERRInvalidAnalogChannel.vi (3,59 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib:Open.vi (5,96 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib:ERRInvalidAccumulatorChannel.vi (3,60 K)
Deploying PWM.lvlib
Deploying PWM.lvlib:ERRPwmChannelAllocated.vi (3,55 K)
Deploying PWM.lvlib:ERRSetOnUnallocatedChannel.vi (3,58 K)
Deploying PWM.lvlib:PWMToDigitalModule.vi (5,33 K)
Deploying PWM.lvlib:DefaultPWMConstants.vi (3,14 K)
Deploying PWM.lvlib:ERRAcquireInvalidPWMChannelIdx.vi (3,55 K)
Deploying PWM.lvlib:ChannelCache.vi (18,70 K)
Deploying PWM.lvlib:GetRangeScaleFactors.vi (5,45 K)
Deploying MotorControl.lvlib
Deploying MotorControl.lvlib:DefaultSetSpeed.vi (8,22 K)
Deploying AnalogChannel.lvlib
Deploying AnalogChannel.lvlib:FPGA_Timebase.vi (2,57 K)
Deploying AnalogChannel.lvlib:AnalogChannelToAnalogModule.vi (4,56 K)
Deploying AnalogChannel.lvlib:ERRScanlistInvalid.vi (3,62 K)
Deploying AnalogChannel.lvlib:WARNSampleRateTooFast.vi (3,63 K)
Deploying AnalogChannel.lvlib:ERRAcquireInvalidChannel.vi (3,55 K)
Deploying AnalogChannel.lvlib:ERRChannelAllocated.vi (3,55 K)
Deploying AnalogChannel.lvlib:ChannelCache.vi (18,11 K)
Deploying AnalogChannel.lvlib:Close.vi (5,96 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA Watchdog.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Watchdog.lvlib:Open.vi (5,13 K)
Deploying DigitalModule.lvlib
Deploying Camera.lvlib
Deploying Camera.lvlib:Get Default Frame Rate.vi (2,67 K)
Deploying Camera.lvlib:Get Image Size Values.vi (3,01 K)
Deploying Camera.lvlib:ERRFailedComm.vi (3,60 K)
Deploying Camera.lvlib:Notifier GUID.vi (2,92 K)
Deploying Camera.lvlib:Get Image Notifier Internal.vi (5,73 K)
Deploying Camera.lvlib:Get Camera Dev Ref Notifier.vi (5,74 K)
Deploying Camera.lvlib:Update Refcount.vi (7,39 K)
Deploying Camera.lvlib:Get Acquire Image Notifier Internal.vi (5,74 K)
Deploying Camera.lvlib:ERRAccountProblem.vi (3,67 K)
Deploying Camera.lvlib:Get Acquire Image Notifier.vi (5,46 K)
Deploying Camera.lvlib:Stop.vi (5,84 K)
Deploying Camera.lvlib:Get White Balance Values.vi (3,10 K)
Deploying Camera.lvlib:Build CGI.vi (5,04 K)
Deploying Camera.lvlib:Get Frame Rate Notifier Internal.vi (5,73 K)
Deploying Camera.lvlib:Get Frame Rate Notifier.vi (5,46 K)
Deploying Camera.lvlib:Set Frame Rate.vi (7,55 K)
Deploying Camera.lvlib:Issue HTTP Request with Authentication.vi (13,53 K)
Deploying Camera.lvlib:Issue Get.vi (12,68 K)
Deploying Camera.lvlib:Set Image Appearance Property.vi (6,22 K)
Deploying Camera.lvlib:Set Image Sensor Property.vi (7,55 K)
Deploying Camera.lvlib:Set Numeric Sensor Property.vi (8,13 K)
Deploying Camera.lvlib:Set Enum Sensor Property.vi (8,74 K)
Deploying Camera.lvlib:Set Brightness.vi (5,85 K)
Deploying Camera.lvlib:Set White Balance.vi (6,32 K)
Deploying Camera.lvlib:Read JPG.vi (15,88 K)
Deploying Camera.lvlib:Acquire Image.vi (14,32 K)
Deploying Camera.lvlib:Set Enum Appearance Property.vi (8,74 K)
Deploying Camera.lvlib:Set Image Size.vi (6,30 K)
Deploying Camera.lvlib:Get Image To PC Port.vi (2,23 K)
Deploying Camera.lvlib:Start Asynchronous VI.vi (13,93 K)
Deploying Camera.lvlib:Start.vi (5,84 K)
Deploying Update Camera Status.vi (8,63 K)
Deploying Camera.lvlib:Get Image Notifier.vi (5,46 K)
Deploying Camera.lvlib:Get Exposure Values.vi (3,00 K)
Deploying Camera.lvlib:Set Exposure.vi (6,30 K)
Deploying Camera.lvlib:Wait for Raw Image String.vi (14,87 K)
Deploying Camera.lvlib:Convert Version String to Header String.vi (5,65 K)
Deploying Camera.lvlib:Send Image String To PC 1.0.0.0.vi (6,78 K)
Deploying Camera.lvlib:Send Images To PC.vi (7,77 K)
Deploying Camera.lvlib:Open Internal.vi (10,65 K)
Deploying Camera.lvlib:DecodeJPEGString.vi (6,02 K)
Deploying Camera.lvlib:Get Image.vi (6,88 K)
Deploying Camera.lvlib:Close Internal.vi (10,58 K)
Deploying Camera.lvlib:Cleanup On First Call.vi (5,33 K)
Deploying Camera.lvlib:Camera Registry.vi (19,77 K)
Deploying Camera.lvlib:Close.vi (5,62 K)
Deploying Camera.lvlib:Open.vi (5,26 K)
Deploying Accelerometer.lvlib
Deploying Accelerometer.lvlib:AccelerometerToAnalogChannel.vi (4,73 K)
Deploying Accelerometer.lvlib:Close.vi (5,62 K)
Deploying Joystick.lvlib
Deploying Joystick.lvlib:JoystickCache.vi (8,19 K)
Deploying Joystick.lvlib:Close.vi (2,35 K)
Deploying Joystick.lvlib:Open.vi (3,09 K)
Deploying Joystick.lvlib:ScaleTo100PlusMinRange.vi (3,85 K)
Deploying Joystick.lvlib:Get.vi (12,54 K)
Deploying Joystick.lvlib:GetAxis.vi (7,63 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA Solenoid.lvlib
Deploying FRC Basic Robot Deployment (failed to deploy)
Deploying NI_FPGA_Interface.lvlib:NIFPGA Solenoid.lvlib:Open.vi

Download completed with errors.

We are currently on the third Labview update, right? Everytime there’s an update, I create a new project and then copy and paste my code from the old project to the new, can this be the problem (copying instead of rewriting from scratch)?

Anyone having the same problems? I’m using some VIs from the 2 color camera tracking example, such as FIND and SERVO GIMBAL.

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

I was getting a similar error to Daniel when I lost connection to the cRIO during deployment.

Deploying Sensor Fusion Robot Project.lvproj
Deploying RT CompactRIO Target (successfully deployed target settings)
Deploying Accumulator.lvlib
Deploying MotorControl.lvlib
Deploying Camera.lvlib
Deploying NI_FPGA_Interface.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA SPI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Interrupt.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Global.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Encoder.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA DMA.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Counter.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA CounterEncoderSourceConvertion.lvlib
Deploying PWM.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Watchdog.lvlib
Deploying AnalogTrigger.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib
Deploying DigitalModule.lvlib
Deploying DigitalOutput.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AI.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA Solenoid.lvlib
Deploying AnalogChannel.lvlib
Deploying Joystick.lvlib
Deploying Ultrasonic.lvlib
Deploying VariantType.lvlib
Deploying DigitalInputFilter.lvlib
Deploying DriverStation.lvlib
Deploying NI_FPGA_Interface.lvlib:NIFPGA AnalogTrigger.lvlib
Deploying AnalogModule.lvlib
Deploying DigitalInput.lvlib
Deploying Servo.lvlib
Deploying Gyro.lvlib
Deploying Counter.lvlib
Deploying Watchdog.lvlib
Deploying RobotDrive.lvlib
**Deploying FRC Robot Boot-up Deployment (failed to deploy) **

Download completed with errors.

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.lvproj
Deploying Acquire Image.vi
Deploying Async VI Agent.vi
Deploying Autonomous Independent.vi
Deploying Robot Main.vi
Deploying Send Images To PC.vi
Deploying RT CompactRIO Target (successfully deployed target settings)

Is this a possible cause for you issue?

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:


and here: