PDA

View Full Version : ImageAvailable not trigger



smlau
August 11, 2003, 02:35:48
Hi,
ImageAvalible only trigger once, it will not trigger again after I call ICImagingControl1.LiveCapturePause = True and back to ICImagingControl1.LiveCapturePause = False again, please advice...

Below is the sample of my coding....

During form load,
...
ICImagingControl1.LiveDisplay = True
ICImagingControl1.LiveCaptureContinuous = True
ICImagingControl1.LiveStart
...

Private Sub ICImagingControl1_ImageAvailable(ByVal BufferIndex As Long)
ICImagingControl1.LiveCapturePause = True
'..... do data analysis here....
ICImagingControl1.LiveCapturePause = False
End Sub

Best Regards,
SM Lau

Stefan Geissler
August 12, 2003, 12:18:37
SM Lau,

you do not need to set ICImagingControl1.LiveCapturePause = True, resp. False, because the delivery of images is stopped until you leave the
ImageAvailable(ByVal BufferIndex As Long) sub.
The LiveCapturePause property will not have any effect to the CPU load in the ImageAvailable() sub.