User Profile

Collapse

Profile Sidebar

Collapse
Pierpaolo
Pierpaolo
Last Activity: Mar 22 '07, 09:36 PM
Joined: Mar 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Pierpaolo
    replied to accessing a device with python
    bartonc:
    thanks for the reply. Alas I get the:
    ImportError: No module named ctypes
    message when I try and import ctypes module.
    I noticed references to win.dll.... As I am on a linux box could this be the problem?

    dshimer:
    the module that is supposed to receive the struct packed is whether deaf to python data or nothing is dispatched. I am not sure though about the format structure I provided to...
    See more | Go to post

    Leave a comment:


  • Pierpaolo
    replied to accessing a device with python
    No dice,
    I think I am hopeless with this language. I can't see how to make the entry widget work.
    I am not able to experiment the struct stuff yet as I cannot get data read and updated from the entry widget. Nonetheless I have found some good examples on how to access date in an entry widget and treat them as strings as well as transform them in integers (or e.g. floats) using the int method.
    Any link to a basic tutorials...
    See more | Go to post

    Leave a comment:


  • Pierpaolo
    replied to accessing a device with python
    dshimer
    thank you very much.
    I'll try and see if I can make something with all the infos you kindly provided.
    I'll pop in again if I get to somewhere.
    Regards,
    Pier
    See more | Go to post

    Leave a comment:


  • Pierpaolo
    started a topic accessing a device with python

    accessing a device with python

    Hi everybody,
    first of all I'd like to say that I am a beginner with python so please be patience. I googled a lot before posting the following question.

    I am trying to port a small C code of mine which "talks" to a real-time kernel module to python.
    I need an easy way to set up a graphic interface therefore I am using tkinter.

    I need to send a C struct to /dev/rtf0:

    typedef struct...
    See more | Go to post

  • Pierpaolo
    replied to What is your OS and Python Version
    Linux Gentoo ker 2.6.19.2 RTAI Vulcano patched
    Python 2.4.3 + tkinter
    gcc 4.1.1
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...