LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I handle a count overflow while running "end's" rotation drive in position control?

Hi Petric,

 

I do see the math but that does not help when I have more then one overflow, right?

Well, you have to make sure you NEVER miss such an overflow event. It would be a big problem if you would detect just every second overflow…

 

I got a big issue when the setpoint is jumping due to overflow! I have to handle that primarly.

Have your control loop work with arbitrary units.

Convert your measurement signal to arbitrary unit with handling overflows in this step.

Convert your control output to output signal handling overflows as well…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 12
(866 Views)

Petric wrote:

I do see the math but that does not help when I have more then one overflow, right?


Like I said, it only works if you are dealing with a differential control (ie I just neeed to move X counts to the left, do not care about where I actually am) or you have another variable keeping track of the number of overflows you have had.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 12
(847 Views)