James Reed wrote: > I try to be an open minded person. SInce I don't understand pyVCP yet, and > I know a little about Qt3, I thought trying both would be a good learning > experience. I haven't heard much about what the 2 minutes with pyVCP would > entail, either. I think I have soemwhat of a grasp on HAL, but that is > because of the good documentation EMC has provided.
start by hooking up your encoders to HAL. Verify that everything is working by starting three halmeters and watching the signal from each encoder as you turn the axes. This is basically what you want, right? With pyVCP you can create a standalone display that displays the values of these hal pins, you don't need to manually start the halmeters and select the correct signals. The xml file would look something like this: <pyvcp> <number> <halpin>"axis1_dro"</halpin> </number> <number> <halpin>"axis2_dro"</halpin> </number> <number> <halpin>"axis3_dro"</halpin> </number> </pyvcp> with a recent HEAD checkout, try putting the above in a file myfile.xml and running 'pyvcp myfile.xml' That should create the display, and three halpins: pyvcp.axis1_dro, pyvcp.axis2_dro, pyvcp.axis3_dro verify that the hal pins exist with halcmd show, or halmeter then you need to hookup your encoder counts to the newly created pins, so something like this: bin/halcmd linkpp encoder1.out pyvcp.axis1_dro bin/halcmd linkpp encoder2.out pyvcp.axis2_dro bin/halcmd linkpp encoder3.out pyvcp.axis3_dro There are ways to automate all of this, so you can start the fully working dro from a shell file/desktop icon, but start by getting it to work 'manually'. hope this helps, AW ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users