Princeton’s camera are often use for Spectroscopy.

This Lima module has been tested with:

  • Pixis 100 and 400.

This module was tested with PiCam 5.x. You can get it .. _Latest:

Documentation can be found .. _Doc:

Installation & Module configuration

First, you need to install the SDK.

Then, follow the generic instructions in Build and Install. If using CMake directly, add the following flag:


For the Tango server installation, refers to PyTango Device Server.

Initialisation and Capabilities

Implementing a new plugin for new detector is driven by the LIMA framework but the developer has some freedoms to choose which standard and specific features will be made available. This section is supposed to give you the correct information regarding how the camera is exported within the LIMA framework.

Interface initialisation

The interface will be initialized within the Interface object. The Interface() constructor takes an optional serial parameter.

If serial parameter is left empty, the plugin will open the first camera founded.

Small example showing possible ways to initialize:

from Lima import Princeton
from lima import Core

interface = Princeton.Interface()

Standard capabilities

This plugin has been implemented in respect of the mandatory capabilites but with some limitations which are due to the camera and SDK features. Only restriction on capabilities are documented here.

  • HwDetInfo

    Only support Bpp16 Images.

  • HwSync

    No restriction, plugin should offer all trigger mode available for the camera.

Optional capabilites


How to use

This is a python code example for a simple test:

from Lima import Princeton
from lima import Core

hwint = Princeton.Interface("")
ct = Core.CtControl(hwint)

acq = ct.acquisition()

# set and test an acquisition

# setting new file parameters and autosaving mode


# now ask for 2 sec. exposure and 10 frames


# wait for last image (#9) ready
lastimg = ct.getStatus().ImageCounters.LastImageReady
while lastimg !=9:
  lastimg = ct.getStatus().ImageCounters.LastImageReady

# read the first image
im0 = ct.ReadImage(0)