@Jake_B
Download and follow along with this guide. It explains everything very well to someone who has never used PID before, and provides code examples too.
Credit for the guide goes to George Gillard.
Also look into tasks or multithreading in RobotC or PROS because, very often, they are used along with PID control loops.