View Single Post
  #6   Spotlight this post!  
Unread 20-10-2010, 22:08
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: How do I use interrupts?

Quote:
Originally Posted by Greg McKaskle View Post

If you need to set priorities, and I highly doubt that you do, you can set different subVI priorities and put each of them to wait on different interrupts.

Greg McKaskle
Thank you for clarifying the use of the event structure. As far as priorities, I would want to use them to determine machine behavior based on sensed events. I think my takeaway from your discussion is that I should use a state machine based on the sensor inputs. My concern would be how to truly interrupt a process such as raising an arm when an imminent collision is sensed. Even if the entire state machine (say, for raising an arm) is contained inside another case statement (collision imminent, true or false), if you are executing state machine logic within the 'collision false' case, wouldn't there be a significant delay (20 ms) before switching to the 'collision true' case?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote