Go to Post Any team that started with a random word generator can't be bad. - Sperkowsky [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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,752
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
 


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 21:22.

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