spectrophotometer light source function