AlexP - 12 April 2010 11:45 AM
Another way as I said is to sync your devices in hardware (something we at CL are currently developing). ... time-stamping to the SDK is possible but we are currently working on much better solution. Will keep you posted.
Hello Alex,
On my project it needs to link frames with events several seconds later. To do this I am just in the process of setting up a ATMEL(eq PIC) microcontroller to both control the machine and send signals to FSIN as described in http://codelaboratories.com/forums/viewthread/84/. The micro is a real time device so everything should synch perfectly. What I am a little bit uncomfortable with is that the micro wont know if a frame is dropped in the PC, thus my original question.
What I am thinking at the moment is the micro will send a message via rs232 every time it fires a frame, which should tell me if I have lost a frame but not when. I am also hoping that holding FSIN LOW will stop frames even when the camera has been started by CL, so something like should be pretty safe
Set_FSIN_LOW // command to micro
Wait_for_FSIN_Confirm // message from micro
CLEyeCreateCamera
CLEyeCameraStart // nothing happens while FSIN is LOW
StartFSINPulses // command to micro
while(1)
{ReadFSINPulseConfirm // message from micro, note rs232 has it's own subsystem & buffer
// so always has true count
CLEyeGetFrame
CheckFrameCount
}
Should I be waiting for your solution?
David
PS, I also wondered about using the microphones somehow - cutting them off and pulsing with the micro, but I’m not sure they will be perfectly synched with the video in windows anyway.