Analog Gyroscope randomly stops working.

On our robot the gyroscope randomly keeps shutting off. It sometimes randomly work then stops working without changing anything. I was running autonomous with the gyroscope working and giving me the green light when suddenly it stops working. I restart it and now whenever it gets to that part of the autonomous the gyroscopes green light shuts off and doesn’t work. I’ve tried replacing wires and the gyroscope itself and nothing has worked. Anyone else having this problem? If so what was your solution to fixing this? The same goes for our Ultra Sonics also.

It sounds like you lose power to the analog and digital ports, perhaps a wire is shorting? What else do you have plugged into the ports?

Power for these ports comes from a separate regulator so the cpu itself would not shutdown, you can see a block diagram here.
Power distribution and status display for the cortex

That is not what i was hoping for:( We also have 3 ultrasonic sensor pluged into analog and digital ports.