The software code for a bachelors project in physics at Linköping University. The software controls a sun simulator machine that simulates the light spektrum of the sun through the atmosphere.