Skip to content

Unexpected trigger mode behavior  #87

@juliomateoslangerak

Description

@juliomateoslangerak

There is an odd behavior with the trigger modes in my setup after merging with micron's master. I just cannot get it to work. 'External exposure' sets the mode to external start and if I set it to 'software' it goes to external (either external exposure or plain external). So I did some tests and here is what I get:

import Pyro4
cam = Pyro4.Proxy('PYRO:AndorSDK3@10.6.19.31:8001')
cam.enable()
Out[4]: True
cam.disable()  # I disable here but if I keep the camera enabled I get similar results
cam.get_setting('trigger_mode')
Out[6]: 4
cam.describe_setting('trigger_mode')
Out[7]: 
{'cached': False,
 'readonly': False,
 'type': 'enum',
 'values': [(0, 'Internal'),
  (1, 'External Start'),
  (2, 'External Exposure'),
  (3, 'Software'),
  (4, 'External')]}
cam.set_setting('trigger_mode', 3)  # Let's set the trigger mode to software
cam.get_setting('trigger_mode')
Out[9]: 3
cam.get_setting('exposure_time')
Out[10]: 0.0098304
cam.describe_setting('exposure_time')  # In software trigger mode we should be able to change the exposure time...
Out[11]: 
{'cached': False,
 'readonly': True,
 'type': 'float',
 'values': (0.0009984, 30.0)}
cam.set_setting('exposure_time', 0.2)
cam.get_setting('exposure_time')  # But we cannot. It's really read-only
Out[13]: 0.0098304
cam.set_setting('trigger_mode', 2)  # So now to external exposure
cam.describe_setting('exposure_time')
Out[15]: 
{'cached': False,
 'readonly': False,
 'type': 'float',
 'values': (9.6e-06, 30.0)}
cam.set_setting('exposure_time', 0.2)  # I guess this is might be ok as we need to change exposure time to get the total readout time
cam.get_setting('exposure_time')
Out[17]: 0.19999679999999997

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions