Thanks for the reply. If I understand you correctly, the
imgSessionWaitSignalAsync2() function does maintain a list of
registered callback functions, so while hooking multiple event handlers
is not recommended, it is possible? And that if I pass in a NULL
callback pointer, being the top of the list, there is the possibility
that this might shut-down the callback chain?
Since you advised calling imgClose(sessionID), I was wondering if you
could point me to more documentation on the use of sessions and
interfaces, specifically:
1) When should you open/close a session? For each acquisition?
2) [as posted in another thread] Can you have more than one session open at a time?
3) If you can have more than one session open, I understand if you
cannot acquire from both sessions at once, but can you send serial commands in one session, and acquire using another session?
4) If can you open more than one session, but as another poster noted
you get the same sessionID returned, can you still access the session
after an imgClose(sessionID)? Put another way, if I called
imgSeesionOpen() twice, and then called imgClose(sessionID) once, is
the session still valid/open?
5) [as posted in another thread] After you call imgConfigureSession(),
it appears that the ROI and ACQ_WINDOW attributes are locked. Other
than calling imgClose, is there another way to unlock the
ROI/ACQ_WINDOW? I've tried, for instance, an undocumented function
"imgMemUnlock" and it appears to work. Is the locking effect of
imgConfigureSession() merely due to the presence of a imgMemLock() call?
6) After a call to imgSessionAcquire() and acquisition is done, i.e.
IMG_AQ_DONE is asserted, to re-acquire another set of images using the
same session requires yet another call to imgConfigureSession()? Why?
7) Can you re-use buffer lists between two open sessions?
Thanks.
--
[System info: NI-1429e running in 'Base' CL-mode plugged into an x4 PCI-e slot on a Dell PowerEdge 1800, dual 3.2Ghz Xenon, 6GB RAM, Windows 2003 Server SP1, LV8.0/7.1, IMAQ v3.5, Dell CERC SATA RAID controller card with 4x250GB Seagate HDD, one Seagate 250GB HDD connected to system's primary SATA port for OS.]