The signal processing device includes a connection detection unit that detects the presence or absence of connection of an endoscope including one or more operation members, and an operation state signal input from the endoscope when connection of the endoscope is detected When an absence of connection of the endoscope is detected, an operation state signal input from an external input device including one or more operation members corresponding to one or more operation members of the endoscope is selected An allocation information storage section for storing allocation information on the operation on the operation member, an operation state signal selected by the signal selection section on the basis of the operation state signal and the allocation information selected by the signal selection section, And an operation execution unit that executes an operation according to the operation instruction set by the operation instruction setting unit.信号処理装置は、1つ以上の操作部材を含む内視鏡の接続有無を検出する接続検出部と、内視鏡の接続有りが検出された場合には内視鏡から入力される操作状態信号を選択し、内視鏡の接続無しが検出された場合には内視鏡の1つ以上の操作部材に対応する1つ以上の操作部材を含む外部入力装置から入力される操作状態信号を選択する信号選択部と、操作部材に対する動作の割当情報を記憶する割当情報記憶部と、信号選択部により選択された操作状態信号と割当情報とに基づいて、信号選択部により選択された操作状態信号に応じた動作指示を設定する動作指示設定部と、動作指示設定部により設定された動作指示に応じた動作を実行する動作実行部とを備える。