View Single Post
  #1   Spotlight this post!  
Unread 12-02-2014, 11:32
Phalanx's Avatar
Phalanx Phalanx is offline
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
100% CPU Utilization Using 10ms Periodic Task

Here's what I'm doing. In the 10ms loop in Periodic Tasks I have the following:

2 separate GET digital I/O VI's
Each output I perform a Boolean NOT
Each output is stored in a Boolean global variable.
The RefnumGet VI's are outside the loop.

When this code is added, my CRIO cpu spikes to 100%.
When I remove this code my CRIO CPU is at 50%.

I'm rather puzzled/stumped that this little bit of code causes that much pain.
Any ideas?
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote