Go to Post You must wear safety glasses at all times, so please bring them. - Don Wright [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #1   Spotlight this post!  
Unread 05-03-2009, 23:25
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 90
duane is an unknown quantity at this point
Send a message via AIM to duane
LabView Intermittent No Code

We've been having trouble with the Driver Station status indicating "No Code" intermittently. We've done a lot of trouble shooting and we are starting to get some idea what is going on, but we are looking for ideas about what would cause "No code" on the cRio.

We narrowed down a few things:
1. The "No Code" situation most often occurs when we switch between autonomous and tele-operated modes.

2. When switching, the dashboard error log displays seemingly inconsistent messages about PWM channels not being allocated or encoders not be set properly. Systems that would work in Teleop mode, would then stop working entirely after going through autonomous mode. (We are using Autonomous Independent (in the Advanced framework)).

3. We have added "Robot Data" as a global variable.

Our current thinking is that some parts of the system are accessing the Robot Data global information (references) before they are initialized. We have taken to putting many pieces of code in separate parallel VIs to encourage the system to use more independent threads.

However, we can't see where this would happen, all of the VIs are connected to "Begin" where all of the data is initialized. After Begin, all of the threads branch and run independently, including driving, various on-robot controls, and camera vision and tracking.

Could we be corrupting the references somehow? I expect the references to be mostly "read-only" during operational mode. Is there something about global data that we are missing?

Thank you for any ideas as we head off into competition tomorrow.

...Duane
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
 


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
custom C/C++ code in LabView? Pneumaticsman NI LabVIEW 5 14-01-2009 23:05
help me in LabView code mahmosh National Instruments LabVIEW and Data Acquisition 3 11-01-2009 00:18
Troubleshooting problems with intermittent robot operation Ted-Werd Electrical 10 15-02-2007 19:06
Intermittent CODE ERROR, followed by uncommanded relay switching tcj103 Programming 4 22-01-2007 02:59
Intermittent Code Error Plloyd Programming 9 09-04-2005 21:37


All times are GMT -5. The time now is 09:50.

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