01-29-2009 03:11 PM
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.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.
Thanks.
01-29-2009 04:31 PM
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
01-29-2009 05:27 PM
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.
01-30-2009 09:18 AM
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
01-30-2009 10:44 AM
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?
01-30-2009 04:25 PM
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.
01-30-2009 04:46 PM
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
02-02-2009 11:49 AM
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.
02-02-2009 11:53 AM
njg,
Have you rebuilt your application since updated to 3.0a before deploying?
-Mark
02-02-2009 11:55 AM
Yes, in fact this is the first time I had built the application on this particular computer. (no old built files laying around)