LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous read from an encoder

Hi,

 

I have started to use one of the NI examples to acquire samples from a angular encoder. To do this I use an NI 9401 in an NI 9188XT chassis. The plan is to read the samples continuously, but I am facing some difficulties, as it seems I can't configure the sample clock VI properly as my read VI times out without reading any samples. I know for sure that my encoder works and I also know that the wiring is correct as if I remove the sample clock VI then I can read the encoder. But then my acquisition becomes software timed which wont work for me as later I need to sync my encoder readings with AI channels.

 

This is the VI I wrote:

Counter_snip.png

 

I have found an example to sync analog and counter readings (http://forums.ni.com/ni/attachments/ni/170/278826/1/SyncEncoderwithAI.JPG) but if I do the same my VI drops an error message like:   

Specified property is not supported by the device or is not applicable to the task.

Property: Start.DigEdge.Src

 

Please help me out with your thoughts.

thanks.

0 Kudos
Message 1 of 2
(3,238 Views)

Hi 1984,

 

Here is a community example that I found that might be of some help: https://decibel.ni.com/content/docs/DOC-10785

 

If it's not could you post the full error message and the function where this is occuring?

 

------------------------

Aaron F.

Applications Engineering

0 Kudos
Message 2 of 2
(3,192 Views)