I have been tasked to fix an old app that has recently been locking up. Problem is in loop where DAQ_Check() is called until *DAQ_Stopped becomes true (1). Loop ignores status return values of zero (0) and -10608 (NoTransferInProgressError). On NT4, WIN98 machines program has ran fine for years fine on newer machines with Windows XP (SP1&2), program loop locks up where -10608 is always returned and *DAQ_Stopped never becomes true (1). I'm thinking of just breaking loop when -10608 is returned and starting data read over. Is this reasonable? Should DAQ_Clear() be called or does the DAQ_Check() function do this internally? I have worked in data acquisition and control for 20+ years but have not worked much with NI. Have a short time to get up to speed. I have limited NI documentation and it is not really that helpful.
Thanks,