Re: Parallel port programming on windows XP / 2000

2005-08-20 Thread ex
Thank you... I finally got around to installing a proper newsreader,
so that not every single one of my posts is a new thread.

I know what I did wrong now.

First, the line in the requirements about Java Communications
(JavaComm) extension for Java/Jython seriously threw me off.

Second, I somehow missed giveio_setup.exe. I did have giveio.sys, but
I guess it wasn't installed or at least not properly.

Anyway, now everything works... except of course the new thing that
doesn't, but at least it has nothing to do with the parallel port
itself. Interestingly enough, it's the 95/98 port that fails now, and
the XP/2000 that works. 

The new problem may be something you're familiar with - the resolution
of time.sleep(). On XP/2000 it's a millisecond, which is just about
good enough; on 95/98 it's ten millisecond.

I'll probably need to do something like run through a loop for a
second or two, see how many iterations I can complete, then keep that
as the basis for timing. Not really elegant, but I can't see a better
way around it.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP / 2000

2005-08-13 Thread Novice Experl
I'm still stuck... my script is finished and works just fine on win98 using 
pyparallel, but I still haven't seen any sample code to do access the port in 
XP / 2000.

If I don't make progress soon, I'll need to find a solution in another 
language, which I don't really want to do.


--=  Posted using GrabIt  =
--=  Binary Usenet downloading made easy =-
-=  Get GrabIt for free from http://www.shemes.com/  =-

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP / 2000

2005-08-13 Thread pdalet
I have written a python script with pyparallel pyDS1267 (W2K,
pyparallel 0.1, giveio_setup.exe, pythoncard), with no problems on this
OS.

I have not tested with pyparallel 0.2
pyDS1267, pyUltraISR

http://sourceforge.net/projects/gpib82357a/



[EMAIL PROTECTED]
lyp champollion
av pezet
46100 FIGEAC
FRANCE




Novice Experl a écrit :

 I'm still stuck... my script is finished and works just fine on win98 using 
 pyparallel, but I still haven't seen any sample code to do access the port in 
 XP / 2000.

 If I don't make progress soon, I'll need to find a solution in another 
 language, which I don't really want to do.


 --=  Posted using GrabIt  =
 --=  Binary Usenet downloading made easy =-
 -=  Get GrabIt for free from http://www.shemes.com/  =-

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread jkn

Novice Experl wrote:
 I'd like to write a simple application that interfaces with the parallel 
 port, and changes the data on it according to keyboard input. I hope I can 
 get it to run under windows xp and / or windows 2000.

 How can I do this? What do I need to know? It doesn't look like the standard 
 library (the one under my pillow) has that feature. In addition, I've heard 
 that with newer versions of windows don't let you communicate with the port 
 directly, instead requiring interfacing with some driver?

 I came across this:
 http://pyserial.sourceforge.net/pyparallel.html
 but it seems to only be used for direct access (would it work with XP?), and 
 hasn't been updated for a couple of years. In addition, it requires something 
 called  Java Communications (JavaComm) extension for Java/Jython, doesn't 
 provide a link to it, and when I google it - google returns the page I came 
 from!

 To add to the confusion, I hope I can provide a py2exe executable of my 
 script instead of forcing a complete installation.


 --=  Posted using GrabIt  =
 --=  Binary Usenet downloading made easy =-
 -=  Get GrabIt for free from http://www.shemes.com/  =-

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread Neil Benn
Novice Experl wrote:

I'd like to write a simple application that interfaces with the parallel port, 
and changes the data on it according to keyboard input. I hope I can get it to 
run under windows xp and / or windows 2000.

How can I do this? What do I need to know? It doesn't look like the standard 
library (the one under my pillow) has that feature. In addition, I've heard 
that with newer versions of windows don't let you communicate with the port 
directly, instead requiring interfacing with some driver?

I came across this:
http://pyserial.sourceforge.net/pyparallel.html
but it seems to only be used for direct access (would it work with XP?), and 
hasn't been updated for a couple of years. In addition, it requires something 
called  Java Communications (JavaComm) extension for Java/Jython, doesn't 
provide a link to it, and when I google it - google returns the page I came 
from!

To add to the confusion, I hope I can provide a py2exe executable of my script 
instead of forcing a complete installation.


--=  Posted using GrabIt  =
--=  Binary Usenet downloading made easy =-
-=  Get GrabIt for free from http://www.shemes.com/  =-

  

Here's teh link to jaavx.comm - 
http://java.sun.com/products/javacomm/index.jsp.

The interface stuff, hmm I'm not quite sure what you are on about you 
access ports through the win32 API which is the 'driver' - you could 
probably bypass this and start playing around with assembly code but 
there's no point!!

Cheers,

Neil

-- 

Neil Benn
Senior Automation Engineer
Cenix BioScience
BioInnovations Zentrum
Tatzberg 47
D-01307
Dresden
Germany

Tel : +49 (0)351 4173 154
e-mail : [EMAIL PROTECTED]
Cenix Website : http://www.cenix-bioscience.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread Benji York
Novice Experl wrote:
 I'd like to write a simple application that interfaces with the parallel port

Use pyParallel.  You don't have to worry about the Java stuff unless
you're using Jython.  Just follow the instructions on the page
(download, unarchive, python setup.py install).

After that you have to understand how the parallel port works, but I'll
assume you already do or can use the web to figure it out.
--
Benji York



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread c d saunter
Novice Experl ([EMAIL PROTECTED]) wrote:
: I'd like to write a simple application that interfaces with the parallel 
port, and changes the data on it according to keyboard input. I hope I can get 
it to run under windows xp and / or windows 2000.

: How can I do this? What do I need to know? It doesn't look like the standard 
library (the one under my pillow) has that feature. In addition, I've heard 
that with newer versions of windows don't let you communicate with the port 
directly, instead requiring interfacing with some driver?

I always use DLPortIO, makes life almost as simple as GWBasic and a DOS 
box...  You can either create a custom extension around this or use 
ctypes.  Generally speaking a custom .dll is only needed if you are your 
lpt transactions are bidirectional, highly interleaved and high bandwidth.

DLPortIO: http://www.driverlinx.com/DownLoad/DlPortIO.htm
ctypes: http://starship.python.net/crew/theller/ctypes/

Note that DLPortIO is not a Python thing, it's a generic Windows .dll with 
C and VB examples, and needs installing, so it can't be packaged with 
py2exe.  I'd guess this is the same for other parallel port accesing 
tools - I think you need admin privilidges on a Windows NT/2K/XP box to 
install  DLPortIO, but not to use it.  

If you decide this is the best route for you and find yourself stuck, drop 
me an email for some example code.

---

cds

: I came across this:
: http://pyserial.sourceforge.net/pyparallel.html
: but it seems to only be used for direct access (would it work with XP?), and 
hasn't been updated for a couple of years. In addition, it requires something 
called  Java Communications (JavaComm) extension for Java/Jython, doesn't 
provide a link to it, and when I google it - google returns the page I came 
from!

: To add to the confusion, I hope I can provide a py2exe executable of my 
script instead of forcing a complete installation.


: --=  Posted using GrabIt  =
: --=  Binary Usenet downloading made easy =-
: -=  Get GrabIt for free from http://www.shemes.com/  =-

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Parallel port programming on windows XP/2000?

2005-08-03 Thread c d saunter
Forgot to say - under OS' derived from Windows NT (i.e. NT 3.5, NT4, 2K, 
XP and future) it is not possible to directly access the parallel port, 
this has to be done by a kernel driver, hence the need to install 
something like DLPortIO, which parly exists in the kernel to access the 
hardware, and partly in userland to allow your programs to talk to the 
kernel part.

I find it very annoying just how far PCs have regressed in terms of 
simple IO - back in the 8 bit days it was easy to hook sensors and 
actuators up to a computer without much knowledge and program something 
with them in Basic.  These days it's almost impossible without special kit 
and lots of know how.  Heck, the old BBC Mirco had raw IO capabilites as 
fast as an IBM parallel port, and more flexible to boot.

Progress.  A real pain for rd types.

---

cds

c d saunter ([EMAIL PROTECTED]) wrote:
: Novice Experl ([EMAIL PROTECTED]) wrote:
: : I'd like to write a simple application that interfaces with the parallel 
port, and changes the data on it according to keyboard input. I hope I can get 
it to run under windows xp and / or windows 2000.

: : How can I do this? What do I need to know? It doesn't look like the 
standard library (the one under my pillow) has that feature. In addition, I've 
heard that with newer versions of windows don't let you communicate with the 
port directly, instead requiring interfacing with some driver?

: I always use DLPortIO, makes life almost as simple as GWBasic and a DOS 
: box...  You can either create a custom extension around this or use 
: ctypes.  Generally speaking a custom .dll is only needed if you are your 
: lpt transactions are bidirectional, highly interleaved and high bandwidth.

: DLPortIO: http://www.driverlinx.com/DownLoad/DlPortIO.htm
: ctypes: http://starship.python.net/crew/theller/ctypes/

: Note that DLPortIO is not a Python thing, it's a generic Windows .dll with 
: C and VB examples, and needs installing, so it can't be packaged with 
: py2exe.  I'd guess this is the same for other parallel port accesing 
: tools - I think you need admin privilidges on a Windows NT/2K/XP box to 
: install  DLPortIO, but not to use it.  

: If you decide this is the best route for you and find yourself stuck, drop 
: me an email for some example code.

: ---

: cds
-- 
http://mail.python.org/mailman/listinfo/python-list