02-05-2015 11:58 AM
Because DoneCallback has to adhere to the prototype
int32CVICALLBACK Callback (TaskHandletaskHandle, int32 status, void *callbackData)
the type of arguments are known.
02-05-2015 12:03 PM
pardon my ignorance., does it mean that DoneCallback() gets its arguments (taskHandle, status, and callbackData) from DAQmxRegisterDoneEvent() from its prototype declaration?
02-05-2015 12:09 PM
oh, I was hoping my explanations would have been better...
DoneCallback() gets two of its arguments (taskhandle and callbackData) from the arguments passed to DAQmxRegisterDoneEvent()
02-05-2015 12:15 PM
I see, and it gets the (status) argument too right?
02-05-2015 12:24 PM
The status parameter is generated by the DAQmx task and thus its value is also known when DoneCallback is called by DAQmxRegisterDoneEvent ().
02-05-2015 12:26 PM
and that is pass into DoneCallback?
02-05-2015 12:59 PM
I assume so (I don't know the internal design of the DAQmx driver)