Download Lima Documentation

Transcript
Lima Documentation, Release 1.3.1
How to use
This is a python code example for a simple test:
from Lima import Andor
from lima impor Core
cam = Andor.Camera("/usr/local/etc/andor", 0)
hwint = Andor.Interface(cam)
control = Core.control(hwint)
acq = control.acquisition()
# configure some hw parameters
hwint.setTemperatureSP(-30)
hwint.setCooler(True)
.... wait here for cooling
hwint.setPGain(2)
# setting new file parameters and autosaving mode
saving=c.saving()
pars=saving.getParameters()
pars.directory=’/buffer/lcb18012/opisg/test_lima’
pars.prefix=’test1_’
pars.suffix=’.edf’
pars.fileFormat=Core.CtSaving.EDF
pars.savingMode=Core.CtSaving.AutoFrame
saving.setParameters(pars)
# set accumulation mode
acq_pars= acq.getPars()
#0-normal,1-concatenation,2-accumu
acq_pars.acqMode = 2
acq_pars.accMaxExpoTime = 0.05
acq_pars.acqExpoTime =1
acq_pars.acqNbFrames = 1
acq.setPars(acq_pars)
# here we should have 21 accumalated images per frame
print acq.getAccNbFrames()
# now ask for 2 sec. exposure and 10 frames
acq.setAcqExpoTime(2)
acq.setNbImages(10)
acq.prepareAcq()
acq.startAcq()
3.2. Linux only
39