On Fri, 2008-06-27 at 08:48 -0400, John Kasunich wrote: > Eduardo Bonci Cavalca wrote: > > Hi, > > > > I´m trying to use a joypad in my project, but i can´t do any hal > > connection. After a "loadusr hal_joystick ...", when a i try use a button or > > a axis, the emc say that don´t exist such thing in object joystick.0. Some > > one have used a joypad and can send me the hal file? > > > > Thanks > > > > Eduardo > > Whenever the problem is "I don't know the proper name for some HAL pin", > the solution is "use 'halcmd show pin' to list all the pins". HAL was > designed to allow interactive development, and halcmd is the tool to > interact with it. > > If EMC will start, you can simply open another shell window, and type > "halcmd -kf" to get a hal prompt. Then type "show pin" to list all > pins. If you already know the prefix you can shorten the list: "show > pin foo" will list only pins that start with 'foo'. When you are done > with that hal prompt, type "quit". > > If EMC won't start because your .hal file attempts to connect to a > non-existent pin, you have two choices: > > 1) You can comment out the offending line in your .hal file so EMC will > start, then use the method above. To comment out a line, put '#' in > front of it. > > 2) You can insert a "show pin" line right in your HAL file. The > resulting list will appear in the shell window where you started EMC. > If you start EMC from an icon, then you won't see the list. DON'T DO > THAT! Icons are fine once your system is properly set up. But when > you are testing, you should start EMC from the command line. That way > you can see any messages that it prints. > > Regards, > > John Kasunich
For those folk inclined to click rather than type, halshow will also let people see and test these things. I believe that it is available in the menu of the big three user interfaces but one might have to search about a bit because it is not considered a "tool." Rayh ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
