Go to Post Its always good to read the rules yourself rather than listen to "word of mouth" rules. - Killraine [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2016, 11:27
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2016, 11:53
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Code won't build

Quote:
Originally Posted by Unexas View Post
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.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2016, 12:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2016, 12:21
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Code won't build

Quote:
Originally Posted by Greg McKaskle View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2016, 12:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2016, 09:58
Unexas Unexas is offline
Lead Programmer
AKA: Douglas Byrd
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Baton Rouge
Posts: 22
Unexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really niceUnexas is just really nice
Re: Code won't build

Quote:
Originally Posted by Greg McKaskle View Post
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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