‎11-15-2012 03:26 PM
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.
Solved! Go to Solution.
‎11-16-2012 11:27 AM
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.
‎11-19-2012 07:43 AM
I will try this and see if it will work for me. Thank you for the reply.
‎11-19-2012 08:37 AM
Use the Quotient & Remainder function on the Numeric palette. Divide by 360. The Remainder output will always be in the 0-359 range.
Lynn
‎11-19-2012 02:24 PM
This was the answer. Short sweet and it is working. I thank you for your input.
‎11-19-2012 03:37 PM
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.