Re: [Emc-users] parallel port initializing

2007-01-03 Thread jmkasunich
"James Reed" <[EMAIL PROTECTED]> wrote: 

> I got Hal running as just the input for encoders. It needed the
> write to the port.

Glad to hear that.  Last night I modified the parport driver so
that the port direction is set as soon as you load the driver.
(No need to run "parport.N.write" unless you are actually using
the port for outputs.)

The fix is in CVS HEAD, and will also be part of the 2.1 release.

Thanks for calling the bug to my attention.

Regards,

John Kasunich

-
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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread Ray Henry

There is a way around it if we find that Paul successfully raises the
proprietary flag with the work that I encouraged him to do with qt3.

Smithy Company has purchased a written from scratch version of a QT4 EMC
library that will be LGPL copyright.  This should be available before
long.

Rayh


On Wed, 2007-01-03 at 11:20 -0500, Stephen Wille Padnos wrote:
> paul_c wrote:
> 
> >On Wednesday 03 January 2007 02:17, Stephen Wille Padnos wrote:
> >  
> >
> >>There was a little bit of work done on a Qt<->NML interface a couple of
> >>years ago.  It never went too far, but strangely enough, the "demo app"
> >>is a DRO :)
> >>
> >>
> >The core code is being used in a couple of applications.
> >  
> >
> Interesting.  Can you name them?  (or is it a secret)
> 
> >>I'll dig it up and either stick it on the wiki or I can email it (or
> >>even check it into CVS somewhere).
> >>
> >>
> >You will of course check with the original author and ascertain that you 
> >have 
> >permission to release the code in to the public domain before 
> >posting/committing/emailing ?
> >  
> >
> Of course.  I intend to check the source for an appropriate license, and 
> check with the author if none exists. Is that acceptable?
> 
> - Steve
> 
> 
> -
> 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
> 


-
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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread Stephen Wille Padnos
paul_c wrote:

>On Wednesday 03 January 2007 02:17, Stephen Wille Padnos wrote:
>  
>
>>There was a little bit of work done on a Qt<->NML interface a couple of
>>years ago.  It never went too far, but strangely enough, the "demo app"
>>is a DRO :)
>>
>>
>The core code is being used in a couple of applications.
>  
>
Interesting.  Can you name them?  (or is it a secret)

>>I'll dig it up and either stick it on the wiki or I can email it (or
>>even check it into CVS somewhere).
>>
>>
>You will of course check with the original author and ascertain that you have 
>permission to release the code in to the public domain before 
>posting/committing/emailing ?
>  
>
Of course.  I intend to check the source for an appropriate license, and 
check with the author if none exists. Is that acceptable?

- Steve


-
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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread paul_c
On Wednesday 03 January 2007 02:17, Stephen Wille Padnos wrote:
> There was a little bit of work done on a Qt<->NML interface a couple of
> years ago.  It never went too far, but strangely enough, the "demo app"
> is a DRO :)

The core code is being used in a couple of applications.

> I'll dig it up and either stick it on the wiki or I can email it (or
> even check it into CVS somewhere).

You will of course check with the original author and ascertain that you have 
permission to release the code in to the public domain before 
posting/committing/emailing ?


Regards, Paul.


-
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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread Anders Wallin
> currently pyvcp runs when AXIS is run, but the modifications to make it 
> run standalone with a use-specified input file are small. I (or someone 
> else) just have to modify the parser to take an optional input argument, 
> and create a root window when AXIS does not do that.

this brings up another thought.

currently when running pyvcp under AXIS, the pyvcp pins are created with 
names like axisui.

presumably, when running pyvcp standalone, pins are named pyvcp.

I think it would be desirable to have them named identically in both 
cases. That way a user can rapidly test and refine the widget layout/HAL 
connections in standalone mode, and then "dock" the panel into AXIS 
without having to modify the HAL script.
Jeff, Chris: is this doable?

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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread James Reed
I had someone mention this a while ago.  I tried to find it to understand 
what was being mentioned, but either was looking for the wrong thing, or 
didn't understand what was being said.  I'll try to look into it some more.


The only reason I mentioned Qt is I already on the learning curve on it.  
It's an old saying I once learned.  To a person who's only tool is a hammer, 
every problem has a nail head.




From: Anders Wallin <[EMAIL PROTECTED]>
Reply-To: "Enhanced Machine Controller (EMC)" 


To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] parallel port initializing
Date: Wed, 03 Jan 2007 10:25:36 +0200
MIME-Version: 1.0
Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by 
bay0-mc5-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed, 3 
Jan 2007 00:25:48 -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 D991CF68F; Wed,  3 Jan 
2007 00:25:47 -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 1H21RR-00067S-TMfor 
emc-users@lists.sourceforge.net; Wed, 03 Jan 2007 00:25:46 -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 
1H21RQ-0001Fk-9Wfor emc-users@lists.sourceforge.net; Wed, 03 Jan 2007 
00:25:45 -0800
Received: from [192.168.1.103] (cs181221219.pp.htv.fi 
[82.181.221.219])(authenticated bits=0)by sender-01.it.helsinki.fi 
(8.13.8/8.13.8) with ESMTP idl038PaEQ024732(version=TLSv1/SSLv3 
cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)for 
; Wed, 3 Jan 2007 10:25:36 +0200

X-Message-Info: LsUYwwHHNt3NB40NHUpWK8+iIBzaJIigwjq+Hw/hNek=
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=21

X-BeenThere: emc-users@lists.sourceforge.net
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: "Enhanced Machine Controller 
(EMC)"
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: 03 Jan 2007 08:25:48.0331 (UTC) 
FILETIME=[C5874FB0:01C72F10]


James Reed wrote:
> I got Hal running as just the input for encoders.  It needed the write 
to

> the port.  The command 'loadrt hal_parport cfg="0x378_in"' seems to be
> legal.  I've been running 1 encoder through it for a few hours.  Now I 
need

> to talk about how to link it to something like QT3.

James, you might have noticed a recent development called pyVCP:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?PyVCP

I assume your encoder counts or machine position are now HAL_FLOAT
signals? If you want a HAL_FLOAT displayed on-screen without running emc
you don't have to reinvent the wheel with QT3, you can do it very easily
and quickly with pyvcp.

currently pyvcp runs when AXIS is run, but the modifications to make it
run standalone with a use-specified input file are small. I (or someone
else) just have to modify the parser to take an optional input argument,
and create a root window when AXIS does not do that.

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


_
Find sales, coupons, and free shipping, all in one place!  MSN Shopping 
Sales & Deals 
http://shopping.msn.com/content/shp/?ctid=198,ptnrid=176,ptnrdata=200639



-
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


Re: [Emc-users] parallel port initializing

2007-01-03 Thread Anders Wallin
James Reed wrote:
> I got Hal running as just the input for encoders.  It needed the write to 
> the port.  The command 'loadrt hal_parport cfg="0x378_in"' seems to be 
> legal.  I've been running 1 encoder through it for a few hours.  Now I need 
> to talk about how to link it to something like QT3.

James, you might have noticed a recent development called pyVCP:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?PyVCP

I assume your encoder counts or machine position are now HAL_FLOAT 
signals? If you want a HAL_FLOAT displayed on-screen without running emc 
you don't have to reinvent the wheel with QT3, you can do it very easily 
and quickly with pyvcp.

currently pyvcp runs when AXIS is run, but the modifications to make it 
run standalone with a use-specified input file are small. I (or someone 
else) just have to modify the parser to take an optional input argument, 
and create a root window when AXIS does not do that.

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


Re: [Emc-users] parallel port initializing

2007-01-02 Thread Stephen Wille Padnos
Well, if you must have Qt, then I think I can help you :)

There was a little bit of work done on a Qt<->NML interface a couple of 
years ago.  It never went too far, but strangely enough, the "demo app" 
is a DRO :)

I'll dig it up and either stick it on the wiki or I can email it (or 
even check it into CVS somewhere).

- Steve

James Reed wrote:

>I got Hal running as just the input for encoders.  It needed the write to 
>the port.  The command 'loadrt hal_parport cfg="0x378_in"' seems to be 
>legal.  I've been running 1 encoder through it for a few hours.  Now I need 
>to talk about how to link it to something like QT3.
>
>You guys are great!  Thanks for the help.
>  
>


-
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


Re: [Emc-users] parallel port initializing

2007-01-02 Thread James Reed
I got Hal running as just the input for encoders.  It needed the write to 
the port.  The command 'loadrt hal_parport cfg="0x378_in"' seems to be 
legal.  I've been running 1 encoder through it for a few hours.  Now I need 
to talk about how to link it to something like QT3.

You guys are great!  Thanks for the help.


>From: [EMAIL PROTECTED]
>Reply-To: "Enhanced Machine Controller (EMC)" 
>
>To: "Enhanced Machine Controller (EMC)" 
>Subject: Re: [Emc-users] parallel port initializing
>Date: Tue, 02 Jan 2007 21:34:33 +
>MIME-Version: 1.0
>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by 
>bay0-mc4-f15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 2 
>Jan 2007 13:34:46 -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 16548125B0; Tue,  2 Jan 
>2007 13:34:46 -0800 (PST)
>Received: from sc8-sf-mx2-b.sourceforge.net 
>([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list1-new.sourceforge.net 
>with esmtp (Exim 4.43)id 1H1rHO-0002cg-Vwfor 
>emc-users@lists.sourceforge.net; Tue, 02 Jan 2007 13:34:43 -0800
>Received: from mtiwmhc11.worldnet.att.net ([204.127.131.115])by 
>mail.sourceforge.net with esmtp (Exim 4.44) id 1H1rHN-0002J3-HFfor 
>emc-users@lists.sourceforge.net; Tue, 02 Jan 2007 13:34:42 -0800
>Received: from mwebmail37.att.net ([204.127.135.76])by worldnet.att.net 
>(mtiwmhc11) with SMTPid <200701022134341110092elge>; Tue, 2 Jan 2007 
>21:34:35 +
>Received: from [63.161.86.254] by mwebmail37.att.net;Tue, 02 Jan 2007 
>21:34:33 +
>X-Message-Info: LsUYwwHHNt2TeQAX1knWS+5uyVW/gRQ1759da/BRbAc=
>X-Mailer: AT&T Message Center Version 1 (Jul 31 2006)
>X-Authenticated-Sender: am1rYXN1bmljaEBhdHQubmV0
>X-Spam-Score: 0.2 (/)
>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=210.2 NO_REAL_NAME
>From: does not include a real name
>X-BeenThere: emc-users@lists.sourceforge.net
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: "Enhanced Machine Controller 
>(EMC)"
>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: 02 Jan 2007 21:34:46.0959 (UTC) 
>FILETIME=[D322F3F0:01C72EB5]
>
>"James Reed" <[EMAIL PROTECTED]> wrote:
>
> > I am attempting to run HAL without the use of EMC2. As I have stated
> > before, I want a DRO only at this point in time, and am not interested 
>in
> > the extras EMC offers.
> >
> > I have successfully run HAL as an internal (to the computer) program 
>(using
> > the function generator in the HAL tutorial and a couple of comparators
> > instead of the parport quadrature input). HOWEVER, when I try real 
>hardware
> > and the parport, I neet 40mA at 5 volts to drive a pin high. This 
>usually
> > indicates the port it configured for output still.
>
>Which pin?  Sorry if I'm repeating stuff you already know, but I'm just
>making sure.  Pins 2-9 can be configured as inputs or outputs.  Pins 10,
>11, 12, 13, and 15 are always inputs.  And pins 1, 14, 16, and 17 are
>(almost) always ouputs.
>
>To use pins 2-9 as inputs, you need to specify "i" or "in" in the config
>string when you load the driver.
>
>To use pins 1, 14, 16, and 17 as inputs, you first need a parport that
>supports it, not all do.  Then you need to specify "x" in the config
>string.  And finally, you need to set the corresponding outputs high.
>The ports that support input on those pins do so by using open-collector
>drivers that can pull down but not up.  If you set them high, there is
>an internal pullup resistor that pulls the pin high, but it can be
>overcome by an external source to read a low input.  You should not
>attempt to force these pins high if they are being driven low.
>Using pins 1, 14, 16, and 17 as inputs should be considered experimental.
>I don't think it is supported at all in version 2.0.x, so unless you are
>running code from CVS, ignore this entire paragraph.
>
> > My question is this? When in the program does parport get initi

Re: [Emc-users] parallel port initializing

2007-01-02 Thread Jeff Epler
On Tue, Jan 02, 2007 at 09:34:33PM +, [EMAIL PROTECTED] wrote:
> To use pins 1, 14, 16, and 17 as inputs, you first need a parport that
> supports it, not all do.  Then you need to specify "x" in the config
> string.  And finally, you need to set the corresponding outputs high.
[...]

also, not all ports support this mode.  I believe that out of 4 linux
boxes I tried, two did support it and two did not.  The two that did
were older machines -- a Pentium II laptop and a Pentium III server.
The two that didn't were newer systems -- an Athlon FX desktop and a
Pentium M laptop.

jeff

-
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


Re: [Emc-users] parallel port initializing

2007-01-02 Thread jmkasunich
"James Reed" <[EMAIL PROTECTED]> wrote:

> I am attempting to run HAL without the use of EMC2. As I have stated 
> before, I want a DRO only at this point in time, and am not interested in 
> the extras EMC offers. 
> 
> I have successfully run HAL as an internal (to the computer) program (using 
> the function generator in the HAL tutorial and a couple of comparators 
> instead of the parport quadrature input). HOWEVER, when I try real hardware 
> and the parport, I neet 40mA at 5 volts to drive a pin high. This usually 
> indicates the port it configured for output still. 

Which pin?  Sorry if I'm repeating stuff you already know, but I'm just
making sure.  Pins 2-9 can be configured as inputs or outputs.  Pins 10,
11, 12, 13, and 15 are always inputs.  And pins 1, 14, 16, and 17 are
(almost) always ouputs.

To use pins 2-9 as inputs, you need to specify "i" or "in" in the config
string when you load the driver.

To use pins 1, 14, 16, and 17 as inputs, you first need a parport that
supports it, not all do.  Then you need to specify "x" in the config
string.  And finally, you need to set the corresponding outputs high.
The ports that support input on those pins do so by using open-collector
drivers that can pull down but not up.  If you set them high, there is
an internal pullup resistor that pulls the pin high, but it can be
overcome by an external source to read a low input.  You should not
attempt to force these pins high if they are being driven low.
Using pins 1, 14, 16, and 17 as inputs should be considered experimental.
I don't think it is supported at all in version 2.0.x, so unless you are
running code from CVS, ignore this entire paragraph.

> My question is this? When in the program does parport get initialized to 
> inputs, and how do I make sure it is initialized before I try to drive it? 

The direction of pins 2-9 is set when the parport.N.write is executed.
So you must "addf" it to a realtime thread, and start the thread, even
if you don't intend to use any outputs.

(This might be a bug - I will look into setting the port direction as
soon as the driver is loaded.)

> Thanks for your help. 

Hope this is usefull, let us know what you find out.

Good luck,

John Kasunich

-
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