-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Hi
I am trying to run camera with external trigger, but when I use frame = cam.dequeue(poll=True) the output is always false.
Here is how I initialize the camera:
cam=Camera()
modes=cam.modes
cam.mode=modes[1]
cam.mode.setup((360,360), (300,200), "MONO8") # head free setup
sr = cam.shutter.absolute_range
cam.shutter.setup(0.001)
ex = cam.exposure.absolute_range
cam.exposure.setup(ex[0])
cam.exposure.active = False
cam.gamma.active = False
cam.brightness.value
cam.gain.setup(15)
cam.gamma.setup(1)
cam.brightness.setup(0)
cur_Dir = getvar('saveDir')
cam.trigger.mode = "0"
cam.trigger.source = "0"
cam.trigger.active="True"`
and I read the frames as follows:
`cam.start_capture()
cam.start_video()
time.sleep(1)
frame=None
frame = cam.dequeue(poll=True)
cam.stop_video()
cam.stop_capture()
I'd appreciate if I could have your help on this issue
Thanks,
Eghbal