Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder Edges to Angular Displacement Readout

Hi NI! (This will be my first post.)

 

I have an encoder setup where I just want to read the leading edges of signal A (from an encoder. As the encoder is turned, I want to be able to find an angular displacement, which I believe there is already such a selection in LabView.

 

Modifing the example: Read Encoder. VI, I am still not able to get my edges to translate into a time-series of displacement...Any advice at all to give?

 

I'm using an onBoard clock on the cDAQ -9178 with a NI 9402 Digital I/O module.

 

Thank you!

Sam

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

Hi Sam, welcome to the forums!

I'd advise you to try building a task in NI MAX, to make sure your hardware configuration is correct first. You can do this following the guide I linked to below. Note: this guide is for creating an analog input task, so you'll follow the steps up till step 4 when they choose analog input as their data type. Instead you will choose..

Counter Input > Position > Angular Position.

Tasks in MAX: http://digital.ni.com/public.nsf/allkb/F28C6BD62B0ED68F86257A6B00733E0E

 

Additionally, look at this previous forum posts: https://forums.ni.com/t5/Counter-Timer/How-do-I-get-a-timestamp-for-each-daq-counter-measurement/td-...

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