On a Finnish forum I was asked to provide a minimal example of hooking
up a pyvcp jogwheel.
I came up with this:
http://www.anderswallin.net/2010/08/axis-with-pyvcp-jogwheel/

turns out that the pyvcp jogwheel outputs a float, which must be
converted to an s32 before hooking to axis.N.jog-count

The axis-selection is straightforward, the radiobutton output pins
connect directly to axis.N.jog-enable

How to do the jog-scale selection in this minimal example wasn't
directly obvious to me. One of the radiobutton outputs are true, and
should set the axis.N.jog-scale accordingly.
I came up with my own encoder comp which I called prienc4 but I am now
told it's not a priority encoder :)

Can this example be made simpler or better?

I should learn to use git... the joghweel could output both an s32 and
a float, and maybe the prienc4  can be named just enc4 and would be a
useful addition to emc2?


thanks,
Anders

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to