Hello!
I'm looking for an example in ANSI-C to the following problem. Let me try to explain the background:
I have connect a stepping motor at ctr1 and use to run it the function:
DAQmxCreateCOPulseChanFreq (*taskHandle, "Dev2/ctr1", "", DAQmx_Val_Hz, DAQmx_Val_Low, 0.0,(float64) freq, 0.5));
DAQmxCfgImplicitTiming (*taskHandle, DAQmx_Val_ContSamps ,1000);
So this works fine but now I want to get the sample number when the
task is going to stop (how many samples were created since start). This value is important for further functions. I spent a lot of time on this and I don't really know how to fit the problem. Do I need to use the Event method which the card is providing? If yes, can anyone post a simple example. I've already looked at the NI-Examples but no one has match my problem.
I'm thankfull for any kind of answer.
Best regards
Oliver