LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incremental Encoder - Angular Position

Solved!
Go to solution

Hello,

 

I have done a Programme that is measuring the Angular Position of the incremental Encoder, but the Programme only keeps decreasing as counter when i rotate the shaft of the encoder, so actuall I need to find a way to make sure my programme is working right or not ? is there anyway to test the Encoder if it is working correctly ?

 

Thanks in advance,

Ghaith

 

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

Hi Ghaith,

 

I need to find a way to make sure my programme is working right or not ?

Well, at first I would test the hardware…

 

is there anyway to test the Encoder if it is working correctly ?

Use a scope (or even a DMM) to test each encoder output.

 

Does your encoder also provide a Z output?

Did you do the wiring correctly?

Did you choose the correct PFI inputs?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(3,350 Views)

Hello GerdW,

Thanks for your answer, actually my Encoder is like this one in the Picture in attachment.

but i have no idea how to test this kind with DMM.

Yes, it provides a Z-Index output.

Yes, the wiring is conntect to IO Box and it's correct.

Yes, I checked the PIN configuration of my Device.

 

Thanks in advance,

Ghaith

 

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

Hi Ghaith,

 

i have no idea how to test this kind with DMM.

Supply power to your encoder. Then connect the DMM to one of its outputs. Then turn the encoder slowly and watch the encoder output. The AB outputs might still be too fast for a DMM (use a scope then), but the Z output will only pulse once per rotation…

 

Best regards,
GerdW


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

Some important information is missing here, what hardware are you using the read the encoder pulses? It looks strange to me that PFI0 and PFI9 are related to the same hardware counter.

 

Ben64

Message 5 of 8
(3,307 Views)

I am using the IO box which was specified in the PIN configurations that PFI0 is connected with channel A and PFI9 is connected with channel B.

 

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

What is an IO box? What is the NI part number?

 

Ben64

0 Kudos
Message 7 of 8
(3,294 Views)

Hello,

Well the IO box is just a tool from the company I am working in, but when I checked the PIN configuration of this device in the PIN display in NImax, it shows another PINs with channel A and channel B and that's because the device isn't compatible with the NImax.

Thanks for the tips.

 

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