mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
triggersl and print fix for acq
This commit is contained in:
@ -929,6 +929,18 @@ class Detector(CppDetectorApi):
|
||||
fname = ut.make_string_path(fname)
|
||||
self.loadTrimbits(fname)
|
||||
|
||||
@property
|
||||
@element
|
||||
def trimval(self):
|
||||
"""
|
||||
[Eiger][Mythen3] Set all trimbits to this value. Returns -1 if all trimbits are different values.
|
||||
"""
|
||||
return self.getAllTrimbits()
|
||||
|
||||
@trimval.setter
|
||||
def trimval(self, value):
|
||||
self.setAllTrimbits(value)
|
||||
|
||||
@property
|
||||
def lock(self):
|
||||
"""Lock detector to one client IP, 1 locks, 0 unlocks. Default is unlocked."""
|
||||
@ -1009,6 +1021,16 @@ class Detector(CppDetectorApi):
|
||||
"""
|
||||
return self._adc_register
|
||||
|
||||
@property
|
||||
@element
|
||||
def triggersl(self):
|
||||
return self.getNumberOfTriggersLeft()
|
||||
|
||||
@property
|
||||
@element
|
||||
def timestamp(self):
|
||||
return self.getMeasurementTime()
|
||||
|
||||
@property
|
||||
def led(self):
|
||||
"""[Ctb] Switches on/off all LEDs. Default is enabled. """
|
||||
@ -1018,6 +1040,13 @@ class Detector(CppDetectorApi):
|
||||
def led(self, value):
|
||||
self.setLEDEnable(value)
|
||||
|
||||
def acquire(self):
|
||||
"""
|
||||
Run the configured measurement
|
||||
"""
|
||||
super().acquire()
|
||||
print('\n', end = '')
|
||||
|
||||
|
||||
@property
|
||||
def versions(self):
|
||||
@ -1464,6 +1493,35 @@ class Detector(CppDetectorApi):
|
||||
|
||||
self.setVetoFile(chip_index, fname)
|
||||
|
||||
@property
|
||||
def vetophoton(self):
|
||||
raise NotImplementedError('vetofile is set only')
|
||||
|
||||
@vetophoton.setter
|
||||
def vetophoton(self, args):
|
||||
chip_index, n_photons, photon_energy, fname = args
|
||||
self.setVetoPhoton(chip_index, n_photons, photon_energy, fname)
|
||||
|
||||
@property
|
||||
@element
|
||||
def vetoref(self):
|
||||
"""
|
||||
[Gotthard2] Set veto reference for all 128 channels for all chips.
|
||||
|
||||
Examples:
|
||||
----------
|
||||
|
||||
>>> d.vetoref = chip, value
|
||||
|
||||
"""
|
||||
raise NotImplementedError('vetoref is set only')
|
||||
|
||||
@vetoref.setter
|
||||
def vetoref(self, args):
|
||||
gain_index, value = args
|
||||
self.setVetoReference(gain_index, value)
|
||||
|
||||
|
||||
"""
|
||||
Mythen3 specific
|
||||
"""
|
||||
|
Reference in New Issue
Block a user