mahos.inst.camera.ThorlabsCamera#

class mahos.inst.camera.ThorlabsCamera(name, conf=None, prefix=None)#

Wrapper for Thorlabs Scientific Camera SDK.

You need the following: 1. Install SDK’s Python wrapper library (thorlabs_tsi_sdk). 2. Place SDK native DLLs somewhere.

Parameters:
  • dll_dir (str) – The directory path containing SDK DLLs.

  • serial (str) – (default: “”) Serial string to discriminate multiple cameras. Blank is fine if only one Thorlabs camera is connected.

  • infinite_wait (bool) – (default: True) If True, wait infinitely on soft trigger mode. If False, get_frames() returns None when timeout happens.

__init__(name, conf=None, prefix=None)#

Methods

__init__(name[, conf, prefix])

close_resources()

Close instrument resources.

configure(params[, label])

Configure the instrument settings.

configure_continuous(exposure_time_sec[, ...])

configure_soft_trigger(exposure_time_sec[, ...])

get(key[, args, label])

Get an instrument setting or measurement data.

get_frame()

get_frame_soft_trig_imm()

poll_continuous(ev)

set_binning(binning)

set_roi([roi])

start([label])

Start the instrument operation.

stop([label])

Stop the instrument operation.