ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(3,094 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
(3,092 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
(3,090 Views)

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

0 Kudos
Message 14 of 17
(3,088 Views)
Solution
Accepted by 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
(3,084 Views)

and that is pass into DoneCallback?

0 Kudos
Message 16 of 17
(3,081 Views)

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

0 Kudos
Message 17 of 17
(3,074 Views)