09-16-2013 07:40 AM
Thanks -Erik S
I have 2 encoders and I want to read them by NI 6220 this error appear when I use one or more encoders
I tried to change sample rate but the same error appear .
Regards,
Alaa Khalifa
09-17-2013 04:42 PM
What range of sample rates did you try? Also, how are you currently sending the data to the computer?
-Erik S
09-18-2013 02:49 AM
Dear -Erik S,
what do you mean by " how are you currently sending the data to the computer?"
I tried sampling rate of 1 10 100 1000 1000000 1000000000 and this give the same error
Regards,
Alaa Khalifa
09-19-2013 02:45 PM
I apologize for being vague. I meant what kind of data transfer mechanism are you using? The error states that DMA or USB bulk may be better options. Here is a link that explains the differences between all of the data transfer mechanisms:
http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/datatrans/
Also, can you post your code so that I can take a look at how the DAQ assistant is set up?
-Erik S
10-22-2013 07:22 AM
Dear all,
I have problem in my project.
I need to read quadrature encoder to make PID position controller on a motor .( I use NI pcie 6323 card)
I use c language and the code in the attached file .
when I run the program the following error appear after little time.
Error -201314 occurred at DAQ Assistant
Possible Reason(s):
Multiple Sample Clock pulses were detected within one period of the input signal.
Use a Sample Clock rate that is slower than the input signal. If you are using
an external Sample Clock, ensure that clock signal is within the jitter and
voltage level specifications and without glitches.
property: RelativeTo
Requested Value: Current Read Position
Property: Offset
Requested Value: 0
Best Regards,
Alaa Khalifa.
10-22-2013 10:39 AM - edited 10-22-2013 10:41 AM
I think you might be misunderstanding the purpose of the sample clock (from your PDF, you have it set to the same input as your encoder input). You either 1) don't need the sample clock at all or 2) should be using a fixed rate clock (probably generated by another counter on the DAQ device) if you need to sample at regular intervals.
You're getting the error since the clock signal (your encoder A input) is noisy (which is typical for a signal coming from a quadrature encoder). If you really needed to sample off of this signal you would need to configure a digital filter for sample clock input (but I don't believe this is what you really need to be doing anyway).
Best Regards,
10-22-2013 04:02 PM
Thank you very much John_p1
I don't need the sample clock at all.
I try it and worked well.
Could you tell me about function to generate number of pulses (control signal) instead of make it by my hand
and consume time for waiting in writing pulses.
Thank you
Best Regards,
Alaa Khalifa.