Can't Deploy All of Project to cRIO

We have a basic test robot frame up and running with the default cRIO code. The next step for us is to build and deploy the default FRC cRIO Robot Project that comes with labview, but we are having some problems.

Upon opening the project for the first time, I go to the FRC Basic Robot Deployment properties and adjust it so that Autonomous Independent.vi, Basic Robot Global.vi, Build Dashboard Data.vi, and Dashboard Datatype.ctl are always included. The project won’t build after that, giving the error

Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:

Error 1502 occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Copy_Files.vi -> AB_Application.lvclass:Copy_Files.vi -> AB_Build.lvclass:Build.vi -> AB_RTEXE.lvclass:Build.vi -> AB_Build.lvclass:Build_from_Wizard.vi -> AB_UI_FRAMEWORK.vi -> AB_Item_OnDoProperties.vi -> AB_Item_OnDoProperties.vi.ProxyCaller

Possible reason(s):

LabVIEW:  Cannot save a bad VI without its block diagram.

I resolve this by enabling debugging in the build specifications. After that, the project builds with the following warnings

LabVIEW prevented a file name collision during the build. Duplicate file names cannot be copied to the same destination. You can rename files as part of the build process to avoid name conflicts.

The following files were moved to a unique location:

C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\System\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AI\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AnalogTrigger\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AnalogTrigger\ReadConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\ReadConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AI\ReadLoopTiming.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\DIO\ReadLoopTiming.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AI\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\DIO\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\DIO\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AnalogTrigger\WriteConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\WriteConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\ReadConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\ReadEnable.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\ReadEnable.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\ReadOutput.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\ReadOutput.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\ReadTimerConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\ReadTimerConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\ReadTimerOutput.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\ReadTimerOutput.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\WriteConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\WriteEnable.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\WriteEnable.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\WriteReset.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\WriteReset.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\WriteTimerConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\WriteTimerConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\Open WO Configuration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\Open WO Configuration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Global\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Global\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Counter\InvalidResourceErr.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Interrupt\InvalidResourceErr.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Interrupt\ReadConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Interrupt\WriteConfiguration.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Solenoid\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Solenoid\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\AI\WriteConfig.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\SPI\WriteConfig.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\SPI\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\WatchDog\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\WatchDog\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\System\Get.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Joystick\Get.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Joystick\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\GetAverageValue.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\GetAverageValue.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\GetAverageVoltage.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\GetAverageVoltage.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\GetValue.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\GetValue.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogModule\GetVoltage.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\GetVoltage.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Joystick\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Camera\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Camera\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Watchdog\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\Watchdog\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\ERRSetOnUnallocatedChannel.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\ERRSetOnUnallocatedChannel.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\ChannelCache.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\ChannelCache.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\AnalogChannel\ChannelCacheOp.ctl
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\ChannelCacheOp.ctl
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\DigitalModule\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\DigitalModule\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\NIFPGAInterface\Encoder\Open & Configure.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\Open & Configure.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\GetValue.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\GetDevStatus.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\Open.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\PWM\MotorControl\Close.vi
C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\Robotics Library\WPI\RobotDrive\Close.vi

Then if I go to Basic Robot Main.vi and deploy it, it comes up with a deployment error and warning resolution box, saying that Basic Robot Main.vi is broken or otherwise not in a deployable state.

Does anyone have an idea as to what might be causing this problem?

My recommendation is to open the VIs you mentioned and see which of these is broken. In reality, you shouldn’t need to update the properties of the build. It already includes the Robot Main and all of its dependencies, but it shouldn’t hurt to include others – unless they are broken.

Greg McKaskle

Whew, we fixed it! Some datatypes weren’t wired correctly in Async VI Agent.vi in the NI_FPGA_Interface.lvlib