View Single Post
  #2   Spotlight this post!  
Unread 17-04-2012, 21:35
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: periodic tasks behaving differently in autonomous vs teleop (labview)

One possibility is that the autonomous code is taking so much CPU time that it is slowing down the periodic tasks loop. There is a VI that is supplied by NI that will report the actual time that it takes to run each loop (I can't remember the name right now, but if you look in the vision processing example, it is included there). Place that VI in your periodic tasks vi and run your code using the play button. Run in teleop and auton and see if the loop time is different for each.

Also, I'm assuming you are passing your set point from your autonomous code to periodic tasks via a global variable. Is it possible that the global variable is being set in multiple locations? Run via the play button and place a probe on the set point signal just before the PID VI to check that the set point is staying constant.
__________________
-
An ounce of perception is worth a pound of obscure.