1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

serial communications?

Posted by jay on Oct 13, 2007

Has anyone tried to interface Nodebox with a serial port?

This may be trivial but I'm somewhat new to python. I've installed pyserial but nodebox can't seem to find it when I try to "import serial" it says "ImportError: No module named serial"

The module was installed in /Library/Python/2.3/site-packages/serial is there something that I need to do to get nodebox to look in this directory?

Any suggestions would be greatly appreciated.

Thanks

jay


 
Posted by jay on Oct 13, 2007

Sorry, I spoke too soon. The very next thing I tried worked, which was to just drop the pyserial code into ~/Library/Application Support/NodeBox then call "serial = ximport("serial")"

woohoo, now I can plot GPS data!



Posted by Tom De Smedt on Oct 19, 2007

That sounds like fun, let us know when you have some visual output we can show on the website.