So I apologize if this has been answered elsewhere, but searching for "frame done" and "event" together returns just about nothing I'm interested in.
I'm trying to implement a nifty separate video loop for my 1394 camera with IMAQdx's new "Frame Done" event. I can get it to work, but I'm wondering the best way to implement a "Grab" and "Snap" functionality. I setup a dummy register for event for "Frame done" with a blank IMAQdx session to initially create the dynamic event refum. This returns an error, but I end up putting a valid IMAQdx session in it later. While initializing the camera, I configure the acquisition, start the acquisition, then notify the other loop that it can start. Since it really only has a "Frame Done" event (and one to stop the loop), it sits there waiting for an event. Good. Then when the user presses "grab" I register the IMAQdx session for the "Frame done event" and video starts getting captured.
Now enters maybe the faulty thinking. I'd like for the user to depress the grab button or press the snap button and have the video loop which is getting "Frame Done" events left and right to stop registering them. So I thought the best way was to unregister the event. This works great for pausing the video loop, but I can't get it going again by registering the IMAQdx session for "Frame Done" again when the user engages the grab button.
Ok, so just writing this out has given me an idea. Perhaps unregistering the event throws away that dynamic event refum so that the same refum (which the video loop is waiting on) will never recieve another "Frame Done" event even if I register for it again? (This doesn't seem quite right since when probed, the refum doesn't show up blank after it's been unregistered). At any rate, I just tried registering for a blank IMAQdx session (even though it throws an error from the register for events node) instead of unregistering and it gives the desired effect of pausing the video loop but also being able to start it again by putting in the corrent IMAQdx session.
For those of you trying out "Frame Done" I've included my little test vi. All you should need is a 1394 camera and IMAQ acquisition 3.2.1 or later.