Go to Post Either you have it hooked up wrong, or you have the Battery of the Gods. Probably filled with Mountain Dew... - nighterfighter [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
  #5   Spotlight this post!  
Unread 26-02-2010, 21:00
rellimcire rellimcire is offline
Robolopes Software Advisor
AKA: Eric Miller
FRC #2339 (Robolopes)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Lancaster, CA
Posts: 11
rellimcire is an unknown quantity at this point
Re: cant build

OK, I kind of owe Greg an apology. I did find an error, but I think my explanation is instructive. At least I didn't find this anywhere else.

First, although enabling debug allowed me to build, it turns out it wrecked my deployment. I'd build, then deploy. LabVIEW says all is OK. But after deploying the code would not run on the cRIO. The only way to run was from LabVIEW.

So I went back to the most recent version that built without enabling debug. (Lesson: I was saved a lot of grief because I make daily or more often backups of our project.) That version also deployed so the two problems are linked.

Since LabVIEW gave no clues, I took the current project and went back to the Teleop.vi that worked. Then I retraced my steps bit by bit until I found the step that broke it. Finally after a couple of hours I found it was caused by a new sub vi. That vi referenced the drive motors (specifically arcade drive) which is a logical conflict with the reference in Teleop.vi. Cleared that up and everything builds OK and deploys OK. WHEW!

I started by saying I "kind of" owed Greg an apology. He was right that something was wrong. However, LabVIEW gave no clue as to what. Only the build failed. I could run from LabVIEW despite the problem. The wrong thing is what I normally think of as a runtime error, not a build time error. So, yes, something was wrong, but it's not real helpful to have to disassemble code blindly hoping to find the problem. Plus, it's surprising that the LabVIEW build and deploy pick up a runtime error, but running my code in debug mode through LabVIEW completely misses the error.

Glad I found the problem. Hope this helps someone else.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build/Mechanical teams after build and integration Bomberofdoom General Forum 1 02-02-2008 13:45
Any teams build two robots to practice with after build season. (6 weeks) GVDrummer General Forum 42 24-01-2008 21:34
Cant get RC to work comphappy Control System 13 06-01-2008 18:40
I cant wait Perseus Chit-Chat 14 01-10-2002 17:43


All times are GMT -5. The time now is 22:03.

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