On Sun, Mar 04, 2012 at 03:09:20PM +0200, Viesturs Lācis wrote: > 2012/3/4 Andrew <[email protected]>: > > Hello, > > > > I have two encoders on one axis, and I'd like to see the difference between > > their readings with hal scope. The first encoder is on the motor, it's > > 'axis.0.motor-pos-fb', and the second linear encoder is connected to > > 'axis.1.motor-pos-fb' (just for some tests, not a working config). > > I'm not much familiar with HAL... how do I get the > > difference 'axis.0.motor-pos-fb' - 'axis.1.motor-pos-fb' on the scope? > > > > You can use "scale" module to multiply the second pin by -1 and then > sum both of them in "sum2" component and then You can watch the > sum2.0.out pin in HAL Scope
Actually you can dispense with 'scale'; 'sum2' has gain0/1 pins that can scale the in0/1 pins. Jeff ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
