set_binning#

Client.set_binning(bin_x, bin_y, use_hw=True)#

Set the binning of the current camera on DE-Server. If useHW is True, the binning will use hardware binning. If useHW is False, the binning will use software binning only.

Note

In almost all cases useHW should be True. HW binning usually speeds up the camera and reduces the amount of data sent to the server. It also spreads the dose over a larger number of pixels which reduces the local dose/damage for each pixel.

Parameters:
  • bin_x (int) – The binning in the x direction

  • bin_y (int) – The binning in the y direction

  • use_hw (bool) – If True, use hardware binning and software binning. If False, use software binning only.