11-14-2011 09:05 PM
I have MA3 12 bit Encoder (Miniature Absolute Magnetic Shaft Encoder)
I desperately need any example of this kind of encoder. I'm truing to fine example for many weeks. I found many example for different kinds of encoder. However I have not fine any example for Absolute Magnetic Encoder.
In the Data sheet of the encoder, there is an equation which I don't know how to write it in LabVIEW. See the equation for the encoder 12 bit
x = ((ton * 4098) / (t on+ t off)) -1
If x <= 4094, then Position = x
If x = 4096, then Position = 4095
see the Data sheet
http://www.usdigital.com/assets/general/101_ma3_datasheet_1.pdf
Please help by writing simple example of this encoder.
11-15-2011 05:45 AM
Do you have some kind of DAQ device to measure the pulse width?
11-15-2011 07:40 PM
yes, I have myDAQ.
11-15-2011 09:29 PM
There are a few ways to do this, but I would use a formula node to get x, then a case statement to get position.
11-16-2011 09:31 PM
Thanks for this idea. However I do not know where to start. I've spent days and nights trying to fine ways to read this but I couldn't. I I'm kind of new in LabVIEW environment . It might be good idea if you make a simple example of this encoder. I will be so grateful.
11-17-2011 04:20 AM
What are you having problems with, coding the formula or getting the pulse width(Ton,Toff) from the DAQ?
11-17-2011 04:21 AM
There are extensive help files and examples installed with Labview.
11-17-2011 04:36 PM
I've got a example but it does not work properly. it doe nor read properly. I think there is a problem in the way that the encoder's formula is implmented in LabView.
This is its formula in the data sheet
MA3 12 bit Encoder (Miniature Absolute Magnetic Shaft Encoder)
x = ((ton * 4098) / (t on+ t off)) -1
If x <= 4094, then Position = x
If x = 4096, then Position = 4095
Can any one find what causes the problem or correct it then attach the file this website. Please.
11-17-2011 08:59 PM - edited 11-17-2011 09:00 PM
That formula leaves a lot to be desired. I modified it to what I think it should be. I can't open any of your VI's, since the newest LV version I have is 8.5. Here is a VI that gives you a reading. This give the correct answer based on their app note examples.
11-18-2011 11:18 AM
Thank you very much for this effort. The formula you wrote is better than the one I have. I test it but unfortunately the encoder still does not work.
I do not know why!
Is it because of a problem in the formula or in reading Duty Cycle and Frequency?
I do not know.