iblrig.video_pyspin.enable_camera_trigger

iblrig.video_pyspin.enable_camera_trigger(enable, camera)[source]

Enable or disable the trigger for a specified camera or all cameras.

This function allows you to enable or disable the trigger mode for a given camera / given cameras. If no camera is specified, it will enable or disable the trigger mode for all available cameras.

Parameters:
  • enable (bool) – A flag indicating whether to enable (True) or disable (False) the camera trigger.

  • camera (PySpin.CameraPtr, PySpin.CameraList or None, optional) – A pointer to a specific camera instance, a list of instances, or None. If None is specified, all available cameras will be considered.

Raises:

PySpin.SpinnakerException – If there is an error while setting the trigger mode for the camera.

Parameters:
  • enable (bool)

  • camera (PySpin.CameraPtr)

Return type:

bool