Sebastian Kuzminsky wrote: > > I suggest starting with GPIO instead of the encoders, just to verify the > 7i43 and HAL functioning before adding more hardware to the mix. > > If you have a 50-pin break-out board like > <http://www.winfordeng.com/products/brk2x25.php> or > <http://www.daqstuff.com/50_pin_breakout_500013.htm> or comparable, > connect that to P4 or P3. If you don't have a break-out board you can > do the test with just a ribbon cable, but you have to be more careful to > count the pins correctly. > > Load the hm2_7i43 driver with all functions turned off (by saying > config="num_encoders=0 num_stepgens=0 num_pwmgens=0"). All the pins > become GPIOs, which default to inputs with pullup resistors. Run an > instance of halmeter, watching one particular GPIO input. It should > start out 1/High/True. Then grab a wire and put one end on a ground pin > (any even-numbered pin on the 50-pin connector), and touch it to the > GPIO input you're watching. You should instantly see it go to > 0/Low/False in the halmeter window. >
I noticed that Seb didn't mention anything about creating a realtime thread, adding the appropriate driver functions to it, and starting realtime execution. We tend to take those steps for granted, but they are important. Regards, John Kasunich ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
