01-29-2015 06:22 PM
Hello,
I am using a incremental encoder (1024 Counter Per Revolution) to measure the angular position of the shaft, and generate TTL signal when shaft is at certain degree. I am using USB 6211 DAQ, and LabView. I am using the Analog Input as external clock source with the setting of contiuous sampling at 10,000 Hz Sampling Rate, and 1 Sample to Read (i.e. Buffer size). At low rpm I am getting correct output but at high speed I am getting the error cited below.
Some or all of the samples requested have not yet been acquired. To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger, make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock. Property: RelativeTo Corresponding Value: Current Read Position Property: Offset Corresponding Value: 0 Task Name: _unnamedTask<55AB>
I wanted to know 1. How to choose buffer size?, and 2. possible cause of the error.
01-29-2015 07:27 PM
01-30-2015 06:54 AM
I use analog input as an external clock for continuous sampling via digital counter. I hope that states my problem clearly.
01-30-2015 09:58 AM
Could you go in to more detail as to how you are generating this external clock?
01-30-2015 10:03 AM
So the picture below shows how I am adding external clock.
01-30-2015 10:34 AM
How are you generating the clock signal itself?
01-30-2015 11:04 AM
I dont have any clock signal generator attached at all. I thought NI uses the DAQ board clock to generate clock.
01-31-2015 05:58 PM
I always like to go through the following link to set up an encoder.
http://www.ni.com/getting-started/set-up-hardware/data-acquisition/quadrature-encoders
As far as the error is concerned, this part of the error message seems the most relevant. From your last post it sounds like you are not supplying an external clock.
It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.
02-02-2015 06:58 AM
I think Matt's link is a good starting point. I'd try using a counter as detailed there.
02-02-2015 08:07 AM - edited 02-02-2015 08:14 AM
Hello, I follow the same procedure as outlined in that link and this video (https://www.youtube.com/watch?v=YGRKAxjYDes). So here is the problem in detail. What I am trying to do is to generate a TTL signal whenever the encoder reaches 0,90,180, and 270 degree.
Here is the snapshot of my VI, and what I am trying to do. I can run the VI at Continuous Sampling setting (buffer size of 1, and sampling rate of 12000 Hz) if I am only displaying the angle, but when I want to trigger the camera it gives me the error 200279.