LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading encoder data

Solved!
Go to solution

Hi guys,

 

I want to acquire data from angular magnetic rotary sensor BROADCOM AEAT - 8800 which generates two increments A and B. Frequency of generation of such signals depend on how fast I rotate a wheel. Problem is, when I tried to read these increments with an oscilloscope everything was okay, but now I would like to read the same data via NI ELVIS and Labview.

 

So far, I would say that the main problem could be sampling frequency..

 

I attached my file. If anybody wants to take a look I would appreciate it or if somebody has any advice without looking at my VI.

0 Kudos
Message 1 of 8
(3,470 Views)

Hi fbara,

 


@fbara wrote:

So far, I would say that the main problem could be sampling frequency..

 

I attached my file. If anybody wants to take a look I would appreciate it or if somebody has any advice without looking at my VI.


You forgot to attach "your file"…

 

Suggestion: when th eNI-Elvis supports counters then you should use them to count your AB encoder signals…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,443 Views)
Solution
Accepted by topic author fbara

Here's a couple resources to get you started

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1riCAA&l=en-US 

 

https://forums.ni.com/t5/NI-ELVIS-II-and-myDAQ/Angular-Position-Measurement-with-a-Quadrature-Encode... 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 8
(3,431 Views)

Yes, I forgot. sorry about that. But thanks for advice.

 

I have moderated my VI and it is measuring something. Now, I will need to figure out what are these numbers..

0 Kudos
Message 4 of 8
(3,409 Views)

Thank you for information!

0 Kudos
Message 5 of 8
(3,408 Views)

Hi guys,

 

I attached my VI and yes, I have a small problem.

 

I have a wheel and inside that wheel is a BROADCOM AEAT - 8800 angular magnetic rotary sensor. I am trying to figure out how many pulses this sensor generates when I make one circle with the wheel. These are usual increments A and B and I only acquire increment A.

 

I made this VI to count edges, but the problem is it is also counting something when the wheel is standing still.

 

Maybe it is some kind of synchronization problem?

0 Kudos
Message 6 of 8
(3,387 Views)

@fbara wrote:

Hi guys,

 

I attached my VI and yes, I have a small problem.

 

I have a wheel and inside that wheel is a BROADCOM AEAT - 8800 angular magnetic rotary sensor. I am trying to figure out how many pulses this sensor generates when I make one circle with the wheel. These are usual increments A and B and I only acquire increment A.

 

I made this VI to count edges, but the problem is it is also counting something when the wheel is standing still.

 

Maybe it is some kind of synchronization problem?


 

 

 A quick skim of the BROADCOM AEAT - 8800 data sheet says:

 

Incremental output resolutions 32 to 4096 CPR (Counts Per Revolution)

 

What CPR have you configured it for?

 

Why do you only acquire increment A? I think you are trying to reinvent the wheel:

 

ABI
The ABI incremental interface is available to provide position data and direction data from the three output pins (A, B, and I).
The index signal marks the absolute angular position and typically occurs once per revolution

 

This would make is act the same as the optical encoders in the examples I linked to above. You will save yourself a lot of time and effort if you use this device the way it was designed to be used.

 

 

 

 

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 8
(3,317 Views)

I counted 1024 pulses when I make one circle with the wheel.

 

I solved it and thank you for your answer.

0 Kudos
Message 8 of 8
(3,311 Views)