Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to measure angular velocity from Encoder by MyRio

Hi guys. I am a newbie in Labview 😞

I have a MyRio Board and a DC servo.

I want to measure angular velocity from Encoder. My Encoder has 448 pulses per once revolution.

I used Timer Interrupt to measure number of pulse in 25ms. But it was wrong.

Has anyone in here measured it? Can you tell me some ideals or solution for my problem or show my error in below VIs.?

thank a lot

 

timer interrupt VI

0.png 

 

Main VI

2.png

3.png

 

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

Hi xaxa,

 

Can you explain further what the problem is?  You said "but it was wrong", is the count wrong?  Is it throwing errors?  We can better help you if you can describe the exact problem that's occurring.

 

Thanks,

 

David B

National Instruments

Applications Engineer

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

sorry for my lack. according to datasheet of my motor, 8700 rpm is maximum velocity. But my VI display 15000rpm. I think it not working or wrong..
thank for reading 

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

hi 

how it going?

did you find the solution?

0 Kudos
Message 4 of 4
(2,622 Views)