Quote:
|
Originally Posted by BradAMiller
It is true that if you call the camera code to capture a packet, it waits for valid data to show up. If the camera is not running, then it waits forever. This is to handle case where you initialize the camera and immediately start reading data and the first packet hasn't come in yet.
If we were to add a time out (maybe 500ms) so that it would return all zeros if valid camera data was never received (including 0 confidence) would that work for you?
|
The problem that we are experiencing is initializing the camera, when the camera is not found. In fact is does "wait forever" it seems to us.
We understand that if data is never received that we could write a time out code, in fact that is what we want to do. But how do we write a timeout in EasyC when the initialize of the camera is a function block that we can't edit or interface to? It seems to go into that function and never come back out, (the CPU pointer, aka scan)
If the cpu went into the initialize function and never comes out, how are we suppose to write a timeout function for it?