mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
trigger, blockingtrigger in python and m3 timefix
This commit is contained in:
parent
7e8d11098a
commit
403989e2f8
@ -99,7 +99,6 @@ intentionally_missing = [
|
||||
'temp_slowadc',
|
||||
'temp_sodl',
|
||||
'temp_sodr',
|
||||
'trigger', #use sendSoftwareTrigger
|
||||
'update', #use updateServerAndFirmare
|
||||
'udp_validate', #use validateUdpConfiguration
|
||||
'udp_reconfigure', #use reconfigureUdpDestination
|
||||
|
@ -26,6 +26,7 @@ SHORT_STR_LENGTH=20
|
||||
MAX_PATTERN_LENGTH=0x2000
|
||||
MAX_PATTERN_LEVELS=6
|
||||
M3_MAX_PATTERN_LEVELS=3
|
||||
MAX_NUM_COUNTERS=3
|
||||
DEFAULT_STREAMING_TIMER_IN_MS=500
|
||||
NUM_RX_THREAD_IDS=9
|
||||
MAX_NUM_PACKETS=512
|
||||
|
@ -453,6 +453,15 @@ class Detector(CppDetectorApi):
|
||||
def triggers(self, n_triggers):
|
||||
self.setNumberOfTriggers(n_triggers)
|
||||
|
||||
def resetdacs(self, use_hardware_values):
|
||||
self.resetToDefaultDacs(use_hardware_values)
|
||||
|
||||
def trigger(self):
|
||||
self.sendSoftwareTrigger()
|
||||
|
||||
def blockingtrigger(self):
|
||||
self.sendSoftwareTrigger(True)
|
||||
|
||||
@property
|
||||
def exptime(self):
|
||||
"""
|
||||
@ -500,7 +509,7 @@ class Detector(CppDetectorApi):
|
||||
|
||||
@exptime.setter
|
||||
def exptime(self, t):
|
||||
if self.type == detectorType.MYTHEN3 and is_iterable(t):
|
||||
if self.type == detectorType.MYTHEN3 and is_iterable(t) and not isinstance(t,dict):
|
||||
for i, v in enumerate(t):
|
||||
if isinstance(v, int):
|
||||
v = float(v)
|
||||
@ -509,8 +518,6 @@ class Detector(CppDetectorApi):
|
||||
ut.set_time_using_dict(self.setExptime, t)
|
||||
|
||||
|
||||
|
||||
|
||||
@property
|
||||
def period(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user