Go to Post FIRST continues their full-frontal assault on mentor's vacation days. - Lil' Lavery [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
  #1   Spotlight this post!  
Unread 24-03-2012, 21:19
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
LabView corrupt?

While many would have ideas, I would most appreciate hearing from actual NI employees and similarly knowledgeable folks.

We had working code, and then I noticed that our shooter was no longer rotating to aim. This aiming is controlled by a loop in Periodic Tasks.vi. When I probed the wire coming out of the global boolean (that goes "TRUE" to make the shooter aim), I did not get "FALSE", I got "Not Executed". What? So I put a probe on the wire between the constant and the Wait (ms) that controls the loop rate (see figure 1). The value of the probe was zero!

In desperation, I deleted the constant and the wait, and re-drew them. No help: still zero milliseconds. So I deleted them again, and and also removed the While loop (removed, not deleted, preserving the code within). When I re-drew the loop and the timing bits, things seemed to work...for about five minutes.

Then we started getting "Watchdog not fed" messages and the controls became entirely unresponsive. So I started probing other loops in Periodic Tasks. When I placed a probe as in figure 2, I got a value of "Not Executed". That is just not right. The value of the global being probed in figure 2 is obtained (from the dashboard) in a loop that is also in Periodic Tasks (shown in figure 3). The value of the probe shown in figure 3 was 200 (the correct value). Please explain.

I "solved" this problem by just disabling the entire loop shown in figure 2. Again, things worked for a few minutes. Then our flywheel stopped operating (along with more watchdog errors and unresponsiveness.) When I probed the timing for that control loop (just as in figure 1), I got a value of some 11 million and change (!). I tried the trick of removing the while loop and timing, and then re-drawing them. Same problem, but a value of 12000344 when I probed between the constant 20 and the Wait vi (refer to figure 1 to see why 20 is the expected value).

I should mention that all of these problem occurred while using a cable to connect the laptop directly to the radio. No wireless, because these problems never surfaced until we were in the pit for this weekend's competition.

My solution? I un-packed our last saved archive from before these problems started. Mostly the code we wanted with only a few minor issues not fixed. We made no changes. We did not even open the code, only built it and deployed it. And it works as before FOR ONE MATCH ONLY. Our robot will only function if we re-image our cRIO and re-deploy the build after every match! And, some things are no longer working properly, as if the build is slowly becoming corrupted....

Anther thing to make clear: between having working code and the first of these problems we made no changes to Periodic Tasks.vi. The few changes we did make were all in Teleop and Autonomous.

I've pretty much had it. Unless someone can tell me how to fix this problem and prevent similar absurdities from occurring in the future, we're using C next year.
Attached Thumbnails
Click image for larger version

Name:	figure 1.png
Views:	11
Size:	820 Bytes
ID:	12407  Click image for larger version

Name:	figure 2.png
Views:	21
Size:	6.0 KB
ID:	12408  Click image for larger version

Name:	figure 3.png
Views:	19
Size:	15.9 KB
ID:	12409  
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 20:48.

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