A non-transitory computer readable storage medium storing a control program for an observation apparatus that comprises:
- an imaging unit comprising an imaging section that includes an imaging optical system and an image sensor and that images a sample to output an image signal, and comprising an illumination section that includes a plurality of emitting sections which are configured to emit illumination light and are located away from an optical axis of the imaging optical system and that illuminates the sample;
- and a driving mechanism that moves the imaging unit, wherein the control program causes a computer to execute:
- causing the driving mechanism to move the imaging unit;
- acquiring position information on the imaging unit;
- acquiring position information on the sample;
- selecting which of the emitting sections emits illumination light based on the position information on the sample and the position information on the imaging unit;
- causing the selected emitting section to emit main illumination light;
- and
- causing the imaging section to perform imaging.