dro widget ?

More
17 Dec 2011 10:57 #15767 by cncbasher
dro widget ? was created by cncbasher
i'm building a panel in glade , i'm looking for a dro style display widget , anyone know of one

the idea is to be able to zero this dro and link to handwheel encoder and show independantly the distance moved by handwheel

Please Log in or Create an account to join the conversation.

More
17 Dec 2011 11:25 #15769 by mhaberler
Replied by mhaberler on topic Re:dro widget ?
I dont think a complete DRO widget exists, but you could roll your own

I'd start with a Box and add labels for the axes, and maybe for homing status
add corresponding HAL pins and add value-changed triggers for them
you'd connect those to the right motion and halui pins
in the callback you'd update the label widgets, and maybe do any offset/unit scaling
you'd keep an internal offset which starts out at zero, and which is substracted from the axis values before display; on pressing the 'zero' button you'd set it to the current positon

-Michael

Please Log in or Create an account to join the conversation.

Moderators: mhaberlerHansU
Time to create page: 0.654 seconds
Powered by Kunena Forum