- From: bryan cole <bryan.cole_at_teraview.co.uk>
- Date: 14 Apr 2003 17:36:54 +0100
Yes, I've looked at the existing "ComPy" module in comedi CVS. As far as I can see, ComPy does not include streaming/commands support. In fact, it would be good to liase with the authors of the ComPy module (or anyone else with an interest in python/comedi wrappers), since it would make sense to write a more robust,"pythonic" ComPy module on top of the SWIG-generated wrappers. SWIG maps all the comedilib functions to python functions in a 1-to-1 fashion, with no error checking or other "idiot-proofing". When I next get a Comedi-supported card installed, I'll have a go at this. The SWIG-generated code provides a simple mechanism for creating and manipulating all the various comedi structs as python objects. Since python already supports file-descriptor I/O, no special code is required for streaming acquisition. The SWIG generated wrappers have an additional advantage of easy maintainability: as Comedilib evolves, just re-run SWIG to re-generate the code. SWIG generates the entire wrapper c-code from an interface file under 30 lines long! Bryan
Received on 2003-04-14Z15:36:54