PID looping in Blocks

I am in a similar spot with coding, but here is a post I found that was very helpful. It may be a bit repetitive, but I hope it will help! I think this is learning python or c++ from scratch. Let me know if this helps. Credit to the original poster.