LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to limit the output of a multi-turn encoder to match a single turn?

Solved!
Go to solution

I am using a Heidenhain encoder with a Heidenhain EIB 741. The 741 takes the EnDat signals and converts them. I am using a LabView program from Heidenhain called Poll Positions. The outputs of the encoder are both Incremental and Absolute. The outputs keep counting after one revolution and I would like to return to 0. The program is using a 1 d array with quad 64 bit integer for the absolute value and a 1-d array of value 16 bit for the incremental values. I am trying to convert these to degrees. I have accomplished this except when it reaches 360 the count does not return to 0. Is there a way to make the position count return to 0 after the Bit count is complete?  Or is there a way to make the degrees return to 0? The degrees was output by taking the (Position/((2^26)/360)) which is Position/186413.51.

This is my first big LabView project I hope this is enough information.

0 Kudos
Message 1 of 6
(3,039 Views)

Hi msmith,

 

You could try using a property node in a case structure to change the value. For instance, when the "360" case is activated, the property node inside the case sets the value of degrees back to 0.

0 Kudos
Message 2 of 6
(3,016 Views)

I will try this and see if it will work for me. Thank you for the reply.

0 Kudos
Message 3 of 6
(2,991 Views)
Solution
Accepted by topic author msmith1955

Use the Quotient & Remainder function on the Numeric palette.  Divide by 360.  The Remainder output will always be in the 0-359 range.

 

Lynn

Message 4 of 6
(2,986 Views)

This was the answer. Short sweet and it is working. I thank you for your input.

0 Kudos
Message 5 of 6
(2,972 Views)

Then mark Lynn's message as the solution to your question rather than your own thank you message.  You will need to first go to the options menu to the upper right of your message and select Unmark as Solution.

0 Kudos
Message 6 of 6
(2,964 Views)