LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incremental Quadrature encoder

Solved!
Go to solution

Hi,

 

I'm using incremental quadrature encoder.

 

I have run the measure angular position.vi inside the    Find examples> measure angular position.vi

 

However, I always get the angle between within 360 degrees.

 

How to get the degrees more than 360 degrees (Meaning if shaft turn more than a round)? I dont wish to see after 360 degrees, then it go back to 0 degress. 1 degree etc.

 

 

 

Can someone modify the measure angular position.vi to accomodate jumps from 360 to 0?

 

Thanks.

 

0 Kudos
Message 1 of 7
(4,254 Views)

Switch to the Linear instance instead of Angular to prevent the counter from rolling over.  You can pull down the selector under DAQmx Create Channel to change the instance.  If you are using the Z index, you will need to disable it, otherwise the counter will reset whenever you rotate past it.

0 Kudos
Message 2 of 7
(4,251 Views)

Dear Nathan,

 

Thanks for your reply.

Yes, I'm using Quadrature encoder A, B and Z in the measure angular position.vi

 

Can I just disable the z index in orfer to prvent the counter from rolling over?

If I change to linear instance instead of angular, what will happen? do you mean it will start from 0 degrees to 720 degrees if I make two turn?

At first I thought the linear instance is for the linear encoder? am i wrong?

 

 

Do you mean I have to do both things below(together) in order to prevent the counter reset to zero?

1)Switch to the Linear instance instead of Angular to prevent the counter from rolling over.  You can pull down the selector under DAQmx Create Channel to change the instance. 

2)If you are using the Z index, you will need to disable it,

0 Kudos
Message 3 of 7
(4,246 Views)

Am I right to say

if the quadrature encoder is use to measure the shaft rotational position(number of turns). So I still have to choose Angular instance in the DAQmx Create Channel...and disable the Z index ...in order to prevent the jump from 360 to zero (Counter reset to zero after 360 degrees)?

 

 

0 Kudos
Message 4 of 7
(4,242 Views)
Solution
Accepted by topic author JohnS11

Do you have the encoder in front of you?  Try it out.  Spend some time learning about counters and encoders.

 

You will not get any further help from me until you demonstrate that you are willing to follow proper forum etiquette.  DO NOT send personal messages.  Two months ago you sent me a personal message and I explained that you should instead post to the forum.  Yet you did exactly the same thing again today.  If I had noticed that you sent me a personal message before posting the identical question on the forum, I would not have replied at all.  Then, when you did not get an immediate reply later in the thread, you followed up with another personal message containing exactly the same content.  That is not the right way to get help here.

0 Kudos
Message 5 of 7
(4,225 Views)

You marked this solved, so I assume you figured out that the only differences between angular and linear encoder counting are that the angular encoder rolls over, and the scaling is different.  Many linear encoders are actually rotary encoders mounted on rotating shafts, like a screw.

 

I want to be clear that I'm not trying to discourage you from asking questions - exactly the opposite.  However, there's a good reason that you can't post a question on this forum without running a search first - it's quite likely that someone has already posted the same question.  By using a public forum, questions only need to be answered once (that's the idea, anyway) and multiple people can contribute, which of course does not happen over private messages.  If your question has already been asked, you get an immediate response - the answer is already there - instead of waiting for someone to reply.  There is no advantage to sending private messages, and there's nothing wrong with asking a good question (or even a bad one, occasionally) in public.  That way you contribute to someone else getting a quick answer to the same question later.

 

Also, from a purely practical point of view, the forum sends an email with the content of new posts in threads I follow, meaning I can simply look at the email and quickly determine if it's worth replying.  Private messages are a pain because it just sends an email saying "You have a new personal message" with no information about who sent it nor what it contains, so it's hard to deal with quickly.

0 Kudos
Message 6 of 7
(4,180 Views)

thanx and cheers!

0 Kudos
Message 7 of 7
(4,170 Views)