I am developing a C application using imaq and flexmotion. I have programmed the motion controller to generate breakpoints along
a movement of a single axis using RTSI1.
I want to put the frame grabber (PCI-1422) in continuous "triggered" data acquisiton mode with rings and the RTSI1 line as the trigger.
When the breakpoint is set I want the camera to acquire a SINGLE frame into the ring buffer and execute a callback function when the buffer
has been transfered to memory and is ready for processing.
I have looked at the "triggered snap.c" function but it doesn't do continuous acquisition, it only snaps a single frame.
I have attempted the following but my callback function is only executed once.
...
...
...
imgSessionTriggerConfigure(Sid, IMG_EXT_RTSI1, IMG_TRIG_POLAR_ACTIVEH, 0xffffffff, IMG_TRIG_ACTION_BUFFER);
imgRingSetup (Sid, NUM_RING_BUFFERS, (void**)ImaqBuffers, 0, TRUE);
imgSessionWaitSignalAsync(Sid, IMG_BUF_COMPLETE, IMG_SIGNAL_STATE_HIGH, vidcb, this);
...
...
...
Any help would be greatly appreciated.
JD