FIRST Robotics Competition Discussions

Showing results for 
Search instead for 
Did you mean: 
Reply

Constant failure to deploy

Constant failure to deploy

Hello,

After several attempts, I couln't deploy successfully my ptoject.

If I create a new project and deploy it without modification (2 motors arcade drive), it goes, but my whole code, which works without problems when I hit the "play" button at the front panel, always fails to deploy.

I am using some VIs from the 2 color camera tracking example, such as FIND and SERVO GIMBLE, can this be the problem? What should I do?

I have the third update installed. Everytime there's an update I create a new project and copy and paste my project into it. Can this be the problem (copy and paste instead of rewriting from scratch)?

Here's the deploy 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.lvlibSmiley Very HappyigitalModuleToRIOSlot.vi  (3,69 K)
Deploying NI_FPGA_Interface.lvlibSmiley Very HappyigitalModuleToModuleTypeWithNumber.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.lvlibSmiley FrustratedtatusErrorCache.vi  (6,62 K)
Deploying DriverStation.lvlibSmiley Frustratedtart 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.lvlibSmiley FrustratedtatusDataCache.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.lvlibSmiley Frustratedtop VI Asynchronous.vi  (9,05 K)
Deploying NI_FPGA_Interface.lvlibSmiley Very HappyefaultSlotError.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.lvlibSmiley Very Happyefault Module Cache.vi  (10,27 K)
Deploying NI_FPGA_Interface.lvlibSmiley Very HappyefaultModuleToRealSlot_Digital.vi  (7,51 K)
Deploying DriverStation.lvlibSmiley Frustratedtop 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.lvlibSmiley Surprisedpen.vi  (6,80 K)
Deploying NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:ERRWrongVersion.vi  (7,53 K)
Deploying Watchdog.lvlib 
Deploying Watchdog.lvlibSmiley FrustratedecToTicks.vi  (4,93 K)
Deploying Watchdog.lvlib:WARNWatchdogDisabled.vi  (3,54 K)
Deploying AnalogModule.lvlib 
Deploying AnalogModule.lvlibSmiley Very Happyefaults.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.lvlibSmiley Surprisedpen.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.lvlibSmiley TongueWMToDigitalModule.vi  (5,33 K)
Deploying PWM.lvlibSmiley Very HappyefaultPWMConstants.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.lvlibSmiley Very HappyefaultSetSpeed.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.lvlibSmiley Surprisedpen.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.lvlibSmiley Frustratedtop.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.lvlibSmiley Frustratedet 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.lvlibSmiley Frustratedet Image Appearance Property.vi  (6,22 K)
Deploying Camera.lvlibSmiley Frustratedet Image Sensor Property.vi  (7,55 K)
Deploying Camera.lvlibSmiley Frustratedet Numeric Sensor Property.vi  (8,13 K)
Deploying Camera.lvlibSmiley Frustratedet Enum Sensor Property.vi  (8,74 K)
Deploying Camera.lvlibSmiley Frustratedet Brightness.vi  (5,85 K)
Deploying Camera.lvlibSmiley Frustratedet 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.lvlibSmiley Frustratedet Enum Appearance Property.vi  (8,74 K)
Deploying Camera.lvlibSmiley Frustratedet Image Size.vi  (6,30 K)
Deploying Camera.lvlib:Get Image To PC Port.vi  (2,23 K)
Deploying Camera.lvlibSmiley Frustratedtart Asynchronous VI.vi  (13,93 K)
Deploying Camera.lvlibSmiley Frustratedtart.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.lvlibSmiley Frustratedet 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.lvlibSmiley Frustratedend Image String To PC 1.0.0.0.vi  (6,78 K)
Deploying Camera.lvlibSmiley Frustratedend Images To PC.vi  (7,77 K)
Deploying Camera.lvlibSmiley Surprisedpen Internal.vi  (10,65 K)
Deploying Camera.lvlibSmiley Very HappyecodeJPEGString.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.lvlibSmiley Surprisedpen.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.lvlibSmiley Surprisedpen.vi  (3,09 K)
Deploying Joystick.lvlibSmiley FrustratedcaleTo100PlusMinRange.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.lvlibSmiley Surprisedpen.vi


Download completed with errors.

Thanks.

0 Kudos
Message 1 of 23 (16,460 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Daniel,

You should not have to create a new project and copy and past anything into after the update.  You should be able to open your existing project and deploy it without having to make any changes to the code.  The latest update also requires you to reimage your cRIO.  Have you done this?

From your deployment log I can see the VIs for the camera are deploying correctly.

Cheers,

Mark

NI FIRST Support

Mark
LabVIEW R&D
0 Kudos
Message 2 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Yes, I re-imaged the cRIO.

I imgined I shouldn't need to, but since I didn't know what else to do, I did it just in case.

edit: what exactly is not deploying correctly?

I don't have any more guesses.

Thanks Mark.

0 Kudos
Message 3 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Daniel,

From the information here its difficult to determine why the deployment is failing.  In your first post you mentioned the code works when you hit the [Run] button.  Does this mean we only get a failure message when we are trying to deploy a built startup executable?

If you would like we can troubleshoot this issue over the phone.  Engineers on the NI FIRST Support team take support calls weekdays from 1PM-7PM CST (866) 511-6285.

Cheers,

Mark

NI FIRST Support

Mark
LabVIEW R&D
0 Kudos
Message 4 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Crosspost

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?

Mark
LabVIEW R&D
0 Kudos
Message 5 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Yes, this problem only happens when I deploy a built project.

It doesn't fail building, only deploying. I do the following procedure I found at chiefdelphi forums:

"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."

it's during step 3 that the error appears.

I'm from Brazil so I will try to work out the problem through the internet before calling, but I will if we are unable to solve soon.

edit: I will try to deploy using an external power suply, but that doesn't seem to be the problem, since I can successfully deploy an unedited FRC basic project.

Thanks.

0 Kudos
Message 6 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Please check the battery level on your setup.  If possible try using the cRIO's power supply rather than powering it off the PD board.  This is the best test to see if a battery with a low charge is the issue.

-Mark

Mark
LabVIEW R&D
0 Kudos
Message 7 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

I have experienced the same problem recently, where I am able to run code on the cRIO but not deploy my built application. (update 3.0a)  We had previously deployed code, though it was a week ago with update 2.  Battery voltage was sufficient for running motors and any other task so it doesn't seem suspect.

0 Kudos
Message 8 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

njg,

Have you rebuilt your application since updated to 3.0a before deploying?

-Mark

Mark
LabVIEW R&D
0 Kudos
Message 9 of 23 (82 Views)
Reply
0 Kudos

Re: Constant failure to deploy

Yes, in fact this is the first time I had built the application on this particular computer. (no old built files laying around)

0 Kudos
Message 10 of 23 (82 Views)
Reply
0 Kudos