This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use eCAP to measure the speed of a motor using Optical encoder in C2000 environment, using Matlab?

I am working in Matlab Environment and using Embedded Coder.

Optical encoder is used to measure the speed of induction motor. I do not intend to consider the direction of the motor so utilizing only one signal from encoder. I am using eCAP block from the TI blocksets to get the pulse duration of the encoder signal. My concern is what the output of the block "TS" will give me? Duration in counts or seconds or it is just the Timestamp (Count value from the start of capture module)?? Thanks in advance.