bfishler
August 16, 2005, 02:47:22
I'm using Imaging Control 2.1 with Microsoft Visual C++ (as packaged with Visual Studio .NET 2003). My DFG/1394 Video-To-Firewire converter has a single analog camera connected to COMP1.
After Grabber::setInputChannel has returned, there appears to be a slight delay before the set operation fully completes.
See the following code snippet. Toggling back and forth between setting channelIndex to 0 (the index of the channel with the analog camera connected) and to 1 (channel with no camera) produces inconsistent results if I remove the Sleep statement.
----------------------------------
if ( ! mGrabber->setInputChannel( DWORD(channelIndex) ) )
return FAILURE;
Sleep(200);
if ( ( mGrabber->isSignalDetectedAvailable() ) && ( ! ( mGrabber->getSignalDetected() ) )
return NO_CAMERA;
return SUCCESS;
----------------------------------
EDIT: Just found a related posting. It appears that the DFG/1394 chip needs time to synchronize to the new input channel.
Regards,
Barry
After Grabber::setInputChannel has returned, there appears to be a slight delay before the set operation fully completes.
See the following code snippet. Toggling back and forth between setting channelIndex to 0 (the index of the channel with the analog camera connected) and to 1 (channel with no camera) produces inconsistent results if I remove the Sleep statement.
----------------------------------
if ( ! mGrabber->setInputChannel( DWORD(channelIndex) ) )
return FAILURE;
Sleep(200);
if ( ( mGrabber->isSignalDetectedAvailable() ) && ( ! ( mGrabber->getSignalDetected() ) )
return NO_CAMERA;
return SUCCESS;
----------------------------------
EDIT: Just found a related posting. It appears that the DFG/1394 chip needs time to synchronize to the new input channel.
Regards,
Barry