LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RPM to Position

Hello,

 

I'm still having this problem and I was wondering if anyone has a solution for me.

 

I have a shaft rotating at about 600 RPM.  I have an analog signal that jumps to 5 volts whenever 1 revolution has passed.  I do not have a digital encoder setup for this. 

 

I would like to be able to measure the position of the shaft in real time.  Does anyone have a solution?  I have attached my VI.  In the bottom right hand corner i tried to start a for loop that will count time, but it's not working out for me.

 

Thanks

 

0 Kudos
Message 1 of 22
(2,532 Views)

@kramerfrog wrote:

I have an analog signal that jumps to 5 volts whenever 1 revolution has passed. 

 

I would like to be able to measure the position of the shaft in real time.   


You can't "measure" the position of the shaft, you just count rotations on each 5V pulse that comes in.

At 600rpm, one rotation is done in 100msec.

What position accuracy did you expect?

Do you expect to run your LV application at 10ms basis to have an estimated 1/10 turn accuracy?

 

I can't open your VI since I'm using LV 8.6

0 Kudos
Message 2 of 22
(2,528 Views)

I'm already counting rotations.

 

I think i should be able to measure the position of the shaft based on previous data.  If i could get a timer to work properly then i could find the real time.

 

attached is the vi in 8.6

0 Kudos
Message 3 of 22
(2,525 Views)

i need to have it as accurate as possible - 1 degree would be amazing.

0 Kudos
Message 4 of 22
(2,524 Views)

@kramerfrog wrote:

i need to have it as accurate as possible - 1 degree would be amazing.


Smiley Surprised

Did you made the math???

 

600rpm = 1 turn in 100msec

360° = 100msec

1° = 0.278 msec Smiley Mad

 

Do you expect your PC to run at that interval Smiley Very Happy

0 Kudos
Message 5 of 22
(2,521 Views)

is that a problem?

0 Kudos
Message 6 of 22
(2,518 Views)

@kramerfrog wrote:

is that a problem?


Like Rachel onces said in "Blade Runner" Of course it is!

0 Kudos
Message 7 of 22
(2,515 Views)

okay, minus that issue - what about the VI. is it possible to measure the position? There are digital encoders that do this..why can't i do it with an analog device?

0 Kudos
Message 8 of 22
(2,512 Views)

labview can sample things at 100khz...i don''t think this should be a problem.  Also the file i posted, the simulated signal i think should be changed to 10000 HZ at 3000 samples.

0 Kudos
Message 9 of 22
(2,509 Views)

and the signal should be 8.34 hz. - i uploaded the correct file here again.

 

 

0 Kudos
Message 10 of 22
(2,507 Views)