06-24-2011 04:16 AM
Hy,
I am sampling 3 analog channel with an external sample clock from quadrature encoder (via a pulse per each falling and rising edge of the channel A and B). When I go over 50 Khz I have the Error 200019. How is it possible? I have a PCI6221 250KS/s. I have set 80k to the sample rate(80k*3<250k).Is it possible that the pulse wich go to the PFI line is too thin?basically is a pulse of 1 microsecond,indipendetly of the speed. Can i solve the problem if I enlarge the pulse?
thank u guys,is a bit urgent so...please help
06-27-2011 08:36 AM
Hello orsogna,
error 200019 usually occurs due to higher sample rate or due to lower buffer size.As you've already rightly said , 6221 has a max sample rate of 250kS/sec/all channels, so if you use 3 Analog Input Channels, the maximum rate you can achieve is 83.33 kS/sec for each channel. Also, an other thing you should consider is your buffer size. Even though the clock is external, the rate specified in the task configuration determines the buffer size and other task parameters. Below I am sending you a KnowledgeBase article that I found while searching for the occured error.Please let us know if this solved your problem!
http://digital.ni.com/public.nsf/websearch/A01AA72779C4604986257047007344EC?OpenDocument
Best regards