I guess my question was not clear. I understand the return values when my code calls DAQmx functions. The return value constants are in the header file.
What I do not understand, which is not described in the C api help file, is what does DAQmx do with the return code from my event function?
If I write a function and register it with DAQmxRegisterEveryNSamplesEvent like this:
DAQmxRegisterEveryNSamplesEvent(..., MyFunction, ...)
int32 MyFunction(...)
{
// do stuff here
if (ok)
return 0;
else
return -1;
}
When the DAQmx thread calls my function and I return a value, what does DAQmx do with the return value? If I return -1 instead of 0 does DAQmx behave differently? If so, how?