LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ContGen-IntClk - DoneCallback

Solved!
Go to solution

Because DoneCallback has to adhere to the prototype

 

int32CVICALLBACK Callback (TaskHandletaskHandle, int32 status, void *callbackData)

 

the type of arguments are known.

0 Kudos
Message 11 of 17
(2,586 Views)

pardon my ignorance., does it mean that DoneCallback() gets its arguments (taskHandle, status, and callbackData)  from DAQmxRegisterDoneEvent() from its prototype declaration?

0 Kudos
Message 12 of 17
(2,584 Views)

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()

0 Kudos
Message 13 of 17
(2,582 Views)

I see, and it gets the (status) argument too right?

0 Kudos
Message 14 of 17
(2,580 Views)
Solution
Accepted by topic author hn_sofec

The status parameter is generated by the DAQmx task and thus its value is also known when DoneCallback is called by DAQmxRegisterDoneEvent ().

Message 15 of 17
(2,576 Views)

and that is pass into DoneCallback?

0 Kudos
Message 16 of 17
(2,573 Views)

I assume so (I don't know the internal design of the DAQmx driver)

0 Kudos
Message 17 of 17
(2,566 Views)