07-05-2011 09:27 AM
Hello
i had used PXI 6229 to detect pwm as input to bench and i used to go through example of semi-period and while i start to debugg the example i found error on the reading of the buffer
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateCISemiPeriodChan(taskHandle,chan,"",min,max,DAQmx_Val_Seconds,""));
DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandle,DAQmx_Val_FiniteSamps,samplesToRead));
DAQmxErrChk (DAQmxStartTask(taskHandle));
DAQmxErrChk (DAQmxReadCounterF64(taskHandle,samplesToRead,10.0,data,samplesToRead,&read,0));
when run the last line the error occures and say
"function "" return value=-200284 some or all of the samples requested have not yet been acquired"
thanks in advance
07-06-2011 10:18 AM - edited 07-06-2011 10:20 AM
my work is blocking due to this error...iam working at valeo and need this help AFSP
the example of semiperiod need to be tested on PXI 6229 because the error i had mentioned before appeared
thanks
07-06-2011 01:57 PM
Hello memoking,
Thanks for posting. The error you are seeing could be caused by several different factors. This KB explains many of them, but in your case, I will need more information to determine exactly what is causing the error.
What are the timing input parameters that you are using? What are the number of samples that you read and the timeout of the read?
What are the characteristics of the signal you are measuring?
Let me know, thanks!
Regards,
Joe S.
07-06-2011 01:59 PM
My mistake on the previous post. This was the link I meant to include. Apologies!