Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

I need example of MA3 12 bit Encoder (Miniature Absolute Magnetic Shaft Encoder) in LabVIEW envernment.

 

    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.   

0 Kudos
Message 1 of 11
(7,282 Views)

Do you have some kind of DAQ device to measure the pulse width?

0 Kudos
Message 2 of 11
(7,279 Views)

yes, I have myDAQ.

0 Kudos
Message 3 of 11
(7,269 Views)

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.

0 Kudos
Message 4 of 11
(7,265 Views)

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.   

0 Kudos
Message 5 of 11
(7,258 Views)

What are you having problems with, coding the formula or getting the pulse width(Ton,Toff) from the DAQ?

0 Kudos
Message 6 of 11
(7,250 Views)

There are extensive help files and examples installed with Labview.

0 Kudos
Message 7 of 11
(7,249 Views)

 

 

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.  

 

 

0 Kudos
Message 8 of 11
(7,240 Views)

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.

0 Kudos
Message 9 of 11
(7,234 Views)

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.

 

 

0 Kudos
Message 10 of 11
(7,224 Views)