Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Code won't build (http://www.chiefdelphi.com/forums/showthread.php?t=141780)

Unexas 15-01-2016 11:27

Code won't build
 
Like it says in the title the code won't build. When i click Build all it doesn't do anything.

RyanN 15-01-2016 11:53

Re: Code won't build
 
Quote:

Originally Posted by Unexas (Post 1524197)
Like it says in the title the code won't build. When i click Build all it doesn't do anything.

If you go into Robot Main, is the run arrow white or grayed out?

Please be more specific too. There's many reasons why the code won't build. Stating that doesn't help me or anyone else debug your problem.

Greg McKaskle 15-01-2016 12:11

Re: Code won't build
 
I also wanted to make sure that you are aware that Edit/Build/Run is not a very effective way to develop code, especially in LV.

The run button on Robot Main should be used anytime you are not sure that your code is perfect. Why? Because when you build and deploy, you are building and delivering a finished and optimized EXE and it is difficult/impossible to view and debug stuff. While it is possible to change the settings to allow for debugging of a built app, there is a much better way.

Open the Robot Main and click the run arrow. If it is broken, it will explain why and help you to fix the issues. If it is not broken, it will deploy each VI into memory and allow you to open panels, probe wires, breakpoint and pause, and more generally let you interact with code that is not final. When you see that your logic is off, or your constant needs to change, you abort RobotMain using the stop button, make the change, Save, click the run button again, and the in-memory roboRIO stuff if updated with the minimal download, and you are back to testing the functionality.

On the flip-side. You will be required to build and deploy to run at an official FRC event, so definitely learn how to do that as well. Just don't use it as your only development technique.

Greg McKaskle

Unexas 15-01-2016 12:21

Re: Code won't build
 
Quote:

Originally Posted by Greg McKaskle (Post 1524235)
I also wanted to make sure that you are aware that Edit/Build/Run is not a very effective way to develop code, especially in LV.

The run button on Robot Main should be used anytime you are not sure that your code is perfect. Why? Because when you build and deploy, you are building and delivering a finished and optimized EXE and it is difficult/impossible to view and debug stuff. While it is possible to change the settings to allow for debugging of a built app, there is a much better way.

Open the Robot Main and click the run arrow. If it is broken, it will explain why and help you to fix the issues. If it is not broken, it will deploy each VI into memory and allow you to open panels, probe wires, breakpoint and pause, and more generally let you interact with code that is not final. When you see that your logic is off, or your constant needs to change, you abort RobotMain using the stop button, make the change, Save, click the run button again, and the in-memory roboRIO stuff if updated with the minimal download, and you are back to testing the functionality.

On the flip-side. You will be required to build and deploy to run at an official FRC event, so definitely learn how to do that as well. Just don't use it as your only development technique.

Greg McKaskle

I am trying to build the default program just so the drive team is able to drive later today. And i have tried building from FRC boot up deyployment nor from robot main.

Greg McKaskle 15-01-2016 12:29

Re: Code won't build
 
I still don't have much understanding of what you are seeing.

Build will check all of the files, compile them for the ARM/RT situation, and link them into an EXE. It doesn't deploy to the robot.

The next step is to right click on the Build Spec and select Run as Startup.

If you are still not successful, please give more details as to what you do, what you see, etc.

Greg McKaskle

Unexas 16-01-2016 09:58

Re: Code won't build
 
Quote:

Originally Posted by Greg McKaskle (Post 1524254)
I still don't have much understanding of what you are seeing.

Build will check all of the files, compile them for the ARM/RT situation, and link them into an EXE. It doesn't deploy to the robot.

The next step is to right click on the Build Spec and select Run as Startup.

If you are still not successful, please give more details as to what you do, what you see, etc.

Greg McKaskle

Ok when i try to build the code nothing happens. And when i try and deploy it tells me The Real time application has not been built. When i try and build i get a black outline around the inside of the labview project window.


All times are GMT -5. The time now is 10:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi