Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Spindle motor control with labview

Thank you very much. Yes, I have already tried in the same way that you have mentioned. For single revolution, I can be able to get angular position. But the problem is that when motor rotates for second revolution, it again give 2000 to 0 or 0 to 2000. As, in fiirst revolution I get 0 to 2000, I want to count it from 2001 for the starting of the second revolution and similar to other revolution. From my thinking, I want to solve it in two way:

1. by making repeated value to continuous values (0...2000....4000... etc)

2. making counter say for example count 1 for the first (0 to 2000), 2 for the second revolution etc.

 

But, I can not make it in LV.

 

Could you please help me how I can do it?

 

Thank you once again for your co-operation.

 

Regards

 

Azim

0 Kudos
Message 11 of 12
(2,826 Views)

I suppose to make it continue counting up, you could keep track of some "z" which keeps track of how many times that "y" value rolls over.  To then represent the continuous values, you could display (z*2000 + y).

 

Here is a very barebones example of approximately the way to do this in LabVIEW.

 

rollover value.png

Note: The false case of the case structure simply has the value being passed through.  I apologize for any errors, I threw this together rather quickly.

 

The wire keeping track of the "# Rollovers" will be the count of how many revolutions you've had so far.

 

0 Kudos
Message 12 of 12
(2,811 Views)