Skip to content

Commit

Permalink
Dimax camera freerun added
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed Oct 23, 2013
1 parent 1c92e6b commit addf0c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions concert/devices/cameras/uca.py
Expand Up @@ -149,6 +149,15 @@ class Dimax(Camera):
def __init__(self):
super(Dimax, self).__init__("pco")

@async
def freerun(self, viewer):
"""Start recording and live preview with frames shown in *viewer*."""
self.uca.props.trigger_mode = self.uca.props.trigger_mode.AUTO
self.uca.props.storage_mode = 0
self.uca.props.record_mode = 1
self.start_recording()
inject(self.readout(lambda : self.uca.props.is_recording), viewer)

def readout_blocking(self, condition=lambda: True):
"""
Readout the frames and don't allow recording in the meantime.
Expand Down

2 comments on commit addf0c1

@matze
Copy link
Contributor

@matze matze commented on addf0c1 Oct 24, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be moved to the Pco() class. Setting the properties should be enclosed in a try clause though.

@tfarago
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does relly every PCO camera have the required settings? Why the try-except block? When something cannot be set it should raise an exception, right?

Please sign in to comment.