12-01-2011 04:43 PM
Ok, here is a simple example of my thought process. We have two different tasks, one input and one output. We send our high pulse to the camera to take a picture. Then we continuoulsy poll the camera to see if its ready, as soon as its ready, send a second pulse. We repeat this loop every 200 ms.
The issues with this simple implementation, as with the others, is enforcing the 5hz rate. Windows is non-deterministic, so our timing may be off by a few ms. However, we avoid the issues from earlier because everything is software timed now.
Try this and see if it points you in the right direction.