I tried this. The 2 minutes turned into about 16 hours, but I tried it. I still have a lot to learn.

The trouble with using this is it creates 3 tiny numbers in a tiny box. And it only reads to a tenth of an inch. I have learned a lot (I think) from this, but it has some major drawbacks.


From: Anders Wallin <[EMAIL PROTECTED]>
Reply-To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Subject: [Emc-users] DRO with pyvcp (was: Re:  Qt3 lib and dro)
Date: Thu, 04 Jan 2007 12:59:51 +0200
MIME-Version: 1.0
Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by bay0-mc8-f8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 4 Jan 2007 02:59:43 -0800 Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 2E3BAFDE7; Thu, 4 Jan 2007 02:59:43 -0800 (PST) Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43)id 1H2QJx-0006wJ-Vpfor emc-users@lists.sourceforge.net; Thu, 04 Jan 2007 02:59:42 -0800 Received: from sender-01.it.helsinki.fi ([128.214.205.139])by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256)(Exim 4.44) id 1H2QJw-0005Aw-DZfor emc-users@lists.sourceforge.net; Thu, 04 Jan 2007 02:59:42 -0800 Received: from [128.214.3.229] (el-laser.physics.helsinki.fi [128.214.3.229])(authenticated bits=0)by sender-01.it.helsinki.fi (8.13.8/8.13.8) with ESMTP idl04Axb63004572(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)for <emc-users@lists.sourceforge.net>; Thu, 4 Jan 2007 12:59:37 +0200
X-Message-Info: LsUYwwHHNt3L647+x2wsPhGnGhF5gzAUYje0B/cm7co=
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
References: <[EMAIL PROTECTED]>
X-Spam-Score: 0.0 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems tohttp://sf.net/tracker/?func=add&group_id=1&atid=200001
X-BeenThere: emc-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: "Enhanced Machine Controller (EMC)"<emc-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/emc-users>,<mailto:[EMAIL PROTECTED]> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=emc-users>
List-Post: <mailto:emc-users@lists.sourceforge.net>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/emc-users>,<mailto:[EMAIL PROTECTED]>
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Jan 2007 10:59:43.0723 (UTC) FILETIME=[70AA0BB0:01C72FEF]

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

_________________________________________________________________
Type your favorite song.  Get a customized station.  Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001


-------------------------------------------------------------------------
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

Reply via email to