Reading data from an ISA port

G

Gabriel Dragffy

Dear list members

I must admit I am a new user of Python, but it is a language that I
enjoy using.

For one of my university projects I need to write a program that can
read several bytes from an ISA port. It has been suggested to me that
I look at using C or Pyinline. If I can I would prefer to continue to
use Python, and Pyinline won't play ball.

I am sure Python can do this for me, but the question is how? What
modules and code do I need to look? I'd be very grateful for any
suggestions and advice.

Best regards

Gabriel Dragffy

(e-mail address removed)
 
D

Diez B. Roggisch

Gabriel said:
Dear list members

I must admit I am a new user of Python, but it is a language that I
enjoy using.

For one of my university projects I need to write a program that can
read several bytes from an ISA port. It has been suggested to me that I
look at using C or Pyinline. If I can I would prefer to continue to use
Python, and Pyinline won't play ball.

I am sure Python can do this for me, but the question is how? What
modules and code do I need to look? I'd be very grateful for any
suggestions and advice.

Python as-is won't help. It has no concept of memory addresses and
direct access to them. However, a trivial C-extension together with the
struct and/or ctypes module will help.

What you essentially need to code is a C-extension that will allow you
to directly access memory. Wrap that either in an extension or using ctypes.

Diez
 
G

Gabriel Dragffy

Python as-is won't help. It has no concept of memory addresses and
direct access to them. However, a trivial C-extension together with
the
struct and/or ctypes module will help.

What you essentially need to code is a C-extension that will allow you
to directly access memory. Wrap that either in an extension or
using ctypes.

Diez


Thanks for your information.

Are you able to tell me where or how to get or make this trivial C
extension, please?

Regards

Gabriel
 
G

Gabriel Dragffy

Python as-is won't help. It has no concept of memory addresses and
direct access to them. However, a trivial C-extension together with
the
struct and/or ctypes module will help.

What you essentially need to code is a C-extension that will allow you
to directly access memory. Wrap that either in an extension or
using ctypes.

Diez


Thanks for your information.

Are you able to tell me where or how to get or make this trivial C
extension, please?

Regards

Gabriel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top