> > sudo halcompile --install mux2s32.comp > worked a treat. Is there a man page?
Excellent, I'm glad it worked. Here is the man page for the HAL comp generator: http://linuxcnc.org/docs/html/hal/comp.html I just modified the code for the mux2, simply changed any instance of float to s32. It is not very picky about types, I have found you can make a HAL comp to convert float to s32 as simply as this: pin in float in; pin out s32 out; function _; ;; FUNCTION(_) { out = in } I though there was no way it would work, but it did. I hear C is much less picky about types than Python though. *seen on a t-shirt at Walmart: "I'll go to work when my coffee does." :) I'll have to remember that one! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users