Universal confocal controller with one and two channels